Re: EZPages not showing in mobile using responsive classic template
Originally Posted by
barco57
showing of ez-pages in the mobile menu work like this.
tpl_modules_mobile_menu.php calls include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
In the ezpage_bar-header.php file it checks the if it should dispaly
Code:
// test if bar should display:
if (EZPAGES_STATUS_HEADER == '1' || (EZPAGES_STATUS_HEADER == '2' && (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
So ezpages status header need to be enabled to cause it to populate the ezpage link list so that tpl_modules_mobile_menu.php can display it...
It is a stupid design, but I get around the display of the ezpaze header links on the desktop version by ripping the code for it out of common/tpl_header.php if I am not going to be using it.
Code:
<!--bof header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof header ezpage links-->
THANKS MIKE,
Removing that code seems to have fixed the issue.
It's above my paygrade to understand why the fix for zc158 did not have any effect, but at least now our customers have access to the appropriate pages when using mobile devices.
Rick
RixStix (dot) com
aka: ChainWeavers (dot) com
Bookmarks