<?php

if (!st_check_service_available('st_tours')) {
    return;
}
if (function_exists('vc_map')) {
    $list_taxonomy = st_list_taxonomy('st_tours');
    //$list_taxonomy = array_merge( array( "---Select---" => "" ) , $list_taxonomy );
    $params = array(array("type" => "textfield", "holder" => "div", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "textfield", "holder" => "div", "heading" => __("Number of Posts", ST_TEXTDOMAIN), "param_name" => "posts_per_page", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Sort By Taxonomy", ST_TEXTDOMAIN), "param_name" => "sort_taxonomy", "description" => "", "value" => $list_taxonomy));
    $data_vc = STTour::get_taxonomy_and_id_term_tour();
    $params = array_merge($params, $data_vc['list_vc']);
    vc_map(array("name" => __("ST List Tour related", ST_TEXTDOMAIN), "base" => "st_list_tour_related", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => $params));
}
if (!function_exists('st_list_tour_related')) {
    function st_list_tour_related($attr, $content = false)
    {
        $data_vc = STTour::get_taxonomy_and_id_term_tour();
        $param = array('title' => '', 'sort_taxonomy' => '', 'posts_per_page' => 3, 'orderby' => 'ID', 'order' => 'DESC', 'st_style' => 'style_4', 'font_size' => '3');
        $param = array_merge($param, $data_vc['list_id_vc']);
        $data = shortcode_atts($param, $attr, 'st_list_tour_related');
        extract($data);
        $page = STInput::request('paged');
        if (!$page) {
            $page = get_query_var('paged');
        }
        $query = array('post_type' => 'st_tours', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'paged' => $page, 'order' => $order, 'orderby' => $orderby, 'post__not_in' => array(get_the_ID()));
        if (!empty($sort_taxonomy)) {
            if (isset($attr["id_term_" . $sort_taxonomy])) {
                $terms_post = wp_get_post_terms(get_the_ID(), $sort_taxonomy, array('fields' => 'ids'));
                $id_term = $attr["id_term_" . $sort_taxonomy];
                $id_term = explode(',', $id_term);
<?php

if (!st_check_service_available('st_tours')) {
    return;
}
if (function_exists('vc_map')) {
    vc_map(array("name" => __("ST Tour Detail Attribute", ST_TEXTDOMAIN), "base" => "st_tour_detail_attribute", "content_element" => true, "icon" => "icon-st", "category" => 'Shinetheme', "params" => array(array("type" => "textfield", "holder" => "div", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Font Size", ST_TEXTDOMAIN), "param_name" => "font_size", "description" => "", "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', __("H1", ST_TEXTDOMAIN) => '1', __("H2", ST_TEXTDOMAIN) => '2', __("H3", ST_TEXTDOMAIN) => '3', __("H4", ST_TEXTDOMAIN) => '4', __("H5", ST_TEXTDOMAIN) => '5'), 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Select Taxonomy", ST_TEXTDOMAIN), "param_name" => "taxonomy", "description" => "", "value" => st_list_taxonomy('st_tours')), array("type" => "dropdown", "holder" => "div", "heading" => __("Item col", ST_TEXTDOMAIN), "param_name" => "item_col", "description" => "", "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', 12 => 12, 11 => 11, 10 => 10, 9 => 9, 8 => 8, 7 => 7, 6 => 6, 5 => 5, 4 => 4, 3 => 3, 2 => 2)))));
}
if (!function_exists('st_tour_detail_attribute')) {
    function st_tour_detail_attribute($attr, $content = false)
    {
        $default = array('item_col' => 12, 'font_size' => 4);
        $attr = wp_parse_args($attr, $default);
        if (is_singular('st_tours')) {
            return st()->load_template('tours/elements/attribute', null, array('attr' => $attr));
        }
    }
}
if (st_check_service_available('st_tours')) {
    st_reg_shortcode('st_tour_detail_attribute', 'st_tour_detail_attribute');
}
<?php

if (!st_check_service_available('st_cars')) {
    return;
}
if (function_exists('vc_map') and class_exists('TravelerObject')) {
    $list_taxonomy = st_list_taxonomy('st_cars');
    $list_taxonomy = array_merge(array("---Select---" => ""), $list_taxonomy);
    $list_location = TravelerObject::get_list_location();
    $list_location_data[__('-- Select --', ST_TEXTDOMAIN)] = '';
    if (!empty($list_location)) {
        foreach ($list_location as $k => $v) {
            $list_location_data[$v['title']] = $v['id'];
        }
    }
    $param = array(array("type" => "textfield", "holder" => "div", "heading" => __("List ID in Car", ST_TEXTDOMAIN), "param_name" => "st_ids", "description" => __("Ids separated by commas", ST_TEXTDOMAIN), 'value' => ""), array("type" => "textfield", "holder" => "div", "heading" => __("Number cars", ST_TEXTDOMAIN), "param_name" => "st_number_cars", "description" => "", 'value' => 4), array("type" => "dropdown", "holder" => "div", "heading" => __("Order By", ST_TEXTDOMAIN), "param_name" => "st_orderby", "description" => "", 'edit_field_class' => 'vc_col-sm-6', 'value' => function_exists('st_get_list_order_by') ? st_get_list_order_by(array(__('Sale', ST_TEXTDOMAIN) => 'sale', __('Featured', ST_TEXTDOMAIN) => 'featured')) : array()), array("type" => "dropdown", "holder" => "div", "heading" => __("Order", ST_TEXTDOMAIN), "param_name" => "st_order", 'value' => array(__('--Select--', ST_TEXTDOMAIN) => '', __('Asc', ST_TEXTDOMAIN) => 'asc', __('Desc', ST_TEXTDOMAIN) => 'desc'), 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Items per row", ST_TEXTDOMAIN), "param_name" => "st_cars_of_row", 'edit_field_class' => 'vc_col-sm-12', "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', __('Four', ST_TEXTDOMAIN) => 4, __('Three', ST_TEXTDOMAIN) => 3, __('Two', ST_TEXTDOMAIN) => 2)), array("type" => "dropdown", "holder" => "div", "heading" => __("Sort By Taxonomy", ST_TEXTDOMAIN), "param_name" => "sort_taxonomy", "description" => "", "value" => $list_taxonomy));
    $data_vc = STCars::get_taxonomy_and_id_term_car();
    $param = array_merge($param, $data_vc['list_vc']);
    vc_map(array("name" => __("ST List of Cars", ST_TEXTDOMAIN), "base" => "st_list_cars", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => $param));
}
if (!function_exists('st_vc_list_cars')) {
    function st_vc_list_cars($attr, $content = false)
    {
        $data_vc = STCars::get_taxonomy_and_id_term_car();
        $param = array('st_ids' => '', 'taxonomy' => '', 'st_number_cars' => 4, 'st_order' => '', 'st_orderby' => '', 'st_cars_of_row' => 4, 'sort_taxonomy' => '', 'st_location' => '');
        $param = array_merge($param, $data_vc['list_id_vc']);
        $data = wp_parse_args($attr, $param);
        extract($data);
        $query = array('post_type' => 'st_cars', 'posts_per_page' => $st_number_cars, 'order' => $st_order, 'orderby' => $st_orderby);
        if (!empty($st_ids)) {
            $query['post__in'] = explode(',', $st_ids);
<?php

if (function_exists('vc_map')) {
    vc_map(array("name" => __("ST Search Filter", ST_TEXTDOMAIN), "base" => "st_search_filter", "as_parent" => array('only' => 'st_filter_price,st_filter_rate,st_filter_hotel_rate,st_filter_taxonomy'), "content_element" => true, "show_settings_on_create" => true, "js_view" => 'VcColumnView', "icon" => "icon-st", "category" => "Shinetheme", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => ""), array("type" => "dropdown", "heading" => __("Style", ST_TEXTDOMAIN), "param_name" => "style", "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', __('Dark', ST_TEXTDOMAIN) => 'dark', __('Light', ST_TEXTDOMAIN) => 'light')))));
    vc_map(array("name" => __("ST Filter Price", ST_TEXTDOMAIN), "base" => "st_filter_price", "content_element" => true, "as_child" => array('only' => 'st_search_filter'), "icon" => "icon-st", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => ""), array("type" => "dropdown", "heading" => __("Post Type", ST_TEXTDOMAIN), "param_name" => "post_type", "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', __('Hotel', ST_TEXTDOMAIN) => 'st_hotel', __('Rental', ST_TEXTDOMAIN) => 'st_rental', __('Car', ST_TEXTDOMAIN) => 'st_cars', __('Tour', ST_TEXTDOMAIN) => 'st_tours', __('Holiday', ST_TEXTDOMAIN) => 'st_holidays', __('Activity', ST_TEXTDOMAIN) => 'st_activity', __('All Post Type', ST_TEXTDOMAIN) => 'all')))));
    vc_map(array("name" => __("ST Filter Rate", ST_TEXTDOMAIN), "base" => "st_filter_rate", "content_element" => true, "as_child" => array('only' => 'st_search_filter'), "icon" => "icon-st", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title"))));
    vc_map(array("name" => __("ST Filter Hotel Star Rating", ST_TEXTDOMAIN), "base" => "st_filter_hotel_rate", "content_element" => true, "as_child" => array('only' => 'st_search_filter'), "icon" => "icon-st", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => ""))));
    $param_taxonomy = array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => ""), array("type" => "dropdown", "holder" => "div", "heading" => __("Post Type", ST_TEXTDOMAIN), "param_name" => "st_post_type", "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', __('Hotel', ST_TEXTDOMAIN) => 'st_hotel', __('Room Hotel', ST_TEXTDOMAIN) => 'hotel_room', __('Rental', ST_TEXTDOMAIN) => 'st_rental', __('Car', ST_TEXTDOMAIN) => 'st_cars', __('Tour', ST_TEXTDOMAIN) => 'st_tours', __('Holiday', ST_TEXTDOMAIN) => 'st_holidays', __('Activity', ST_TEXTDOMAIN) => 'st_activity')));
    $list_post_type = array(__('Hotel', ST_TEXTDOMAIN) => 'st_hotel', __('Room Hotel', ST_TEXTDOMAIN) => 'hotel_room', __('Rental', ST_TEXTDOMAIN) => 'st_rental', __('Car', ST_TEXTDOMAIN) => 'st_cars', __('Tour', ST_TEXTDOMAIN) => 'st_tours', __('Holiday', ST_TEXTDOMAIN) => 'st_holidays', __('Activity', ST_TEXTDOMAIN) => 'st_activity');
    foreach ($list_post_type as $k => $v) {
        $_taxonomy = st_list_taxonomy($v);
        $_param = array("type" => "dropdown", "holder" => "div", "heading" => sprintf(__("Taxonomy %s", ST_TEXTDOMAIN), $k), "param_name" => "taxonomy_" . $v, "value" => '', 'dependency' => array('element' => 'st_post_type', 'value' => array($v)));
        $_list_taxonomy = array();
        $_list_taxonomy[__('--Select--', ST_TEXTDOMAIN)] = '';
        foreach ($_taxonomy as $key => $value) {
            $_list_taxonomy[$key] = $value;
        }
        $_param['value'] = $_list_taxonomy;
        $param_taxonomy[] = $_param;
    }
    vc_map(array("name" => __("ST Filter Taxonomy", ST_TEXTDOMAIN), "base" => "st_filter_taxonomy", "content_element" => true, "as_child" => array('only' => 'st_search_filter'), "icon" => "icon-st", "params" => $param_taxonomy));
}
if (class_exists('WPBakeryShortCodesContainer') and !class_exists('WPBakeryShortCode_st_search_filter')) {
    class WPBakeryShortCode_st_search_filter extends WPBakeryShortCodesContainer
    {
        protected function content($arg, $content = null)
        {
            $data = shortcode_atts(array('title' => "", 'style' => ""), $arg, 'st_search_filter');
            extract($data);
            $content = do_shortcode($content);
            if ($style == 'dark') {
 static function get_taxonomy_and_id_term_activity()
 {
     $list_taxonomy = st_list_taxonomy('st_activity');
     $list_id_vc = array();
     $param = array();
     foreach ($list_taxonomy as $k => $v) {
         $term = get_terms($v);
         if (!empty($term) and is_array($term)) {
             foreach ($term as $key => $value) {
                 $list_value[$value->name] = $value->term_id;
             }
             $param[] = array("type" => "checkbox", "holder" => "div", "heading" => $k, "param_name" => "id_term_" . $v, "value" => $list_value, 'dependency' => array('element' => 'sort_taxonomy', 'value' => array($v)));
             $list_value = "";
             $list_id_vc["id_term_" . $v] = "";
         }
     }
     return array("list_vc" => $param, 'list_id_vc' => $list_id_vc);
 }
<?php

if (function_exists('vc_map')) {
    vc_map(array("name" => __("ST Rental Attribute", ST_TEXTDOMAIN), "base" => "st_rental_attribute", "content_element" => true, "icon" => "icon-st", "category" => 'Shinetheme', "params" => array(array("type" => "dropdown", "holder" => "div", "heading" => __("Select Taxonomy", ST_TEXTDOMAIN), "param_name" => "taxonomy", "description" => "", "value" => st_list_taxonomy('st_rental')), array("type" => "dropdown", "holder" => "div", "heading" => __("Item Size", ST_TEXTDOMAIN), "param_name" => "item_col", "description" => "", "value" => array(2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12)))));
}
if (!function_exists('st_vc_rental_attribute')) {
    function st_vc_rental_attribute($attr, $content = false)
    {
        if (is_singular('st_rental')) {
            return st()->load_template('rental/elements/attribute', null, array('attr' => $attr));
        }
    }
}
st_reg_shortcode('st_rental_attribute', 'st_vc_rental_attribute');
<?php

if (function_exists('vc_map')) {
    $list_taxonomy = st_list_taxonomy('st_cars');
    $list_taxonomy = array_merge(array("---Select---" => ""), $list_taxonomy);
    $list_location = TravelerObject::get_list_location();
    $list_location_data[__('-- Select --', ST_TEXTDOMAIN)] = '';
    if (!empty($list_location)) {
        foreach ($list_location as $k => $v) {
            $list_location_data[$v['title']] = $v['id'];
        }
    }
    $param = array(array("type" => "textfield", "holder" => "div", "heading" => __("List ID in Car", ST_TEXTDOMAIN), "param_name" => "st_ids", "description" => __("Ids separated by commas", ST_TEXTDOMAIN), 'value' => ""), array("type" => "dropdown", "holder" => "div", "heading" => __("Select Taxonomy", ST_TEXTDOMAIN), "param_name" => "taxonomy", "description" => "", "value" => st_list_taxonomy('st_cars')), array("type" => "textfield", "holder" => "div", "heading" => __("Number cars", ST_TEXTDOMAIN), "param_name" => "st_number_cars", "description" => "", 'value' => 4), array("type" => "dropdown", "holder" => "div", "heading" => __("Order By", ST_TEXTDOMAIN), "param_name" => "st_orderby", "description" => "", 'edit_field_class' => 'vc_col-sm-6', 'value' => function_exists('st_get_list_order_by') ? st_get_list_order_by(array(__('Sale', ST_TEXTDOMAIN) => 'sale', __('Featured', ST_TEXTDOMAIN) => 'featured')) : array()), array("type" => "dropdown", "holder" => "div", "heading" => __("Order", ST_TEXTDOMAIN), "param_name" => "st_order", 'value' => array(__('Asc', ST_TEXTDOMAIN) => 'asc', __('Desc', ST_TEXTDOMAIN) => 'desc'), 'edit_field_class' => 'vc_col-sm-6', "description" => __("", ST_TEXTDOMAIN)), array("type" => "dropdown", "holder" => "div", "heading" => __("Number Car of row", ST_TEXTDOMAIN), "param_name" => "st_cars_of_row", 'edit_field_class' => 'vc_col-sm-12', "description" => __('', ST_TEXTDOMAIN), "value" => array(__('Four', ST_TEXTDOMAIN) => '4', __('Three', ST_TEXTDOMAIN) => '3', __('Two', ST_TEXTDOMAIN) => '2')), array("type" => "dropdown", "holder" => "div", "heading" => __("Sort By Taxonomy", ST_TEXTDOMAIN), "param_name" => "sort_taxonomy", "description" => "", "value" => $list_taxonomy), array("type" => "dropdown", "holder" => "div", "heading" => __("Location", ST_TEXTDOMAIN), "param_name" => "st_location", "description" => __("Location", ST_TEXTDOMAIN), 'value' => $list_location_data));
    $data_vc = STCars::get_taxonomy_and_id_term_car();
    $param = array_merge($param, $data_vc['list_vc']);
    vc_map(array("name" => __("ST List of Cars", ST_TEXTDOMAIN), "base" => "st_list_cars", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => $param));
}
if (!function_exists('st_vc_list_cars')) {
    function st_vc_list_cars($attr, $content = false)
    {
        $data_vc = STCars::get_taxonomy_and_id_term_car();
        $param = array('st_ids' => '', 'taxonomy' => '', 'st_number_cars' => 0, 'st_order' => '', 'st_orderby' => '', 'st_cars_of_row' => '', 'sort_taxonomy' => '', 'st_location' => '');
        $param = array_merge($param, $data_vc['list_id_vc']);
        $data = shortcode_atts($param, $attr, 'st_list_cars');
        extract($data);
        $query = array('post_type' => 'st_cars', 'posts_per_page' => $st_number_cars, 'order' => $st_order, 'orderby' => $st_orderby);
        if (!empty($st_ids)) {
            $query['post__in'] = explode(',', $st_ids);
        }
        if ($st_orderby == 'sale') {
            $query['meta_key'] = 'cars_price';
<?php

if (!st_check_service_available('st_rental')) {
    return;
}
if (function_exists('vc_map')) {
    $list_taxonomy = st_list_taxonomy('st_rental');
    //$list_taxonomy = array_merge( array( "---Select---" => "" ) , $list_taxonomy );
    $params = array(array("type" => "textfield", "holder" => "div", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "textfield", "holder" => "div", "heading" => __("Number of Posts", ST_TEXTDOMAIN), "param_name" => "posts_per_page", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Sort By Taxonomy", ST_TEXTDOMAIN), "param_name" => "sort_taxonomy", "description" => "", "value" => $list_taxonomy));
    $data_vc = STRental::get_taxonomy_and_id_term_tour();
    $params = array_merge($params, $data_vc['list_vc']);
    vc_map(array("name" => __("ST List Rental related", ST_TEXTDOMAIN), "base" => "st_list_rental_related", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => $params));
}
if (!function_exists('st_list_rental_related')) {
    function st_list_rental_related($attr, $content = false)
    {
        $data_vc = STRental::get_taxonomy_and_id_term_tour();
        $param = array('title' => '', 'sort_taxonomy' => '', 'posts_per_page' => 3, 'orderby' => 'ID', 'order' => 'DESC', 'font_size' => '3', 'number_of_row' => 1);
        $param = array_merge($param, $data_vc['list_id_vc']);
        $data = shortcode_atts($param, $attr, 'st_list_rental_related');
        extract($data);
        $page = STInput::request('paged');
        if (!$page) {
            $page = get_query_var('paged');
        }
        $query = array('post_type' => 'st_rental', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'paged' => $page, 'order' => $order, 'orderby' => $orderby, 'post__not_in' => array(get_the_ID()));
        if (!empty($sort_taxonomy)) {
            if (isset($attr["id_term_" . $sort_taxonomy])) {
                $terms_post = wp_get_post_terms(get_the_ID(), $sort_taxonomy, array('fields' => 'ids'));
                $id_term = $attr["id_term_" . $sort_taxonomy];
                $id_term = explode(',', $id_term);
<?php

if (function_exists('vc_map')) {
    vc_map(array("name" => __("ST Cars Attribute", ST_TEXTDOMAIN), "base" => "st_cars_attribute", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => array(array("type" => "dropdown", "holder" => "div", "heading" => __("Select Taxonomy", ST_TEXTDOMAIN), "param_name" => "taxonomy", "description" => "", "value" => st_list_taxonomy('st_cars')), array("type" => "textfield", "holder" => "div", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => ""))));
}
if (!function_exists('st_vc_cars_attribute')) {
    function st_vc_cars_attribute($attr, $content = false)
    {
        if (is_singular('st_cars')) {
            return st()->load_template('cars/elements/attribute', null, array('attr' => $attr));
        }
    }
}
st_reg_shortcode('st_cars_attribute', 'st_vc_cars_attribute');
<?php

if (!st_check_service_available('st_activity')) {
    return;
}
if (function_exists('vc_map')) {
    $list = st_list_taxonomy('st_activity');
    $txt = __('--Select--', ST_TEXTDOMAIN);
    unset($list[$txt]);
    vc_map(array("name" => __("ST Activity Search Results", ST_TEXTDOMAIN), "base" => "st_activiry_content_search", "content_element" => true, "icon" => "icon-st", "category" => 'Shinetheme', "params" => array(array("type" => "dropdown", "holder" => "div", "heading" => __("Style", ST_TEXTDOMAIN), "param_name" => "st_style", "description" => "", "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', __('List', ST_TEXTDOMAIN) => '1', __('Grid', ST_TEXTDOMAIN) => '2')), array("type" => "checkbox", "holder" => "div", "heading" => __("Select Taxonomy Show", ST_TEXTDOMAIN), "param_name" => "taxonomy", "description" => "", "value" => $list))));
}
if (!function_exists('st_vc_activiry_content_search')) {
    function st_vc_activiry_content_search($attr, $content = false)
    {
        $default = array('st_style' => 1, 'taxonomy' => '');
        $attr = wp_parse_args($attr, $default);
        return st()->load_template('activity/content', 'activity', array('attr' => $attr));
    }
}
if (st_check_service_available('st_activity')) {
    st_reg_shortcode('st_activiry_content_search', 'st_vc_activiry_content_search');
}
<?php

if (!st_check_service_available('st_hotel')) {
    return;
}
if (function_exists('vc_map')) {
    $list_taxonomy = st_list_taxonomy('st_hotel');
    //$list_taxonomy = array_merge( array( "---Select---" => "" ) , $list_taxonomy );
    $params = array(array("type" => "textfield", "holder" => "div", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "textfield", "holder" => "div", "heading" => __("Number of Posts", ST_TEXTDOMAIN), "param_name" => "posts_per_page", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Sort By Taxonomy", ST_TEXTDOMAIN), "param_name" => "sort_taxonomy", "description" => "", "value" => $list_taxonomy));
    $data_vc = STHotel::get_taxonomy_and_id_term_tour();
    $params = array_merge($params, $data_vc['list_vc']);
    vc_map(array("name" => __("ST List hotel related", ST_TEXTDOMAIN), "base" => "st_list_hotel_related", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => $params));
}
if (!function_exists('st_list_hotel_related')) {
    function st_list_hotel_related($attr, $content = false)
    {
        $data_vc = STHotel::get_taxonomy_and_id_term_tour();
        $param = array('title' => '', 'sort_taxonomy' => '', 'posts_per_page' => 3, 'orderby' => 'ID', 'order' => 'DESC', 'font_size' => '3', 'number_of_row' => 1);
        $param = array_merge($param, $data_vc['list_id_vc']);
        $data = shortcode_atts($param, $attr, 'st_list_hotel_related');
        extract($data);
        $page = STInput::request('paged');
        if (!$page) {
            $page = get_query_var('paged');
        }
        $query = array('post_type' => 'st_hotel', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'paged' => $page, 'order' => $order, 'orderby' => $orderby, 'post__not_in' => array(get_the_ID()));
        if (!empty($sort_taxonomy)) {
            if (isset($attr["id_term_" . $sort_taxonomy])) {
                $terms_post = wp_get_post_terms(get_the_ID(), $sort_taxonomy, array('fields' => 'ids'));
                $id_term = $attr["id_term_" . $sort_taxonomy];
                $id_term = explode(',', $id_term);
 /**
  * get current term by post id 
  *
  *
  */
 static function get_term_list_by_id($post_id = null)
 {
     if (!$post_id) {
         $post_id = get_the_ID();
     }
     $list_taxonomy = st_list_taxonomy('st_tours');
     $array = array();
     if (!empty($list_taxonomy) and is_array($list_taxonomy)) {
         foreach ($list_taxonomy as $key => $value) {
             $array[$value] = wp_get_post_terms($post_id, $value, array());
         }
     }
     return $array;
 }
<?php

if (!st_check_service_available('st_cars')) {
    return;
}
if (function_exists('vc_map')) {
    vc_map(array("name" => __("ST Cars Attribute", ST_TEXTDOMAIN), "base" => "st_cars_attribute", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => array(array("type" => "textfield", "holder" => "div", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Font Size", ST_TEXTDOMAIN), "param_name" => "font_size", "description" => "", "value" => array(__('--Select--', ST_TEXTDOMAIN) => '', __("H1", ST_TEXTDOMAIN) => '1', __("H2", ST_TEXTDOMAIN) => '2', __("H3", ST_TEXTDOMAIN) => '3', __("H4", ST_TEXTDOMAIN) => '4', __("H5", ST_TEXTDOMAIN) => '5'), 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Select Taxonomy", ST_TEXTDOMAIN), "param_name" => "taxonomy", "description" => "", "value" => st_list_taxonomy('st_cars')))));
}
if (!function_exists('st_vc_cars_attribute')) {
    function st_vc_cars_attribute($attr, $content = false)
    {
        $default = array('font_size' => 4);
        $attr = wp_parse_args($attr, $default);
        if (is_singular('st_cars')) {
            return st()->load_template('cars/elements/attribute', null, array('attr' => $attr));
        }
    }
}
if (st_check_service_available('st_cars')) {
    st_reg_shortcode('st_cars_attribute', 'st_vc_cars_attribute');
}
<?php

if (!st_check_service_available('st_holidays')) {
    return;
}
if (function_exists('vc_map')) {
    $list_taxonomy = st_list_taxonomy('st_holidays');
    //$list_taxonomy = array_merge( array( "---Select---" => "" ) , $list_taxonomy );
    $params = array(array("type" => "textfield", "holder" => "div", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "title", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "textfield", "holder" => "div", "heading" => __("Number of Posts", ST_TEXTDOMAIN), "param_name" => "posts_per_page", "description" => "", "value" => "", 'edit_field_class' => 'vc_col-sm-6'), array("type" => "dropdown", "holder" => "div", "heading" => __("Sort By Taxonomy", ST_TEXTDOMAIN), "param_name" => "sort_taxonomy", "description" => "", "value" => $list_taxonomy));
    $data_vc = STHoliday::get_taxonomy_and_id_term_tour();
    $params = array_merge($params, $data_vc['list_vc']);
    vc_map(array("name" => __("ST List Holiday related", ST_TEXTDOMAIN), "base" => "st_list_holiday_related", "content_element" => true, "icon" => "icon-st", "category" => "Shinetheme", "params" => $params));
}
if (!function_exists('st_list_holiday_related')) {
    function st_list_holiday_related($attr, $content = false)
    {
        $data_vc = STHoliday::get_taxonomy_and_id_term_tour();
        $param = array('title' => '', 'sort_taxonomy' => '', 'posts_per_page' => 3, 'orderby' => 'ID', 'order' => 'DESC', 'st_style' => 'style_4', 'font_size' => '3');
        $param = array_merge($param, $data_vc['list_id_vc']);
        $data = shortcode_atts($param, $attr, 'st_list_holiday_related');
        extract($data);
        $page = STInput::request('paged');
        if (!$page) {
            $page = get_query_var('paged');
        }
        $query = array('post_type' => 'st_holidays', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'paged' => $page, 'order' => $order, 'orderby' => $orderby, 'post__not_in' => array(get_the_ID()));
        if (!empty($sort_taxonomy)) {
            if (isset($attr["id_term_" . $sort_taxonomy])) {
                $terms_post = wp_get_post_terms(get_the_ID(), $sort_taxonomy, array('fields' => 'ids'));
                $id_term = $attr["id_term_" . $sort_taxonomy];
                $id_term = explode(',', $id_term);