function st_vc_search_hotel_title($arg = array()) { if (!get_post_type() == 'st_hotel' and get_query_var('post_type') != "st_hotel") { return; } $default = array('search_modal' => 1); extract(wp_parse_args($arg, $default)); $hotel = new STHotel(); $a = '<h3 class="booking-title">' . balanceTags($hotel->get_result_string()); if ($search_modal) { $a .= '<small><a class="popup-text" href="#search-dialog" data-effect="mfp-zoom-out">' . __('Change search', ST_TEXTDOMAIN) . '</a></small>'; } $a .= '</h3>'; return $a; }
</div> </div> </div> <?php echo st()->load_template('hotel/loop', false, array('style' => $style)); ?> <div class="row" style="margin-bottom: 40px;"> <div class="col-sm-12"> <hr> <p class="gap"></p> </div> <div class="col-md-6"> <p> <small><?php echo balanceTags($hotel->get_result_string()); ?> . <?php if ($wp_query->found_posts) { st_the_language('showing'); $page = get_query_var('paged'); $posts_per_page = get_query_var('posts_per_page'); if (!$page) { $page = 1; } $last = $posts_per_page * $page; if ($last > $wp_query->found_posts) { $last = $wp_query->found_posts; } echo ' ' . ($posts_per_page * ($page - 1) + 1) . ' - ' . $last;
<?php if (!empty($attr)) { extract($attr); } else { $st_style = '1'; } $style = STInput::request('style'); if (!empty($style)) { $st_style = $style; } $obj = get_post_type_object($query->query['post_type']); $rs_string = ""; switch ($query->query['post_type']) { case "st_hotel": $class = new STHotel(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('hotel_search_result_page'); break; case "st_rental": $class = new STRental(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('rental_search_result_page'); break; case "st_cars": $class = new STCars(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('cars_search_result_page'); break; case "st_tours": $class = new STTour(); $rs_string .= $class->get_result_string();