PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/eastfin/wp-content/themes/kingdom/woocommerce/loop/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/eastfin/wp-content/themes/kingdom/woocommerce/loop/orderby.php |
<?php /** * Show options for ordering * * @author WooThemes * @package WooCommerce/Templates * @version 2.2.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $woocommerce, $wp_query; if ( 1 == $wp_query->found_posts || ! woocommerce_products_will_display() ) return; ?> <form class="woocommerce-ordering" method="get"> <select name="orderby" class="orderby"> <?php $catalog_orderby = apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => esc_html__( 'Default sorting', 'woocommerce' ), 'popularity' => esc_html__( 'Sort by popularity', 'woocommerce' ), 'rating' => esc_html__( 'Sort by average rating', 'woocommerce' ), 'date' => esc_html__( 'Sort by newness', 'woocommerce' ), 'price' => esc_html__( 'Sort by price: low to high', 'woocommerce' ), 'price-desc' => esc_html__( 'Sort by price: high to low', 'woocommerce' ) ) ); unset( $catalog_orderby['popularity'] ); unset( $catalog_orderby['rating'] ); // if ( get_option( 'woocommerce_enable_review_rating' ) === 'no' ) // unset( $catalog_orderby['rating'] ); foreach ( $catalog_orderby as $id => $name ) echo '<option value="' . esc_attr( $id ) . '" ' . selected( $orderby, $id, false ) . '>' . esc_attr( $name ) . '</option>'; ?> </select> <?php // Keep query string vars intact foreach ( $_GET as $key => $val ) { if ( 'orderby' === $key || 'submit' === $key ) continue; if ( is_array( $val ) ) { foreach( $val as $innerVal ) { echo '<input type="hidden" name="' . esc_attr( $key ) . '[]" value="' . esc_attr( $innerVal ) . '" />'; } } else { echo '<input type="hidden" name="' . esc_attr( $key ) . '" value="' . esc_attr( $val ) . '" />'; } } ?> </form>