function st_search_holiday_title($arg = array()) { if (!get_post_type() == 'st_holiday' and get_query_var('post_type') != "st_holiday") { return; } $default = array('search_modal' => 1); extract(wp_parse_args($arg, $default)); $holiday = new STHoliday(); $html = '<h3 class="booking-title">' . balanceTags($holiday->get_result_string()); if ($search_modal) { $html .= '<small><a class="popup-text" href="#search-dialog" data-effect="mfp-zoom-out">' . __('Change search', ST_TEXTDOMAIN) . '</a></small>'; } $html .= '</h3>'; return $html; }
} if ($st_style == '1') { echo '<ul class="booking-list loop-holidays style_list">' . $content . '</ul>'; } if ($st_style == '2') { echo '<div class="row row-wrap">' . $content . '</div>'; } ?> <div class="row" style="margin-bottom: 40px;"> <div class="col-sm-12"> <hr> </div> <div class="col-md-6"> <p> <small><?php echo balanceTags($holidays->get_result_string()); ?> . <?php if ($query->found_posts) { st_the_language('holiday_showing'); $page = get_query_var('paged'); $posts_per_page = get_query_var('posts_per_page'); if (!$page) { $page = 1; } $last = $posts_per_page * $page + 1; if ($last > $query->found_posts) { $last = $query->found_posts; } echo ' ' . ($posts_per_page * ($page - 1) + 1) . ' - ' . $last;
$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(); $page_search = st()->get_option('tours_search_result_page'); break; case "st_holidays": $class = new STHoliday(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('holidays_search_result_page'); break; case "st_activity": $class = new STActivity(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('activity_search_result_page'); break; } echo ' <div class="row"> <div class="col-md-3"><h3>' . $obj->labels->singular_name . '</h3></div> <div class="col-md-9 text-right"> <h3>' . $rs_string . '</h3> </div> </div>