Forums / Bug Reports / "Home" link and the EZ-Pages Footer Links

"Home" link and the EZ-Pages Footer Links

Started by divavocals on 13 Sep 2013, 8:52 PM · Views: 1,618

Results 1 to 2 of 2
13 Sep 2013, 8:52 PM
#1
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

"Home" link and the EZ-Pages Footer Links

Dunno if this is the right place to post this, but again.. here goes..

One little thing that has always irritated me slightly since first being introduced to Zen Cart is the fact that turning off the EZ Pages Footer menu turns off the EZ Pages Footer links, but leaves the "Home" link behind.. I have always changed the if statement to include the "Home" link.. This way when you turn off the EZ Pages Footer links the "Home" link isn't left behind:

Find:

<ul>
<li><?php echo '<a href="' . HTTP_SERVER  . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG;  ?></a></li>
<?php if (EZPAGES_STATUS_FOOTER == '1'  or (EZPAGES_STATUS_FOOTER == '2' and  (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {  ?>
<li><?php  require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php');  ?></li>
<?php } ?>
</ul>

Change to:

<ul>
<?php if (EZPAGES_STATUS_FOOTER == '1' or  (EZPAGES_STATUS_FOOTER == '2' and  (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {  ?>
<li><?php echo '<a href="' . HTTP_SERVER .  DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG;  ?></a></li>
<li><?php  require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php');  ?></li>
<?php } ?>
</ul>

Should this change be included in the upcoming Zen Cart releaseor is there a reason that has escaped me all these years as to why the "Home" link is outside the if statement??:smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

14 Sep 2013, 6:37 AM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: "Home" link and the EZ-Pages Footer Links

DivaVocals:

Should this change be included in the upcoming Zen Cart releaseor is there a reason that has escaped me all these years as to why the "Home" link is outside the if statement??:smile:

First of all, it is there because it irritates you slightly. :laugh:

I have always done the same thing, included it in the if statement but back in the early 90's all sites had a home link in the footer. I say it's time to include it or remove it, just MO.