本文整理匯總了PHP中wpsc_has_pages函數的典型用法代碼示例。如果您正苦於以下問題:PHP wpsc_has_pages函數的具體用法?PHP wpsc_has_pages怎麽用?PHP wpsc_has_pages使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了wpsc_has_pages函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: wpsc_has_pages_bottom
function wpsc_has_pages_bottom()
{
if (wpsc_has_pages() && (get_option('wpsc_page_number_position') == 2 || get_option('wpsc_page_number_position') == 3)) {
return true;
} else {
return false;
}
}
示例2: if
<?php endwhile; ?>
<?php /** end the product loop here */?>
</table>
<?php if(wpsc_product_count() < 1):?>
<p><?php echo __('There are no products in this group.', 'wpsc'); ?></p>
<?php endif ; ?>
<?php
if(function_exists('fancy_notifications')) {
echo fancy_notifications();
}
?>
<!-- Start Pagination -->
<?php if ( ( get_option( 'use_pagination' ) == 1 && ( get_option( 'wpsc_page_number_position' ) == 2 || get_option( 'wpsc_page_number_position' ) == 3 ) ) ) : ?>
<div class="wpsc_page_numbers">
<?php if ( wpsc_has_pages() ) : ?>
<div class="pagination-pages"><?php echo wpsc_first_products_link( '« First', true ); ?> <?php echo wpsc_previous_products_link( '« Previous', true ); ?> <?php echo wpsc_pagination( 10 ); ?> <?php echo wpsc_next_products_link( 'Next »', true ); ?> <?php echo wpsc_last_products_link( 'Last »', true ); ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<!-- End Pagination -->
<?php endif; ?>
</div>
示例3: fancy_notifications
<p><?php
echo TXT_WPSC_NOITEMSINTHISGROUP;
?>
</p>
<?php
}
?>
<?php
if (function_exists('fancy_notifications')) {
echo fancy_notifications();
}
?>
<?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 htmlentities(wpsc_page_url(), ENT_QUOTES);
?>
' class='selected'><?php
示例4: fancy_notifications
?>
<?php
if (function_exists('fancy_notifications')) {
echo fancy_notifications();
}
?>
<!-- Start Pagination -->
<?php
if (get_option('use_pagination') == 1 && (get_option('wpsc_page_number_position') == 2 || get_option('wpsc_page_number_position') == 3)) {
?>
<div class="wpsc_page_numbers">
<?php
if (wpsc_has_pages()) {
?>
Pages: <?php
echo wpsc_first_products_link('« First', true);
?>
<?php
echo wpsc_previous_products_link('« Previous', true);
?>
<?php
echo wpsc_pagination(10);
?>
<?php
echo wpsc_next_products_link('Next »', true);
?>
<?php
echo wpsc_last_products_link('Last »', true);
示例5: if
<?php if((get_option('grid_number_per_row') > 0) && ((($wpsc_query->current_product +1) % get_option('grid_number_per_row')) == 0)) :?>
<div class='grid_view_newline'></div>
<?php endif ; ?>
<?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