Zen Follower
- Join Date:
- Jun 2008
- Posts:
- 128
- Plugin Contributions:
- 0
Hiding the div for page numbers when one 1 page exists
I've added a div with a padding to the page numbers which appear at the top and bottom of the product listings page.
This causes a problem when there are only enought products to show one page as the div is still there with it's padding. This pushes everything down the page.
Does you know if there is a piece of conditional code to only display the content if there is <1 pages?
<?php if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
?>
<div id="productsListingListingTopLinks"><?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>
<?php
}
?>
John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it