Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default "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:
    Code:
    <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:
    Code:
    <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??
    Last edited by DivaVocals; 13 Sep 2013 at 09:54 PM.
    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.

  2. #2
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

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

    Quote Originally Posted by DivaVocals View Post
    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??
    First of all, it is there because it irritates you slightly.

    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.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

 

 

Similar Threads

  1. Move the "Home and Login" links to my sidebar...
    By Kaniki in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 Sep 2010, 07:43 PM
  2. How to add additional link beside the "home" and "Login" page above logo?
    By corditreasures in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Apr 2010, 03:54 PM
  3. The "Home" and "Login" Links
    By cdnbride in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Nov 2009, 09:08 PM
  4. removing the top "home" & "log in" links
    By tarynhipp in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 20 Jan 2007, 05:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR