Zen Cart Logo
Forums / General Questions / Top-links/Bottom-links difference in tpl_modules_product_listing.php

Top-links/Bottom-links difference in tpl_modules_product_listing.php

Views: 723

Results 1 to 3 of 3
23 Feb 2012, 11:38 AM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Top-links/Bottom-links difference in tpl_modules_product_listing.php

ZC v1.5.0, using the Developer's Tool Kit to look for where the split_pages_results function display_links is used, I noticed that there's a difference between the calling sequence between the top and bottom links (main_page is missing from the array for the bottom links):

//includes/templates/template_default/templates/tpl_modules_product_listing.php

Line #26 : <div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div>

Line #42 : <div id="productsListingListingBottomLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></div> 

Which version is correct?

23 Feb 2012, 10:07 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Top-links/Bottom-links difference in tpl_modules_product_listing.php

The inclusion of 'main_page' is marginally more correct.
I can't recall ever seeing anyone post about a problem related to it.

23 Feb 2012, 11:33 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: Top-links/Bottom-links difference in tpl_modules_product_listing.php

Thanks, DrByte. It just bothered my sense of symmetry ...