function st_search_tour_title($arg = array())
 {
     if (!get_post_type() == 'st_tour' and get_query_var('post_type') != "st_tour") {
         return;
     }
     $default = array('search_modal' => 1);
     extract(wp_parse_args($arg, $default));
     $tour = new STTour();
     $html = '<h3 class="booking-title">' . balanceTags($tour->get_result_string());
     if ($search_modal) {
         $html .= '<small><a class="popup-text" href="#search-dialog" data-effect="mfp-zoom-out">' . __('Change search') . '</a></small>';
     }
     $html .= '</h3>';
     return $html;
 }
add_action('pre_get_posts', array($object, 'change_search_tour_arg'));
query_posts(array('post_type' => 'st_tours', 's' => get_query_var('s'), 'paged' => get_query_var('paged')));
$st_search_query = $wp_query;
remove_action('pre_get_posts', array($object, 'change_search_tour_arg'));
get_template_part('breadcrumb');
$result_string = '';
echo st()->load_template('search-loading');
?>
    <div class="mfp-with-anim mfp-dialog mfp-search-dialog mfp-hide" id="search-dialog">
        <?php 
echo st()->load_template('tours/search-form');
?>
    </div>
    <div class="container">
        <h3 class="booking-title"><?php 
echo balanceTags($object->get_result_string());
?>
            <small><a class="popup-text" href="#search-dialog" data-effect="mfp-zoom-out"><?php 
st_the_language('change_search');
?>
</a></small>
        </h3>
        <?php 
$tours_layout_layout = st()->get_option('tours_search_layout');
if (!empty($_REQUEST['layout_id'])) {
    $tours_layout_layout = $_REQUEST['layout_id'];
}
if ($tours_layout_layout) {
    echo STTemplate::get_vc_pagecontent($tours_layout_layout);
}
?>
        $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();
        $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">
}
if ($st_style == '1') {
    echo '<ul class="booking-list loop-tours 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($tours->get_result_string());
?>
. &nbsp;&nbsp;
                        <?php 
if ($query->found_posts) {
    st_the_language('tour_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;