*
 * Created by ShineTheme
 *
 */
$query = new WP_Query($query);
if (!isset($style)) {
    $style = 'list';
}
if ($style == 'list') {
    if ($query->have_posts()) {
        echo '<ul class="booking-list loop-hotel style_list">';
        while ($query->have_posts()) {
            $query->the_post();
            $hotel = new STHotel(get_the_ID());
            $object = new STRental();
            $custom_feild = $object->get_custom_fields();
            $link = st_get_link_with_search(get_permalink(), array('start', 'end', 'room_num_search', 'adult_num'), $_GET);
            $thumb_url = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID()));
            ?>
            <li <?php 
            post_class('booking-item');
            ?>
>
                <?php 
            echo STFeatured::get_featured();
            ?>
                    <div class="row">
                        <div class="col-md-3">
                            <div class="booking-item-img-wrap st-popup-gallery">
                                <a href="<?php 
            echo esc_url($thumb_url);