Example #1
0
$order_by_start = $base->getVar($grid['params'], 'sorting-order-by-start', 'none');
?>
							<select name="sorting-order-by-start" class="eg-tooltip-wrap" title="<?php 
_e('Sorting at Loading', EG_TEXTDOMAIN);
?>
">
								<option value="none"<?php 
selected('none' == $order_by_start, true);
?>
><?php 
_e('None', EG_TEXTDOMAIN);
?>
</option>
								<?php 
if (Essential_Grid_Woocommerce::is_woo_exists()) {
    $wc_sorts = Essential_Grid_Woocommerce::get_arr_sort_by();
    if (!empty($wc_sorts)) {
        foreach ($wc_sorts as $wc_handle => $wc_name) {
            ?>
											<option value="<?php 
            echo $wc_handle;
            ?>
"<?php 
            selected(in_array($wc_handle, $order_by), true);
            if (strpos($wc_handle, 'opt_disabled_') !== false) {
                echo ' disabled="disabled"';
            }
            ?>
><?php 
            echo $wc_name;
            ?>