예제 #1
0
 *
 * Created by ShineTheme
 *
 */
global $wp_query;
$default = array('style' => 'grid');
if (isset($arg)) {
    extract(wp_parse_args($arg, $default));
} else {
    extract($default);
}
if (STInput::get('style')) {
    $style = STInput::get('style');
}
$hotel = new STHotel();
$allOrderby = $hotel->getOrderby();
?>
<div class="nav-drop booking-sort">

<!--    <h5 class="booking-sort-title"><a href="#" onclick="return false" >-->
<!--            --><?php 
//_e('Sort: ',ST_TEXTDOMAIN);
//            if(is_array($allOrderby))
//            {
//                //Reset
//                reset($allOrderby);
//                //$first=$allOrderby[1];
//
//                if($order=STInput::get('orderby','price_asc') and isset($allOrderby[$order])){
//                    echo esc_html($allOrderby[$order]['name']);
//                }elseif(isset($first))