function st_search_activity_title($arg = array())
 {
     if (!get_post_type() == 'st_activity' and get_query_var('post_type') != 'st_activity') {
         return;
     }
     $default = array('search_modal' => 1);
     extract(wp_parse_args($arg, $default));
     $object = new STActivity();
     $a = '<h3 class="booking-title">' . balanceTags($object->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;
 }
Esempio n. 2
0
if ($st_style == '1') {
    echo '<ul class="booking-list loop-activities style_list">' . $content . '</ul>';
}
if ($st_style == '2') {
    echo '<div class="row row-wrap isotope-container">' . $content . '</div>';
}
?>

        <div class="row">
            <div class="col-sm-12">
                <hr>
            </div>
            <div class="col-md-6">
                <p>
                    <small><?php 
echo balanceTags($activity->get_result_string());
?>
.
                        <?php 
if ($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 > $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('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>
        ';
if (!empty($page_search)) {
    $link_view_all = st_get_link_with_search(get_permalink($page_search), array('location_name', 'location_id', 'item_name', 'price_range', 'pick-up', 'location_id_pick_up'), $_GET);
    if ($query->query['post_type'] == 'st_cars') {
        $link_view_all = add_query_arg(array('pick-up' => STInput::request('location_name'), 'location_id_pick_up' => STInput::request('location_id')), $link_view_all);