<?php /** * Show options for ordering * * @author WooThemes * @package WooCommerce/Templates * @version 3.6.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <form class="woocommerce-ordering pull-right" method="get"> <select name="orderby" class="orderby"> <?php foreach ( $catalog_orderby_options as $id => $name ) : ?> <option value="<?php echo esc_attr( $id ); ?>" <?php selected( $orderby, $id ); ?>><?php echo esc_html( $name ); ?></option> <?php endforeach; ?> </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>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
add-to-cart.php | File | 877 B | 0644 |
|
loop-end.php | File | 144 B | 0644 |
|
loop-start.php | File | 702 B | 0644 |
|
orderby.php | File | 1021 B | 0644 |
|
pagination.php | File | 1001 B | 0644 |
|
price.php | File | 359 B | 0644 |
|
rating.php | File | 442 B | 0644 |
|
sale-flash.php | File | 438 B | 0644 |
|