<?php endwhile; ?> <?php if(wpsc_product_count() < 1):?> <p><?php echo __('There are no products in this group.', 'wpsc'); ?></p> <?php endif ; ?> </div> <?php if(wpsc_has_pages() && ((get_option('wpsc_page_number_position') == 2) || (get_option('wpsc_page_number_position') == 3))) : ?> <div class='wpsc_page_numbers'> Pages: <?php while ($wpsc_query->have_pages()) : $wpsc_query->the_page(); ?> <?php if(wpsc_page_is_selected()) :?> <a href='<?php echo wpsc_page_url(); ?>' class='selected'><?php echo wpsc_page_number(); ?></a> <?php else: ?> <a href='<?php echo wpsc_page_url(); ?>'><?php echo wpsc_page_number(); ?></a> <?php endif; ?> <?php endwhile; ?> </div> <?php endif; ?> <?php endif; ?> <?php if(function_exists('fancy_notifications')) { echo fancy_notifications(); } ?> </div>
<a href='<?php echo htmlentities(wpsc_page_url(), ENT_QUOTES); ?> ' class='selected'><?php echo wpsc_page_number(); ?> </a> <?php } else { ?> <a href='<?php echo htmlentities(wpsc_page_url(), ENT_QUOTES); ?> '><?php echo wpsc_page_number(); ?> </a> <?php } ?> <?php } ?> </div> <?php } ?> <?php }
/** * wpsc adjacent products url * URL for the next or previous page of products on a category or group page. * @param $n (int) Page number. * @return (string) URL for the adjacent products page link. */ function wpsc_adjacent_products_url($n) { global $wpsc_query; $current_page = wpsc_current_page(); $n = $current_page + $n; if ($n < 1 || $n > $wpsc_query->page_count) { return; } while (wpsc_have_pages()) { wpsc_the_page(); if (wpsc_page_number() == $n) { $url = wpsc_page_url(); $url = wpsc_product_search_url($url); $wpsc_query->rewind_pages(); return $url; } } $wpsc_query->rewind_pages(); return; }