function storefront_woocommerce_pagination() { if (woocommerce_products_will_display()) { woocommerce_pagination(); } }
function woocommerce_pagination_modified() { woocommerce_pagination(); }
<div id="secondary" class="secondary widget-area" role="complementary"> <?php dynamic_sidebar('sidebar-12'); ?> </div><!-- #secondary --> </div> <?php } ?> <div class="<?php echo is_active_sidebar('sidebar-12') ? 'col-xs-12 col-sm-9 col-md-9 col-lg-9' : 'col-xs-12 col-sm-12 col-md-12 col-lg-12'; ?> "> <div class="zo-pagination-right"> <?php woocommerce_pagination(); ?> </div> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */ do_action('woocommerce_before_main_content'); ?> <?php
function venedor_woocommerce_catalog_ordering() { global $venedor_settings; parse_str($_SERVER['QUERY_STRING'], $params); $query_string = '?' . $_SERVER['QUERY_STRING']; // replace it with theme option if ($venedor_settings['category-item']) { $per_page = explode(',', $venedor_settings['category-item']); } else { $per_page = explode(',', '9,15,30'); } $orderby = strtolower(!empty($params['orderby']) ? $params['orderby'] : apply_filters('woocommerce_default_catalog_orderby', get_option('woocommerce_default_catalog_orderby'))); if ($orderby == 'menu_order title' || $orderby == 'menu_order') { $orderby = 'default'; } if ($orderby == 'title') { $orderby = 'name'; } $order = strtoupper(!empty($params['order']) ? $params['order'] : ($orderby == 'rating' || $orderby == 'price-desc' ? 'DESC' : 'ASC')); if ($orderby == 'price-desc') { $orderby = 'price'; } $item_count = !empty($params['count']) ? $params['count'] : $per_page[0]; ?> <div class="toolbar clearfix"> <div class="sorter clearfix"> <div class="sort-by"> <?php // sort by ?> <label class="left"><?php echo __('Sort By', 'venedor'); ?> : </label> <div class="dropdown left dropdown-select"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="false" title="<?php echo __('Sort By', 'venedor'); ?> "> <?php echo __(ucfirst($orderby), 'venedor'); ?> <span class="arrow"></span> </a> <ul class="dropdown-menu"> <?php if ($orderby != 'default') { ?> <li><a tabindex="-1" href="<?php echo venedor_add_url_parameters($query_string, 'orderby', 'menu_order'); ?> "><?php echo __('Default', 'venedor'); ?> </a></li> <?php } ?> <?php if ($orderby != 'popularity') { ?> <li><a tabindex="-1" href="<?php echo venedor_add_url_parameters($query_string, 'orderby', 'popularity'); ?> "><?php echo __('Popularity', 'venedor'); ?> </a></li> <?php } ?> <?php if ($orderby != 'rating' && get_option('woocommerce_enable_review_rating') != 'no') { ?> <li><a tabindex="-1" href="<?php echo venedor_add_url_parameters($query_string, 'orderby', 'rating'); ?> "><?php echo __('Rating', 'venedor'); ?> </a></li> <?php } ?> <?php if ($orderby != 'date') { ?> <li><a tabindex="-1" href="<?php echo venedor_add_url_parameters($query_string, 'orderby', 'date'); ?> "><?php echo __('Date', 'venedor'); ?> </a></li> <?php } ?> <?php if ($orderby != 'price') { ?> <li><a tabindex="-1" href="<?php echo venedor_add_url_parameters($query_string, 'orderby', 'price'); ?> "><?php echo __('Price', 'venedor'); ?> </a></li> <?php } ?> <?php if ($orderby != 'name') { ?> <li><a tabindex="-1" href="<?php echo venedor_add_url_parameters($query_string, 'orderby', 'title'); ?> "><?php echo __('Name', 'venedor'); ?> </a></li> <?php } ?> </ul> </div> <?php // order ?> <?php if ($order == 'DESC') { ?> <a class="btn-arrow order-desc" href="<?php echo venedor_add_url_parameters($query_string, 'order', 'asc'); ?> "></a> <?php } else { ?> <a class="btn-arrow order-asc left" href="<?php echo venedor_add_url_parameters($query_string, 'order', 'desc'); ?> "></a> <?php } ?> </div> <div class="view-mode gridlist-toggle"> <a href="#" id="grid" title="<?php echo __('Grid View', 'venedor'); ?> "></a><a href="#" id="list" title="<?php echo __('List View', 'venedor'); ?> "></a> </div> </div> <?php // pager ?> <?php woocommerce_pagination(); ?> </div> <?php }
/** * Display a tool bar on top of product archive * * @since 1.0 */ function shop_tool_bar() { $numbers = array(9, 12, 15, 18, 21); if ($this->layout == 'full-content') { $numbers = array(8, 12, 16, 20, 24); } /** * Allow child theme/plugin to modify the numbers array * * @since 1.1 */ $number = apply_filters('bigboom_shop_product_numbers', $numbers, $this->layout); $options = array(); $showposts = get_query_var('posts_per_page'); foreach ($numbers as $number) { $options[] = sprintf('<option value="%s" %s>%s %s</option>', esc_attr($number), selected($number, $showposts, false), $number, __('items', 'bigboom')); } ?> <div class="shop-toolbar"> <div class="sorter clearfix"> <div class="shop-view col-xs-12 col-sm-4 hidden-xs hidden-sm"> <span><?php _e('View as', 'bigboom'); ?> :</span> <a href="#" class="grid-view <?php echo $this->shop_view == 'grid' ? 'current' : ''; ?> " data-view="grid"><?php _e('Grid', 'bigboom'); ?> </a> / <a href="#" class="list-view <?php echo $this->shop_view == 'list' ? 'current' : ''; ?> " data-view="list"><?php _e('List', 'bigboom'); ?> </a> </div> <div class="sort-by col-xs-12 col-sm-4 hidden-xs hidden-sm"> <span><?php _e('Sort by', 'bigboom'); ?> :</span> <?php woocommerce_catalog_ordering(); ?> </div> <div class="limiter col-xs-12 col-sm-4 hidden-xs hidden-sm"> <form class="shop-products-number" method="get"> <span><?php _e('Show', 'bigboom'); ?> :</span> <select name="showposts"> <?php echo implode('', $options); ?> </select> <?php foreach ($_GET as $name => $value) { if ('showposts' != $name) { printf('<input type="hidden" name="%s" value="%s">', esc_attr($name), esc_attr($value)); } } ?> </form> </div> </div> <div class="pager clearfix"> <?php woocommerce_result_count(); ?> <?php woocommerce_pagination(); ?> </div> </div> <?php }
function eighteen_tags_woocommerce_pagination() { if (woocommerce_products_will_display()) { woocommerce_pagination(); } }
function mango_woocommerce_after_shop_loop() { ?> <?php if (!woocommerce_products_will_display()) { return; } ?> <nav class="pagination-container"> <?php woocommerce_result_count(); ?> <nav class="woocommerce-pagination"> <?php woocommerce_pagination(); ?> </nav> </nav> <?php }
function shop_isle_woocommerce_pagination() { if (woocommerce_products_will_display()) { woocommerce_pagination(); } }
function neckbeard_woocommerce_pagination() { if (woocommerce_products_will_display()) { woocommerce_pagination(); } }
/** * Output WooCommerce content - disbled. * * */ function woocommerce_content_modified() { if (is_singular('product')) { while (have_posts()) { the_post(); wc_get_template_part('content', 'single-product'); } } else { ?> <?php if (apply_filters('woocommerce_show_page_title', true)) { ?> <h1 class="page-title"><?php woocommerce_page_title(); ?> </h1> <?php } ?> <?php do_action('woocommerce_archive_description'); ?> <?php if (have_posts()) { ?> <?php do_action('woocommerce_before_shop_loop'); ?> <?php woocommerce_product_loop_start(); ?> <?php woocommerce_product_subcategories(); ?> <?php while (have_posts()) { the_post(); ?> <?php wc_get_template_part('content', 'product'); ?> <?php } // end of the loop. ?> <?php woocommerce_product_loop_end(); ?> <?php do_action('woocommerce_after_shop_loop'); if (function_exists('woocommerce_pagination')) { woocommerce_pagination(); } ?> <?php $cat_extra_content = get_option("product_cat_" . $curnt_cat_id . "_category_extra_content"); $extra_content = explode("<!--more-->", $cat_extra_content); if (!empty($extra_content[1])) { echo "<article>" . $extra_content[0] . " <a class='more-link'>Read More</a><div class='more-content'>" . $extra_content[1] . "</div></article>"; } else { echo "<article>" . $extra_content[0] . "</article>"; } ?> <?php } elseif (!woocommerce_product_subcategories(array('before' => woocommerce_product_loop_start(false), 'after' => woocommerce_product_loop_end(false)))) { ?> <?php wc_get_template('loop/no-products-found.php'); ?> <?php } } }