function st_search_cars_title($arg = array())
 {
     if (!get_post_type() == 'st_cars' and get_query_var('post_type') != "st_cars") {
         return;
     }
     $default = array('search_modal' => 1);
     extract(wp_parse_args($arg, $default));
     $car = new STCars();
     $html = '<h3 class="booking-title">' . balanceTags($car->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;
 }
Example #2
0
 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);
         $query['orderby'] = 'post__in';
     }
     if ($st_orderby == 'sale') {
         $query['meta_key'] = 'cars_price';
         $query['orderby'] = 'meta_value';
     }
     if ($st_orderby == 'featured') {
         $query['meta_key'] = 'is_featured';
         $query['orderby'] = 'meta_value';
     }
     if (!empty($sort_taxonomy)) {
         if (isset($attr["id_term_" . $sort_taxonomy])) {
             $id_term = $attr["id_term_" . $sort_taxonomy];
             $query['tax_query'] = array(array('taxonomy' => $sort_taxonomy, 'field' => 'id', 'terms' => explode(',', $id_term)));
         }
     }
     if (!empty($st_location)) {
         $query['meta_query'][] = array('key' => 'id_location', 'value' => $st_location, 'compare' => "IN");
     }
     query_posts($query);
     $txt = '';
     while (have_posts()) {
         the_post();
         $txt .= st()->load_template('vc-elements/st-list-cars/loop', 'list', array('attr' => $attr, 'data_' => $data));
     }
     wp_reset_query();
     return '<div class="row row-wrap">' . $txt . '</div>';
 }
Example #3
0
 function st_list_car_related($attr, $content = false)
 {
     $data_vc = STCars::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_car_related');
     extract($data);
     $page = STInput::request('paged');
     if (!$page) {
         $page = get_query_var('paged');
     }
     $query = array('post_type' => 'st_cars', '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);
             $terms = array();
             foreach ($id_term as $key => $value) {
                 if (in_array($value, $terms_post)) {
                     $terms[] = $value;
                 }
             }
             if ($terms) {
                 $query['tax_query'] = array(array('taxonomy' => $sort_taxonomy, 'field' => 'id', 'terms' => $terms));
             }
         }
     }
     query_posts($query);
     $r = "<div class='list_car_related'>" . st()->load_template('vc-elements/st-list-cars/loop-list', '2', array()) . "</div>";
     wp_reset_query();
     if (!empty($title) and !empty($r)) {
         $r = '<h' . $font_size . '>' . $title . '</h' . $font_size . '>' . $r;
     }
     return $r;
 }
Example #4
0
 /**
  *
  *
  * @since 1.1.3
  * */
 static function get_equipment_line_item($price, $unit, $start_timestamp, $end_timestamp)
 {
     switch ($unit) {
         case "per_day":
             $diff = STCars::get_date_diff($start_timestamp, $end_timestamp);
             if (!$diff) {
                 $diff = 1;
             }
             return (double) $price * $diff;
             break;
         case "per_hour":
             $diff = STCars::get_date_diff($start_timestamp, $end_timestamp);
             if (!$diff) {
                 $diff = 1;
             }
             return (double) $price * $diff * 24;
             break;
         default:
             return (double) $price;
             break;
     }
 }
 /**
  * @since 1.1.0
  * @param string post type
  * @param string type (null or option_tree)
  **/
 static function st_get_field_search($post_type, $type = '')
 {
     $list_field = array();
     if (!empty($post_type)) {
         switch ($post_type) {
             case "st_hotel":
                 $data_field = STHotel::get_search_fields_name();
                 break;
             case "st_rental":
                 $data_field = STRental::get_search_fields_name();
                 break;
             case "st_cars":
                 $data_field = STCars::get_search_fields_name();
                 break;
             case "st_tours":
                 $data_field = STTour::get_search_fields_name();
                 break;
             case "st_activity":
                 $data_field = STActivity::get_search_fields_name();
                 break;
             case "st_rental":
                 $data_field = STRental::get_search_fields_name();
                 break;
             default:
                 $data_field = apply_filters('st_search_fields_name', array(), $post_type);
                 break;
         }
         if (!empty($data_field) and is_array($data_field) and $type == '') {
             foreach ($data_field as $k => $v) {
                 $list_field[$v['label']] = $v['value'];
             }
             return $list_field;
         }
         if (!empty($data_field) and is_array($data_field) and $type == 'option_tree') {
             foreach ($data_field as $k => $v) {
                 $list_field[] = array('label' => $v['label'], 'value' => $v['value']);
             }
             return $list_field;
         }
     } else {
         return false;
     }
 }
Example #6
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Search custom cars
 *
 * Created by ShineTheme
 *
 */
get_header();
global $wp_query, $st_search_query;
$cars = new STCars();
add_action('pre_get_posts', array($cars, 'change_search_cars_arg'));
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
query_posts(array('post_type' => 'st_cars', 's' => get_query_var('s'), 'paged' => $paged));
$st_search_query = $wp_query;
remove_action('pre_get_posts', array($cars, 'change_search_cars_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('cars/search-form');
?>
    </div>
    <div class="container">
        <h3 class="booking-title"><?php 
Example #7
0
                }
            }
        }
    }
}
?>
            </ul>
            <div>
                <?php 
if (!empty($count_sale)) {
    ?>
                    <span class="text-small lh1em  onsale">
                                    <?php 
    echo TravelHelper::format_money($price_sale);
    ?>
                                </span>
                    <i class="fa fa-long-arrow-right"></i>
                <?php 
}
?>
                <?php 
if (!empty($price)) {
    echo '<span class="text-darken mb0 text-color">' . TravelHelper::format_money($price) . '<small> /' . strtolower(STCars::get_price_unit('label')) . '</small></span>';
}
?>
            </div>
        </div>
    </div>
    <div class="gap"></div>
</div>
 * Date: 14/07/2015
 * Time: 3:17 CH
 */
$item_data = isset($item['item_meta']) ? $item['item_meta'] : array();
?>
<ul class="wc-order-item-meta-list">    
    <?php 
if (isset($item_data['_st_price_unit'])) {
    ?>
        <li>
            <span class="meta-label"><?php 
    _e('Price Unit:', ST_TEXTDOMAIN);
    ?>
</span>
            <span class="meta-data"><?php 
    echo STCars::get_price_unit_by_unit_id(st_wc_parse_order_item_meta($item_data['_st_price_unit']));
    ?>
</span>
        </li>
    <?php 
}
?>

    <?php 
if (isset($item_data['_st_pick_up']) and $item_data['_st_pick_up']) {
    ?>
    <li>
        <span class="meta-label"><?php 
    _e('Pick-up:', ST_TEXTDOMAIN);
    ?>
</span>
:</h4>

                    <div class="booking-item-payment">
                        <?php 
    $all_items = STCart::get_items();
    if (!empty($all_items) and is_array($all_items)) {
        foreach ($all_items as $key => $value) {
            if (get_post_status($key)) {
                $post_type = get_post_type($key);
                switch ($post_type) {
                    case "st_hotel":
                        $hotel = new STHotel();
                        echo balanceTags($hotel->get_cart_item_html($key));
                        break;
                    case "st_cars":
                        $cars = new STCars();
                        echo balanceTags($cars->get_cart_item_html($key));
                        break;
                    case "st_tours":
                        $tours = new STTour();
                        echo balanceTags($tours->get_cart_item_html($key));
                        break;
                    case "st_holidays":
                        $holidays = new STHoliday();
                        echo balanceTags($holidays->get_cart_item_html($key));
                        break;
                    case "st_rental":
                        $object = new STRental();
                        echo balanceTags($object->get_cart_item_html($key));
                        break;
                    case "st_activity":
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Custom option theme option
 *
 * Created by ShineTheme
 *
 */
if (!class_exists('TravelHelper')) {
    return;
}
$custom_settings = array('sections' => array(array('id' => 'option_general', 'title' => __('<i class="fa fa-tachometer"></i> General Options', ST_TEXTDOMAIN)), array('id' => 'option_bc', 'title' => __('<i class="fa fa-tachometer"></i> Breadcrumb Options', ST_TEXTDOMAIN)), array('id' => 'option_style', 'title' => __('<i class="fa fa-paint-brush"></i> Styling Options', ST_TEXTDOMAIN)), array('id' => 'option_featured', 'title' => __('<i class="fa fa-flag-checkered"></i> Featured Options', ST_TEXTDOMAIN)), array('id' => 'option_blog', 'title' => __('<i class="fa fa-bold"></i> Blog Options', ST_TEXTDOMAIN)), array('id' => 'option_page', 'title' => __('<i class="fa fa-file-text"></i> Page Options', ST_TEXTDOMAIN)), array('id' => 'option_booking', 'title' => __('<i class="fa fa-book"></i> Booking Options', ST_TEXTDOMAIN)), array('id' => 'option_tax', 'title' => __('<i class="fa fa-exchange"></i> Tax Options', ST_TEXTDOMAIN)), array('id' => 'option_review', 'title' => __('<i class="fa fa-comments-o"></i> Review Options', ST_TEXTDOMAIN)), array('id' => 'option_hotel', 'title' => __('<i class="fa fa-building"></i> Hotel Options', ST_TEXTDOMAIN)), array('id' => 'option_rental', 'title' => __('<i class="fa fa-home"></i> Rental Options', ST_TEXTDOMAIN)), array('id' => 'option_car', 'title' => __('<i class="fa fa-car"></i> Car Options', ST_TEXTDOMAIN)), array('id' => 'option_activity_tour', 'title' => __('<i class="fa fa-suitcase"></i> Tour Options', ST_TEXTDOMAIN)), array('id' => 'option_activity', 'title' => __('<i class="fa fa-ticket"></i> Activity Options', ST_TEXTDOMAIN)), array('id' => 'option_partner', 'title' => __('<i class="fa fa-users"></i> Partner Options', ST_TEXTDOMAIN)), array('id' => 'option_search', 'title' => __('<i class="fa fa-search"></i> Search Options', ST_TEXTDOMAIN)), array('id' => 'option_email', 'title' => __('<i class="fa fa-envelope"></i> Email Options', ST_TEXTDOMAIN)), array('id' => 'option_social', 'title' => __('<i class="fa fa-facebook-official"></i> Social Options', ST_TEXTDOMAIN)), array('id' => 'option_404', 'title' => __('<i class="fa fa-exclamation-triangle"></i> 404 Options', ST_TEXTDOMAIN)), array('id' => 'option_shop', 'title' => __('<i class="fa fa-shopping-cart"></i> Shop Options', ST_TEXTDOMAIN)), array('id' => 'option_advance', 'title' => __('<i class="fa fa-cogs"></i> Advance Options', ST_TEXTDOMAIN))), 'settings' => array(array('id' => 'st_text_featured', 'label' => __('Text Featured', ST_TEXTDOMAIN), 'desc' => 'Text Featured', 'type' => 'text', 'section' => 'option_featured', 'class' => '', 'std' => 'Featured'), array('id' => 'st_text_featured_color', 'label' => __('Text Color', ST_TEXTDOMAIN), 'desc' => 'Text Color', 'type' => 'colorpicker', 'section' => 'option_featured', 'class' => '', 'std' => '#fff'), array('id' => 'st_text_featured_bg', 'label' => __('Background color', ST_TEXTDOMAIN), 'desc' => 'Background color', 'type' => 'colorpicker', 'section' => 'option_featured', 'class' => '', 'std' => '#19A1E5'), array('id' => 'gen_enable_smscroll', 'label' => __('Enable Nice Scroll', ST_TEXTDOMAIN), 'desc' => __('This allows you to turn on or off <em>Nice Scroll Effect</em>', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'off'), array('id' => 'gen_enable_sticky_menu', 'label' => __('Enable Sticky Menu', ST_TEXTDOMAIN), 'desc' => __('This allows you to turn on or off <em>Sticky Menu Feature</em>', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'off'), array('id' => 'favicon', 'label' => __('Favicon', ST_TEXTDOMAIN), 'desc' => __('This allows you to change favicon of your website', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/favicon.png'), array('id' => 'logo', 'label' => __('Logo', ST_TEXTDOMAIN), 'desc' => __('This allows you to change logo', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/logo.png'), array('id' => 'logo_retina', 'label' => __('Logo Retina', ST_TEXTDOMAIN), 'desc' => __('Note: You MUST re-name Logo Retina to logo-name@2x.ext-name. Example:<br>
                                    Logo is: <em>my-logo.jpg</em><br>Logo Retina must be: <em>my-logo@2x.jpg</em>  ', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/logo@2x.png'), array('id' => 'st_seo_option', 'label' => __('SEO options', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'type' => 'on-off', 'section' => 'option_general', 'class' => ''), array('id' => 'st_seo_title', 'label' => __('SEO Title', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'type' => 'text', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'st_seo_desc', 'label' => __('SEO Description', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'rows' => '5', 'type' => 'textarea-simple', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'st_seo_keywords', 'label' => __('SEO Keywords', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'rows' => '5', 'type' => 'textarea-simple', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'footer_template', 'label' => __('Page for footer', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_general'), array('id' => 'enable_user_online_noti', 'label' => __('Enable User Online Notification', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'enable_last_booking_noti', 'label' => __('Enable Last Booking Notification', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'enable_user_nav', 'label' => __('Enable User Nav', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'noti_position', 'label' => __('Notification Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_general', 'std' => 'topRight', 'choices' => array(array('label' => __('Top Right', ST_TEXTDOMAIN), 'value' => 'topRight'), array('label' => __('Top Left', ST_TEXTDOMAIN), 'value' => 'topLeft'), array('label' => __('Bottom Right', ST_TEXTDOMAIN), 'value' => 'bottomRight'), array('label' => __('Bottom Left', ST_TEXTDOMAIN), 'value' => 'bottomLeft'))), array('id' => 'st_weather_temp_unit', 'label' => __('Weather Temp Unit', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_general', 'std' => 'c', 'choices' => array(array('label' => __('Fahrenheit (f)', ST_TEXTDOMAIN), 'value' => 'f'), array('label' => __('Celsius (c)', ST_TEXTDOMAIN), 'value' => 'c'), array('label' => __('Kelvin (k)', ST_TEXTDOMAIN), 'value' => 'k'))), array('id' => 'list_disabled_feature', 'label' => __('Disable Theme Service', ST_TEXTDOMAIN), 'type' => 'checkbox', 'section' => 'option_general', 'choices' => array(array('label' => __('Hotel', ST_TEXTDOMAIN), 'value' => 'st_hotel'), array('label' => __('Car', ST_TEXTDOMAIN), 'value' => 'st_cars'), array('label' => __('Rental', ST_TEXTDOMAIN), 'value' => 'st_rental'), array('label' => __('Tour', ST_TEXTDOMAIN), 'value' => 'st_tours'), array('label' => __('Activity', ST_TEXTDOMAIN), 'value' => 'st_activity'), array('label' => __('Food', ST_TEXTDOMAIN), 'value' => 'st_food'))), array('id' => 'tax_enable', 'label' => __('Enable Tax', ST_TEXTDOMAIN), 'desc' => __('Enable tax calculations', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_tax', 'std' => 'off'), array('id' => 'st_tax_include_enable', 'label' => __('Include tax in listing page', ST_TEXTDOMAIN), 'desc' => __('Include tax in listing page', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_tax', 'std' => 'off'), array('id' => 'tax_value', 'label' => __('Tax percentage', ST_TEXTDOMAIN), 'desc' => __('Tax percentage', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'section' => 'option_tax', 'min_max_step' => '0,100,1', 'condition' => 'tax_enable:is(on)', 'std' => 10), array('id' => 'review_need_booked', 'label' => __('Only Booked User Can Review', ST_TEXTDOMAIN), 'desc' => __('<em>ON:</em> Only booked user can review<br><em>OFF:</em>Allow users to add a review where they have not booked', ST_TEXTDOMAIN), 'section' => 'option_review', 'type' => 'on-off', 'std' => 'on'), array('id' => 'review_without_login', 'label' => __('Write reviews without logging in', ST_TEXTDOMAIN), 'desc' => __('<em>ON:</em> Enable review without logging in <br><em>OFF:Disble review without logging in</em>', ST_TEXTDOMAIN), 'section' => 'option_review', 'type' => 'on-off', 'std' => 'off'), array('id' => 'blog_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'desc' => __('You can choose No sidebar, Left Sidebar and Right Sidebar', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_blog', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'right'), array('id' => 'blog_sidebar_id', 'label' => __('Widget Area', ST_TEXTDOMAIN), 'desc' => __('You can choose from the list', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_blog', 'std' => 'blog-sidebar'), array('id' => 'page_my_account_dashboard', 'label' => __('My account dashboard page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_redirect_to_after_login', 'label' => __('Redirect to after login', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_redirect_to_after_logout', 'label' => __('Redirect to after logout', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_user_login', 'label' => __('User Login', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_checkout', 'label' => __('Checkout Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_payment_success', 'label' => __('Payment Success Page', ST_TEXTDOMAIN), 'desc' => __('Payment Success or Thank you page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_order_confirm', 'label' => __('Order Confirm Page', ST_TEXTDOMAIN), 'desc' => __('Order Confirm Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_terms_conditions', 'label' => __('Terms and Conditions Page', ST_TEXTDOMAIN), 'desc' => __('Terms and Conditions Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'right_to_left', 'label' => __('Right to left', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_style', 'output' => '', 'std' => 'off'), array('id' => 'header_transparent', 'label' => __('Header Transparent', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_style', 'output' => '', 'std' => 'off'), array('id' => 'typography', 'label' => __('Typography', ST_TEXTDOMAIN), 'type' => 'typography', 'section' => 'option_style', 'output' => 'body'), array('id' => 'google_fonts', 'label' => __('Google Fonts', ST_TEXTDOMAIN), 'type' => 'google-fonts', 'section' => 'option_style'), array('id' => 'star_color', 'label' => __('Star Color', ST_TEXTDOMAIN), 'desc' => __('Star Color', ST_TEXTDOMAIN), 'type' => 'colorpicker', 'section' => 'option_style'), array('id' => 'heading_fonts', 'label' => __('Heading fonts', ST_TEXTDOMAIN), 'type' => 'typography', 'section' => 'option_style', 'output' => 'h1,h2,h3,h4,h5,.text-hero'), array('id' => 'style_layout', 'label' => __('Layout', ST_TEXTDOMAIN), 'desc' => __('You can choose Wide or Boxed layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_style', 'choices' => array(array('value' => 'wide', 'label' => __('Wide', ST_TEXTDOMAIN)), array('value' => 'boxed', 'label' => __('Boxed', ST_TEXTDOMAIN)))), array('id' => 'body_background', 'label' => __('Body Background', ST_TEXTDOMAIN), 'desc' => __('Body Background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => 'body'), array('id' => 'main_wrap_background', 'label' => __('Main wrap background', ST_TEXTDOMAIN), 'desc' => __('Main wrap background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => '.global-wrap'), array('id' => 'header_background', 'label' => __('Header background', ST_TEXTDOMAIN), 'desc' => __('Header Background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => '.header-top'), array('id' => 'style_default_scheme', 'label' => __('Default Color Scheme', ST_TEXTDOMAIN), 'desc' => __('Select Default Color Scheme or choose your own main color bellow', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_style', 'output' => '', 'std' => '', 'choices' => array(array('label' => '-- Please Select ---', 'value' => ''), array('label' => 'Bright Turquoise', 'value' => '#0EBCF2'), array('label' => 'Turkish Rose', 'value' => '#B66672'), array('label' => 'Salem', 'value' => '#12A641'), array('label' => 'Hippie Blue', 'value' => '#4F96B6'), array('label' => 'Mandy', 'value' => '#E45E66'), array('label' => 'Green Smoke', 'value' => '#96AA66'), array('label' => 'Horizon', 'value' => '#5B84AA'), array('label' => 'Cerise', 'value' => '#CA2AC6'), array('label' => 'Brick red', 'value' => '#cf315a'), array('label' => 'De-York', 'value' => '#74C683'), array('label' => 'Shamrock', 'value' => '#30BBB1'), array('label' => 'Studio', 'value' => '#7646B8'), array('label' => 'Leather', 'value' => '#966650'), array('label' => 'Denim', 'value' => '#1A5AE4'), array('label' => 'Scarlet', 'value' => '#FF1D13'))), array('id' => 'main_color', 'label' => __('Main Color', ST_TEXTDOMAIN), 'desc' => __('Choose your theme\'s main color', ST_TEXTDOMAIN), 'type' => 'colorpicker', 'section' => 'option_style', 'std' => '#ed8323'), array('id' => 'custom_css', 'label' => __('Custom CSS', ST_TEXTDOMAIN), 'type' => 'css', 'section' => 'option_style'), array('id' => 'view_star_review', 'label' => __('Enable Hotel Stars or Hotel Review.', ST_TEXTDOMAIN), 'desc' => '', 'type' => 'select', 'section' => 'option_advance', 'choices' => array(array('label' => __('Hotel Stars', ST_TEXTDOMAIN), 'value' => 'star'), array('label' => __('Hotel Reviews', ST_TEXTDOMAIN), 'value' => 'review'))), array('id' => 'datetime_format', 'label' => __('Date Format', ST_TEXTDOMAIN), 'type' => 'text', 'std' => '{mm}/{dd}/{yyyy}', 'section' => 'option_advance', 'desc' => __('The date format, combination of d, dd, D, DD, m, mm, M, MM, yy, yyyy. It is surrounded by <code>\'{}\'</code>. Ex: {dd}/{mm}/{yyyy}.
                <ul>
                <li><code>d, dd</code>: Numeric date, no leading zero and leading zero, respectively. Eg, 5, 05.</li>
                <li><code>D, DD</code>: Abbreviated and full weekday names, respectively. Eg, Mon, Monday.</li>
                <li><code>m, mm</code>: Numeric month, no leading zero and leading zero, respectively. Eg, 7, 07.</li>
                <li><code>M, MM</code>: Abbreviated and full month names, respectively. Eg, Jan, January</li>
                <li><code>yy, yyyy:</code> 2- and 4-digit years, respectively. Eg, 12, 2012.</li>
                </ul>
                ', ST_TEXTDOMAIN)), array('id' => 'update_weather_by', 'label' => __('Weather updates:', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '1,12,1', 'std' => 12, 'section' => 'option_advance', 'desc' => __('Weather updates (Unit: hour)', ST_TEXTDOMAIN)), array('id' => 'show_price_free', 'label' => __('Show price when accommodation is free', ST_TEXTDOMAIN), 'type' => 'on-off', 'desc' => __('Price is not shown when accommodation is free', ST_TEXTDOMAIN), 'section' => 'option_advance', 'std' => 'off'), array('id' => 'adv_compress_html', 'label' => __('Compress HTML', ST_TEXTDOMAIN), 'desc' => __('This allows you to compress HTML code.', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_advance', 'std' => 'off'), array('id' => 'adv_before_body_content', 'label' => __('Before Body Content', ST_TEXTDOMAIN), 'desc' => sprintf(__('Right after the opening %s tag.', ST_TEXTDOMAIN), esc_html('<body>')), 'type' => 'textarea-simple', 'section' => 'option_advance'), array('id' => 'edv_enable_demo_mode', 'label' => __('Enable Demo Mode', ST_TEXTDOMAIN), 'desc' => __('Do some magical', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_advance', 'std' => 'off'), array('id' => 'edv_share_code', 'label' => __('Custom Share Code', ST_TEXTDOMAIN), 'desc' => __('You you want change the share code in single item. Change this<br><code>[__post_permalink__]</code> for Permalink<br><code>[__post_title__]</code> for Title', ST_TEXTDOMAIN), 'type' => 'textarea-simple', 'section' => 'option_advance', 'std' => '<li><a href="https://www.facebook.com/sharer/sharer.php?u=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="Facebook"><i class="fa fa-facebook fa-lg"></i></a></li>
        <li><a href="http://twitter.com/share?url=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="Twitter"><i class="fa fa-twitter fa-lg"></i></a></li>
        <li><a href="https://plus.google.com/share?url=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="Google+"><i class="fa fa-google-plus fa-lg"></i></a></li>
        <li><a class="no-open" href="javascript:void((function()%7Bvar%20e=document.createElement(\'script\');e.setAttribute(\'type\',\'text/javascript\');e.setAttribute(\'charset\',\'UTF-8\');e.setAttribute(\'src\',\'http://assets.pinterest.com/js/pinmarklet.js?r=\'+Math.random()*99999999);document.body.appendChild(e)%7D)());" target="_blank" original-title="Pinterest"><i class="fa fa-pinterest fa-lg"></i></a></li>
        <li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="LinkedIn"><i class="fa fa-linkedin fa-lg"></i></a></li>'), array('id' => 'use_woocommerce_for_booking', 'label' => __('Use Woocomerce for Booking', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_booking'), array('id' => 'booking_modal', 'label' => __('Booking with Modal', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_booking', 'condition' => 'use_woocommerce_for_booking:is(off)'), array('id' => 'booking_enable_captcha', 'label' => __('Booking Enable Captcha', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_booking'), array('id' => 'booking_card_accepted', 'label' => __('Card Accepted', ST_TEXTDOMAIN), 'desc' => __('Card Accepted', ST_TEXTDOMAIN), 'type' => 'list-item', 'settings' => array(array('id' => 'image', 'label' => __('Image', ST_TEXTDOMAIN), 'desc' => __('Image', ST_TEXTDOMAIN), 'type' => 'upload')), 'std' => array(array('title' => 'Master Card', 'image' => get_template_directory_uri() . '/img/card/mastercard.png'), array('title' => 'JCB', 'image' => get_template_directory_uri() . '/img/card/jcb.png'), array('title' => 'Union Pay', 'image' => get_template_directory_uri() . '/img/card/unionpay.png'), array('title' => 'VISA', 'image' => get_template_directory_uri() . '/img/card/visa.png'), array('title' => 'American Express', 'image' => get_template_directory_uri() . '/img/card/americanexpress.png')), 'section' => 'option_booking'), array('id' => 'booking_currency', 'label' => __('Currency List', ST_TEXTDOMAIN), 'desc' => __('This allows you to add currency to your website', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_booking', 'settings' => array(array('id' => 'name', 'label' => __('Currency Name', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => TravelHelper::ot_all_currency()), array('id' => 'symbol', 'label' => __('Currency Symbol', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'rate', 'label' => __('Exchange rate', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and', 'desc' => __('Exchange rate vs Primary Currency', ST_TEXTDOMAIN))), 'std' => array(array('title' => 'USD', 'name' => 'USD', 'symbol' => '$', 'rate' => 1), array('title' => 'EUR', 'name' => 'EUR', 'symbol' => '€', 'rate' => 0.7964909999999999), array('title' => 'GBP', 'name' => 'GBP', 'symbol' => '£', 'rate' => 0.636169))), array('id' => 'booking_primary_currency', 'label' => __('Primary Currency', ST_TEXTDOMAIN), 'desc' => __('This allows you to set Primary Currency to your website', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_booking', 'choices' => TravelHelper::get_currency(true), 'std' => 'USD'), array('id' => 'booking_currency_pos', 'label' => __('Currency Position', ST_TEXTDOMAIN), 'desc' => __('This controls the position of the currency symbol.<br>Ex: $400 or 400 $', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_booking', 'choices' => array(array('value' => 'left', 'label' => __('Left (£99.99)', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right (99.99£)', ST_TEXTDOMAIN)), array('value' => 'left_space', 'label' => __('Left with space (£ 99.99)', ST_TEXTDOMAIN)), array('value' => 'right_space', 'label' => __('Right with space (99.99 £)', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'thousand_separator', 'label' => __('Thousand Separator', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_booking', 'std' => '.', 'desc' => __('Optional. Specifies what string to use for thousands separator.', ST_TEXTDOMAIN)), array('id' => 'decimal_separator', 'label' => __('Decimal Separator', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_booking', 'std' => ',', 'desc' => __('Optional. Specifies what string to use for decimal point', ST_TEXTDOMAIN)), array('id' => 'booking_currency_precision', 'label' => __('Currency decimal', ST_TEXTDOMAIN), 'desc' => __('Sets the number of decimal points.', ST_TEXTDOMAIN), 'section' => 'option_booking', 'type' => 'numeric-slider', 'min_max_step' => '0,5,1', 'std' => 2), array('id' => 'is_guest_booking', 'label' => __('Turn off Guest Booking', ST_TEXTDOMAIN), 'desc' => __('Turn off Guest Booking.', ST_TEXTDOMAIN), 'section' => 'option_booking', 'type' => 'on-off', 'std' => 'off'), array('id' => 'hotel_show_min_price', 'label' => __("Which Price is showing in listing page", ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => 'avg_price', 'label' => __('Avg Price', ST_TEXTDOMAIN)), array('value' => 'min_price', 'label' => __('Min Price', ST_TEXTDOMAIN))), 'section' => 'option_hotel'), array('id' => 'hotel_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_hotel'), array('id' => 'hotel_posts_per_page', 'label' => __('Posts Per Page', ST_TEXTDOMAIN), 'desc' => __('Posts Per Page', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '1,50,1', 'section' => 'option_hotel', 'std' => '12'), array('id' => 'hotel_single_layout', 'label' => __('Hotel Detail Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => st_get_layout('st_hotel')), array('id' => 'hotel_search_layout', 'label' => __('Hotel Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => st_get_layout('st_hotel')), array('id' => 'hotel_max_adult', 'label' => __('Max Adult In Room', ST_TEXTDOMAIN), 'desc' => __('Max Adult In Room', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'std' => 14), array('id' => 'hotel_max_child', 'label' => __('Max Child In Room', ST_TEXTDOMAIN), 'desc' => __('Max Child In Room', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'std' => 14), array('id' => 'hotel_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_hotel', 'std' => 'on'), array('id' => 'hotel_review_stats', 'label' => __('Hotel Review Stats', ST_TEXTDOMAIN), 'desc' => __('Hotel Review Stats', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_hotel', 'condition' => 'hotel_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Clearness'), array('title' => 'Room(s)'))), array('id' => 'hotel_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'hotel_sidebar_area', 'label' => __('Sidebar Area', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_hotel'), array('id' => 'is_featured_search_hotel', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_hotel'), array('id' => 'hotel_search_fields', 'label' => __('Hotel Search Fields', ST_TEXTDOMAIN), 'desc' => __('Hotel Search Fields', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_hotel', 'std' => array(array('title' => 'Where', 'name' => 'location', 'layout_col' => 4), array('title' => 'Check in', 'name' => 'checkin', 'layout_col' => 2), array('title' => 'Check out', 'name' => 'checkout', 'layout_col' => 2), array('title' => 'Room(s)', 'name' => 'room_num', 'layout_col' => 2), array('title' => 'Adult', 'name' => 'adult', 'layout_col' => 2)), 'settings' => array(array('id' => 'name', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STHotel::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'name:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => st_get_post_taxonomy('st_hotel')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on'))), array('id' => 'hotel_nearby_range', 'label' => __('Hotel Nearby Range', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'desc' => __('This allows you to change max range of nearby hotel (in km)', ST_TEXTDOMAIN), 'std' => 10), array('id' => 'hotel_unlimited_custom_field', 'label' => __('Hotel custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_hotel', 'desc' => __('Hotel custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'rental_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_rental'), array('id' => 'rental_single_layout', 'label' => __('Rental Single Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => st_get_layout('st_rental')), array('id' => 'rental_search_layout', 'label' => __('Rental Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => st_get_layout('st_rental')), array('id' => 'rental_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_rental', 'std' => 'on'), array('id' => 'rental_review_stats', 'label' => __('Rental Review Stats', ST_TEXTDOMAIN), 'desc' => __('Rental Review Stats', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_rental', 'condition' => 'rental_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Clearness'), array('title' => 'Room(s)'))), array('id' => 'rental_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'rental_sidebar_area', 'label' => __('Sidebar Area', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_rental', 'std' => 'rental-sidebar'), array('id' => 'is_featured_search_rental', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_rental'), array('id' => 'rental_search_fields', 'label' => __('Rental Search Fields', ST_TEXTDOMAIN), 'desc' => __('Rental Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_rental', 'settings' => array(array('id' => 'name', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => TravelHelper::st_get_field_search('st_rental', 'option_tree')), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Large-box column size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout_col2', 'label' => __('Small-box column size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_rental')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Where are you going?', 'name' => 'location', 'layout_col' => '4', 'layout_col2' => '12'), array('title' => 'Check in', 'name' => 'checkin', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Check out', 'name' => 'checkout', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Room(s)', 'name' => 'room_num', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Adults', 'name' => 'adult', 'layout_col' => '2', 'layout_col2' => '3'))), array('id' => 'rental_unlimited_custom_field', 'label' => __('Rental custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_rental', 'desc' => __('Rental custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'cars_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_car'), array('id' => 'cars_single_layout', 'label' => __('Cars Single Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => st_get_layout('st_cars')), array('id' => 'cars_layout_layout', 'label' => __('Cars Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => st_get_layout('st_cars')), array('id' => 'is_required_country', 'label' => __('Required Pickup and Dropoff in the same country', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car'), array('id' => 'cars_price_unit', 'label' => __('Price Unit', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => STCars::get_option_price_unit(), 'std' => 'day'), array('id' => 'booking_days_included', 'label' => __('Booking Days included check-in day', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car'), array('id' => 'is_featured_search_car', 'label' => __('Show featured car in top of search results', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car'), array('id' => 'car_search_fields', 'label' => __('Car Search Fields', ST_TEXTDOMAIN), 'desc' => __('Car Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'settings' => array(array('id' => 'field_atrribute', 'label' => __('Field Atrribute', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STCars::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col_normal', 'label' => __('Layout Normal size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_cars')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Pick-up-From', 'layout_col_normal' => 6, 'field_atrribute' => 'pick-up-form'), array('title' => 'Drop-off To', 'layout_col_normal' => 6, 'field_atrribute' => 'drop-off-to'), array('title' => 'Pick-up Date ,Pick-up Time', 'layout_col_normal' => 6, 'field_atrribute' => 'pick-up-date-time'), array('title' => 'Drop-off Date ,Drop-off Time', 'layout_col_normal' => 6, 'field_atrribute' => 'drop-off-date-time'))), array('id' => 'car_search_fields_box', 'label' => __('Change Location & Date Box', ST_TEXTDOMAIN), 'desc' => __('Search fields in Change Location & Date in single car page', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'settings' => array(array('id' => 'field_atrribute', 'label' => __('Field Atrribute', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STCars::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col_box', 'label' => __('Layout Box size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1/12', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2/12', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3/12', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4/12', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5/12', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6/12', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7/12', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8/12', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9/12', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10/12', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11/12', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12/12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_cars')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Pick-up From', 'layout_col_box' => 6, 'field_atrribute' => 'pick-up-form'), array('title' => 'Drop-off To', 'layout_col_box' => 6, 'field_atrribute' => 'drop-off-to'), array('title' => 'Pick-up Date', 'layout_col_box' => 3, 'field_atrribute' => 'pick-up-date'), array('title' => 'Pick-up Time', 'layout_col_box' => 3, 'field_atrribute' => 'pick-up-time'), array('title' => 'Drop-off Date', 'layout_col_box' => 3, 'field_atrribute' => 'drop-off-date'), array('title' => 'Drop-off Time', 'layout_col_box' => 3, 'field_atrribute' => 'drop-off-time'))), array('id' => 'car_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_car', 'std' => 'on'), array('id' => 'car_review_stats', 'label' => __('Car Review Stats', ST_TEXTDOMAIN), 'desc' => __('Car Review Stats', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_car', 'condition' => 'hotel_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'stat name 1'), array('title' => 'stat name 2'), array('title' => 'stat name 3'), array('title' => 'stat name 4'), array('title' => 'stat name 5'))), array('id' => 'st_cars_unlimited_custom_field', 'label' => __('Cars custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'desc' => __('Cars custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'email_from', 'label' => __('Email From Name', ST_TEXTDOMAIN), 'desc' => __('Email From Name', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_email', 'std' => 'Traveler Shinetheme'), array('id' => 'email_from_address', 'label' => __('Email From Address', ST_TEXTDOMAIN), 'desc' => __('Email From Address', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_email', 'std' => '*****@*****.**'), array('id' => 'email_logo', 'label' => __('Logo in Email', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_email', 'desc' => __('Logo in Email', ST_TEXTDOMAIN), 'std' => get_template_directory_uri() . '/img/logo.png'), array('id' => 'enable_email_for_custommer', 'label' => __('Email after booking for custommer', ST_TEXTDOMAIN), 'desc' => __('Email after booking for custommer', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'enable_email_for_admin', 'label' => __('Email after booking for Admin', ST_TEXTDOMAIN), 'desc' => __('Email after booking for Admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'email_admin_address', 'label' => __('Admin Email Address', ST_TEXTDOMAIN), 'desc' => __('Booking information will be sent to here', ST_TEXTDOMAIN), 'type' => 'text', 'condition' => 'enable_email_for_admin:is(on)', 'section' => 'option_email'), array('id' => 'enable_email_for_owner_item', 'label' => __('Email after booking for Owner Item', ST_TEXTDOMAIN), 'desc' => __('Email after booking for Owner Item', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'tours_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_activity_tour'), array('id' => 'activity_tour_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'std' => 'std'), array('id' => 'tours_layout', 'label' => __('Tours Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_tour', 'choices' => st_get_layout('st_tours')), array('id' => 'tours_search_layout', 'label' => __('Tours Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_tour', 'choices' => st_get_layout('st_tours')), array('id' => 'tours_similar_tour', 'label' => __('Similar Tour display number ', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_activity_tour', 'std' => '5', 'desc' => __('Similar Tour display number', ST_TEXTDOMAIN)), array('id' => 'activity_tour_check_review_admin', 'label' => __('Review must be approve by admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'condition' => 'activity_tour_review:is(on)'), array('id' => 'is_featured_search_tour', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity_tour'), array('id' => 'is_featured_search_tour', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity_tour'), array('id' => 'activity_tour_search_fields', 'label' => __('Tour Search Fields', ST_TEXTDOMAIN), 'desc' => __('Tour Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_tour', 'settings' => array(array('id' => 'tours_field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STTour::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'tours_field_search:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_tours')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 6, 'layout2_col' => 6, 'tours_field_search' => 'address'), array('title' => 'Departure date', 'layout_col' => 3, 'layout2_col' => 3, 'tours_field_search' => 'check_in'), array('title' => 'Arrival Date', 'layout_col' => 3, 'layout2_col' => 3, 'tours_field_search' => 'check_out'))), array('id' => 'tours_unlimited_custom_field', 'label' => __('Tours custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_tour', 'desc' => __('Tours custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'activity_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_activity'), array('id' => 'activity_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity', 'std' => 'std'), array('id' => 'activity_layout', 'label' => __('Activity Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity', 'choices' => st_get_layout('st_activity')), array('id' => 'activity_search_layout', 'label' => __('Activity Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity', 'choices' => st_get_layout('st_activity')), array('id' => 'is_featured_search_activity', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity'), array('id' => 'activity_search_fields', 'label' => __('Activity Search Fields', ST_TEXTDOMAIN), 'desc' => __('Activity Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity', 'settings' => array(array('id' => 'activity_field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STActivity::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'activity_field_search:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_activity')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 3, 'layout2_col' => 6, 'activity_field_search' => 'address'), array('title' => 'From', 'layout_col' => 3, 'layout2_col' => 3, 'activity_field_search' => 'check_in'), array('title' => 'To', 'layout_col' => 3, 'layout2_col' => 3, 'activity_field_search' => 'check_out'))), array('id' => 'st_activity_unlimited_custom_field', 'label' => __('Activity custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity', 'desc' => __('Activity custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'partner_enable_feature', 'label' => __('Enable Partner Feature', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'off'), array('id' => 'partner_post_by_admin', 'label' => __('Partner\'s Post must be aprroved by admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'on'), array('id' => 'list_partner', 'label' => __('List Partner', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_partner', 'settings' => array(array('id' => 'id_partner', 'label' => __('Select Partner', ST_TEXTDOMAIN), 'type' => 'select', 'desc' => __('Select Partner', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'hotel', 'label' => __('Hotel Name', ST_TEXTDOMAIN)), array('value' => 'rental', 'label' => __('Rental', ST_TEXTDOMAIN)), array('value' => 'car', 'label' => __('Car', ST_TEXTDOMAIN)), array('value' => 'tour', 'label' => __('Tour', ST_TEXTDOMAIN)), array('value' => 'activity', 'label' => __('Activity', ST_TEXTDOMAIN))))), 'std' => array(array('title' => 'Hotel', 'id_partner' => 'hotel'), array('title' => 'Rental', 'id_partner' => 'rental'), array('title' => 'Car', 'id_partner' => 'car'), array('title' => 'Tour', 'id_partner' => 'tour'), array('title' => 'Activity', 'id_partner' => 'activity'))), array('id' => 'search_enable_preload', 'label' => __('Search enable Preload', ST_TEXTDOMAIN), 'desc' => __('Search enable Preload', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_search', 'std' => 'on'), array('id' => 'search_preload_image', 'label' => __('Search Preload Image', ST_TEXTDOMAIN), 'desc' => __('Search Preload Image', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_search', 'condition' => 'search_enable_preload:is(on)'), array('id' => 'search_results_view', 'label' => __('Search results default view', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('List view or Grid view', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'list', 'label' => __('List view', ST_TEXTDOMAIN)), array('value' => 'grid', 'label' => __('Grid view', ST_TEXTDOMAIN)))), array('id' => 'search_tabs', 'label' => __('Search Tabs:', ST_TEXTDOMAIN), 'desc' => __('Search Tabs on home page', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_search', 'settings' => array(array('id' => 'check_tab', 'label' => __('Show tab', ST_TEXTDOMAIN), 'type' => 'on-off'), array('id' => 'tab_icon', 'label' => __('Icon', ST_TEXTDOMAIN), 'type' => 'text', 'desc' => __('This allows you to change icon next to the title', ST_TEXTDOMAIN)), array('id' => 'tab_search_title', 'label' => __('Form Title', ST_TEXTDOMAIN), 'type' => 'text', 'desc' => __('This allows you to change the text above the form', ST_TEXTDOMAIN)), array('id' => 'tab_name', 'label' => __('Choose Tab', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => 'hotel', 'label' => __('Hotel Name', ST_TEXTDOMAIN)), array('value' => 'rental', 'label' => __('Rental', ST_TEXTDOMAIN)), array('value' => 'tour', 'label' => __('Tour', ST_TEXTDOMAIN)), array('value' => 'cars', 'label' => __('Car', ST_TEXTDOMAIN)), array('value' => 'activities', 'label' => __('Activities', ST_TEXTDOMAIN))))), 'std' => array(array('title' => 'Hotel', 'check_tab' => 'on', 'tab_icon' => 'fa-building-o', 'tab_search_title' => 'Search and Save on Hotels', 'tab_name' => 'hotel'), array('title' => 'Cars', 'check_tab' => 'on', 'tab_icon' => 'fa-car', 'tab_search_title' => 'Search for Cheap Rental Cars', 'tab_name' => 'cars'), array('title' => 'Tours', 'check_tab' => 'on', 'tab_icon' => 'fa-flag-o', 'tab_search_title' => 'Tours', 'tab_name' => 'tour'), array('title' => 'Rentals', 'check_tab' => 'on', 'tab_icon' => 'fa-home', 'tab_search_title' => 'Find Your Perfect Home', 'tab_name' => 'rental'), array('title' => 'Activity', 'check_tab' => 'on', 'tab_icon' => 'fa-bolt', 'tab_search_title' => 'Find Your Perfect Activity', 'tab_name' => 'activities'))), array('id' => 'search_header_onoff', 'label' => __('Enable Header Search', ST_TEXTDOMAIN), 'desc' => __('Enable Header Search', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_search', 'std' => 'on'), array('id' => 'search_header_orderby', 'label' => __('Header Search - Order By', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('Header Search - Order By', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => array(array('value' => 'none', 'label' => __('None', ST_TEXTDOMAIN)), array('value' => 'ID', 'label' => __('ID', ST_TEXTDOMAIN)), array('value' => 'author', 'label' => __('Author', ST_TEXTDOMAIN)), array('value' => 'title', 'label' => __('Title', ST_TEXTDOMAIN)), array('value' => 'name', 'label' => __('Name', ST_TEXTDOMAIN)), array('value' => 'date', 'label' => __('Date', ST_TEXTDOMAIN)), array('value' => 'rand', 'label' => __('Random', ST_TEXTDOMAIN)))), array('id' => 'search_header_order', 'label' => __('Header Search - Order', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('Header Search - Search by', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => array(array('value' => 'ASC', 'label' => __('ASC', ST_TEXTDOMAIN)), array('value' => 'DESC', 'label' => __('DESC', ST_TEXTDOMAIN)))), array('id' => 'search_header_list', 'label' => __('Header Search - Search by', ST_TEXTDOMAIN), 'type' => 'checkbox', 'section' => 'option_search', 'desc' => __('Header Search - Search by', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => get_list_posttype()), array('id' => '404_bg', 'label' => __('404 Background', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_404'), array('id' => '404_text', 'label' => __('404 Text', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '3', 'section' => 'option_404'), array('id' => 'social_fb_login', 'label' => __('Facebook Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'social_gg_login', 'label' => __('Google Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'social_tw_login', 'label' => __('Twitter Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'shop_default_list_view', 'type' => 'select', 'label' => __("Default List View Style", ST_TEXTDOMAIN), 'choices' => array(array('value' => 'grid', 'label' => __('Grid', ST_TEXTDOMAIN)), array('value' => 'list', 'label' => __('List', ST_TEXTDOMAIN))), 'std' => 'grid', 'section' => 'option_shop'), array('id' => 'shop_sidebar_pos', 'label' => __('Shop Archive Sidebar', ST_TEXTDOMAIN), 'desc' => __('Shop Archive Sidebar', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('label' => __('No Sidebar', ST_TEXTDOMAIN), 'value' => 'no'), array('label' => __('Left Sidebar', ST_TEXTDOMAIN), 'value' => 'left'), array('label' => __('Right Sidebar', ST_TEXTDOMAIN), 'value' => 'right')), 'section' => 'option_shop', 'std' => 'left'), array('id' => 'shop_sidebar_id', 'label' => __('Shop Archive Sidebar ID', ST_TEXTDOMAIN), 'desc' => __('Shop Archive Sidebar ID', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_shop', 'std' => 'shop'), array('id' => 'shop_single_sidebar_pos', 'label' => __('Product Sidebar', ST_TEXTDOMAIN), 'desc' => __('Product Sidebar', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('label' => __('No Sidebar', ST_TEXTDOMAIN), 'value' => 'no'), array('label' => __('Left Sidebar', ST_TEXTDOMAIN), 'value' => 'left'), array('label' => __('Right Sidebar', ST_TEXTDOMAIN), 'value' => 'right')), 'section' => 'option_shop', 'std' => 'left'), array('id' => 'shop_single_sidebar_id', 'label' => __('Product Sidebar ID', ST_TEXTDOMAIN), 'desc' => __('Product Sidebar ID', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_shop', 'std' => 'shop'), array('id' => 'bc_show_location_url', 'label' => __('Location link to Location Search Page', ST_TEXTDOMAIN), 'déc' => __('Yes for link to Location Search Page, No for link to Location Detail Page', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_bc', 'std' => 'on')));
$custom_settings = apply_filters('st_option_tree_settings', $custom_settings);
Example #11
0
 function st_price_cars_func()
 {
     $price_total_item = $_REQUEST['price_total_item'];
     $form_data = STInput::request('form_data');
     $selected_equipments = $form_data['selected_equipments'];
     $check_in_timestamp = $form_data['check_in_timestamp'];
     $check_out_timestamp = $form_data['check_out_timestamp'];
     $car_item = $form_data['item_id'];
     $info_price = STCars::get_info_price($car_item);
     $cars_price = $info_price['price'];
     $price_total = self::get_rental_price($cars_price, $check_in_timestamp, $check_out_timestamp);
     $total_equipment_price = 0;
     //Equipment Caculator
     $selected_equipments = json_decode($selected_equipments);
     if (!empty($selected_equipments) and is_array($selected_equipments)) {
         foreach ($selected_equipments as $key => $value) {
             switch ($value['price_unit']) {
                 case "per_day":
                     $diff = STDate::timestamp_diff_day($check_in_timestamp, $check_out_timestamp);
                     if (!$diff) {
                         $diff = 1;
                     }
                     $total_equipment_price += (double) $value['price'] * $diff;
                     break;
                 case "per_hour":
                     $diff = STDate::timestamp_diff($check_in_timestamp, $check_out_timestamp);
                     if (!$diff) {
                         $diff = 1;
                     }
                     $total_equipment_price += (double) $value['price'] * $diff;
                     break;
                 default:
                     $total_equipment_price += (double) $value['price'];
                     break;
             }
         }
     }
     $price_total += $total_equipment_price;
     echo json_encode(array('price_total_number' => $price_total, 'price_total_text' => TravelHelper::format_money($price_total), 'price_total_item_number' => $total_equipment_price, 'price_total_item_text' => TravelHelper::format_money($total_equipment_price)));
     die;
 }
Example #12
0
 static function ajax_submit_form()
 {
     //Add to cart then submit form
     $item_id = STInput::post('item_id');
     $sc = STInput::request('sc', '');
     if (!$item_id) {
         $name = '';
         if ($sc == 'add-hotel-booking') {
             $name = __('Hotel', ST_TEXTDOMAIN);
         } elseif ($sc == 'add-rental-booking') {
             $name = __('Rental', ST_TEXTDOMAIN);
         } elseif ($sc == 'add-car-booking') {
             $name = __('Car', ST_TEXTDOMAIN);
         } elseif ($sc == 'add-tour-booking') {
             $name = __('Tour', ST_TEXTDOMAIN);
         } elseif ($sc == 'add-holiday-booking') {
             $name = __('Holiday', ST_TEXTDOMAIN);
         } elseif ($sc == 'add-activity-booking') {
             $name = __('Activity', ST_TEXTDOMAIN);
         }
         $return = array('status' => false, 'message' => sprintf(__('Please choose a %s item ', ST_TEXTDOMAIN), $name));
     } else {
         $post_type = get_post_type($item_id);
         $number_room = STInput::post('number_room') ? STInput::post('number_room') : false;
         if (!$number_room) {
             $number_room = STInput::post('room_num_search') ? STInput::post('room_num_search') : 1;
         }
         self::destroy_cart();
         $validate = true;
         switch ($post_type) {
             case "st_hotel":
                 $hotel = new STHotel();
                 $validate = $hotel->do_add_to_cart();
                 break;
             case "st_cars":
                 $car = new STCars();
                 $validate = $car->do_add_to_cart();
                 break;
             case "st_activity":
                 $class = new STActivity();
                 $validate = $class->do_add_to_cart();
                 break;
             case "st_tours":
                 $class = new STTour();
                 $validate = $class->do_add_to_cart();
                 break;
             case "st_holidays":
                 $class = new STHoliday();
                 $validate = $class->do_add_to_cart();
                 break;
             case "st_rental":
                 $class = new STRental();
                 $validate = $class->do_add_to_cart();
                 break;
         }
         if ($validate) {
             $return = self::booking_form_submit($item_id);
         } else {
             $return = array('status' => false, 'message' => STTemplate::get_message_content());
             STTemplate::clear();
         }
     }
     echo json_encode($return);
     die;
 }
Example #13
0
 function st_search_list_half_map($attr, $content = false)
 {
     $post_type = STInput::request('post_type');
     $zoom = STInput::request('zoom');
     $number = STInput::request('number', 8);
     $style_map = STInput::request('style_map');
     $query = array('post_type' => $post_type, 'posts_per_page' => $number, 'post_status' => 'publish', 's' => '');
     $map_lat_center = 0;
     $map_lng_center = 0;
     $location_center = '[0,0]';
     $address_center = '';
     /*if(STInput::request( 'location_name' )) {
           $ids_location = TravelerObject::_get_location_by_name( STInput::get( 'location_name' ) );
           if(!empty( $ids_location )) {
               $_REQUEST['location_name'] = implode(',',$ids_location);
               $map_lat_center  = get_post_meta( $ids_location[ 0 ] , 'map_lat' , true );
               $map_lng_center  = get_post_meta( $ids_location[ 0 ] , 'map_lng' , true );
               $location_center = '[' . $map_lat_center . ',' . $map_lng_center . ']';
               $address_center  = get_the_title( $ids_location[ 0 ] );
           }
       }*/
     if (STInput::request('pick-up')) {
         $ids_location = TravelerObject::_get_location_by_name(STInput::get('pick-up'));
         if (!empty($ids_location)) {
             $_REQUEST['pick-up'] = implode(',', $ids_location);
             $map_lat_center = get_post_meta($ids_location[0], 'map_lat', true);
             $map_lng_center = get_post_meta($ids_location[0], 'map_lng', true);
             $location_center = '[' . $map_lat_center . ',' . $map_lng_center . ']';
             $address_center = get_the_title($ids_location[0]);
         }
     }
     if (STInput::request('location_id')) {
         $map_lat_center = get_post_meta(STInput::request('location_id'), 'map_lat', true);
         $map_lng_center = get_post_meta(STInput::request('location_id'), 'map_lng', true);
         $location_center = '[' . $map_lat_center . ',' . $map_lng_center . ']';
         $address_center = get_the_title(STInput::request('location_id'));
     }
     if (STInput::request('location_id_pick_up')) {
         $map_lat_center = get_post_meta(STInput::request('location_id_pick_up'), 'map_lat', true);
         $map_lng_center = get_post_meta(STInput::request('location_id_pick_up'), 'map_lng', true);
         $location_center = '[' . $map_lat_center . ',' . $map_lng_center . ']';
         $address_center = get_the_title(STInput::request('location_id_pick_up'));
     }
     $data_map = array();
     global $wp_query, $st_search_query;
     switch ($post_type) {
         case "st_hotel":
             $hotel = new STHotel();
             add_action('pre_get_posts', array($hotel, 'change_search_hotel_arg'));
             break;
         case "st_rental":
             $rental = new STRental();
             add_action('pre_get_posts', array($rental, 'change_search_arg'));
             break;
         case "st_cars":
             $cars = new STCars();
             add_action('pre_get_posts', array($cars, 'change_search_cars_arg'));
             break;
         case "st_tours":
             $tour = new STTour();
             //add_action( 'pre_get_posts' , array( $tour , 'change_search_tour_arg' ) );
             st()->tour->alter_search_query();
             break;
         case "st_holidays":
             $holiday = new STHoliday();
             //add_action( 'pre_get_posts' , array( $holiday , 'change_search_holiday_arg' ) );
             st()->holiday->alter_search_query();
             break;
         case "st_activity":
             $activity = new STActivity();
             add_action('pre_get_posts', array($activity, 'change_search_activity_arg'));
             break;
     }
     query_posts($query);
     $stt = 0;
     while (have_posts()) {
         the_post();
         $map_lat = get_post_meta(get_the_ID(), 'map_lat', true);
         $map_lng = get_post_meta(get_the_ID(), 'map_lng', true);
         if (!empty($map_lat) and !empty($map_lng)) {
             $post_type = get_post_type();
             $data_map[$stt]['id'] = get_the_ID();
             $data_map[$stt]['name'] = get_the_title();
             $data_map[$stt]['post_type'] = $post_type;
             $data_map[$stt]['lat'] = $map_lat;
             $data_map[$stt]['lng'] = $map_lng;
             $post_type_name = get_post_type_object($post_type);
             $post_type_name->label;
             switch ($post_type) {
                 case "st_hotel":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_hotel_icon_map_marker', 'http://maps.google.com/mapfiles/marker_black.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/hotel', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/hotel', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_rental":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_rental_icon_map_marker', 'http://maps.google.com/mapfiles/marker_brown.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/rental', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/rental', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_cars":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_cars_icon_map_marker', 'http://maps.google.com/mapfiles/marker_green.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/car', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/car', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_tours":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_tours_icon_map_marker', 'http://maps.google.com/mapfiles/marker_purple.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/tour', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/tour', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_holidays":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_holidays_icon_map_marker', 'http://maps.google.com/mapfiles/marker_purple.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/holiday', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/holiday', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_activity":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_activity_icon_map_marker', 'http://maps.google.com/mapfiles/marker_yellow.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/activity', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/activity', false, array('post_type' => $post_type_name->label)));
                     break;
             }
             $stt++;
         }
     }
     $st_search_query = $wp_query;
     switch ($post_type) {
         case "st_hotel":
             $hotel->remove_alter_search_query();
             break;
         case "st_rental":
             $rental->remove_alter_search_query();
             break;
         case "st_cars":
             $cars->remove_alter_search_query();
             break;
         case "st_tours":
             //remove_action( 'pre_get_posts' , array( $tour , 'change_search_tour_arg' ) );
             st()->tour->remove_alter_search_query();
             break;
         case "st_holidays":
             //remove_action( 'pre_get_posts' , array( $holiday , 'change_search_holiday_arg' ) );
             st()->holiday->remove_alter_search_query();
             break;
         case "st_activity":
             $activity->remove_alter_search_query();
             break;
     }
     if (!empty($_REQUEST['st_test'])) {
     }
     wp_reset_query();
     if ($location_center == '[,]' or $location_center == '[0,0]') {
         $location_center = '[21.289374,15.644531]';
         $data_map = "";
         $zoom = "3";
     }
     $data_tmp = array('location_center' => $location_center, 'zoom' => $zoom, 'data_map' => $data_map, 'style_map' => $style_map, 'number' => $number, 'address_center' => $address_center, 'map_lat_center' => $map_lat_center, 'map_lng_center' => $map_lng_center);
     echo json_encode($data_tmp);
     die;
 }
Example #14
0
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Cars content cars
 *
 * Created by ShineTheme
 *
 */
global $wp_query, $st_search_query;
if ($st_search_query) {
    $query = $st_search_query;
} else {
    $query = $wp_query;
}
$cars = new STCars();
$allOrderby = $cars->getOrderby();
?>
<div class="row">
    <div class="col-md-12">
        <?php 
if (!empty($attr)) {
    extract($attr);
} else {
    $st_style = '1';
}
$style = STInput::request('style');
if (!empty($style)) {
    $st_style = $style;
}
?>
Example #15
0
 static function ajax_submit_form()
 {
     //Add to cart then submit form
     $item_id = STInput::post('item_id');
     if (!$item_id) {
         $return = array('status' => false, 'message' => __('Please choose an item', ST_TEXTDOMAIN));
     } else {
         $post_type = get_post_type($item_id);
         $number_room = STInput::post('number_room') ? STInput::post('number_room') : false;
         if (!$number_room) {
             $number_room = STInput::post('room_num_search') ? STInput::post('room_num_search') : 1;
         }
         self::destroy_cart();
         $validate = true;
         switch ($post_type) {
             case "st_hotel":
                 $hotel = new STHotel();
                 $validate = $hotel->do_add_to_cart(array('item_id' => STInput::post('item_id'), 'number_room' => $number_room, 'price' => STInput::post('price'), 'check_in' => STInput::post('check_in'), 'check_out' => STInput::post('check_out'), 'room_num_search' => STInput::post('room_num_search'), 'room_num_config' => STInput::post('room_num_config'), 'room_id' => STInput::post('room_id')));
                 break;
             case "st_cars":
                 $car = new STCars();
                 $validate = $car->do_add_to_cart();
                 break;
             case "st_activity":
                 $class = new STActivity();
                 $validate = $class->do_add_to_cart();
                 break;
             case "st_tours":
                 $class = new STTour();
                 $validate = $class->do_add_to_cart();
                 break;
             case "st_rental":
                 $class = new STRental();
                 $validate = $class->do_add_to_cart();
                 break;
         }
         if ($validate) {
             $return = self::booking_form_submit($item_id);
         } else {
             $return = array('status' => false, 'message' => STTemplate::get_message_content());
             STTemplate::clear();
         }
     }
     echo json_encode($return);
     die;
 }
Example #16
0
        ?>
                                     <span class=" onsale">
                                      <?php 
        echo TravelHelper::format_money($price_origin);
        ?>
                                     </span>
                                    <i class="fa fa-long-arrow-right"></i>
                                <?php 
    }
    ?>
                                <span class="text-lg">
                                        <?php 
    echo TravelHelper::format_money($price);
    ?>
                                </span>/<?php 
    echo strtolower(STCars::get_price_unit('label'));
    ?>
                            </p>
                        <?php 
}
?>
    
                    </div>
                </div>
            </header>
            <div class="gap gap-small"></div>
            <?php 
if ($detail_cars_layout) {
    echo STTemplate::get_vc_pagecontent($detail_cars_layout);
} else {
    echo st()->load_template('cars/single', 'default');
Example #17
0
if (!class_exists('TravelHelper') or !class_exists('STHotel')) {
    return;
}
$custom_settings = array('sections' => array(array('id' => 'option_general', 'title' => __('<i class="fa fa-tachometer"></i> General Options', ST_TEXTDOMAIN)), array('id' => 'option_header', 'title' => __('<i class="fa fa-header"></i> Header Options', ST_TEXTDOMAIN)), array('id' => 'option_bc', 'title' => __('<i class="fa fa-tachometer"></i> Breadcrumb Options', ST_TEXTDOMAIN)), array('id' => 'option_style', 'title' => __('<i class="fa fa-paint-brush"></i> Styling Options', ST_TEXTDOMAIN)), array('id' => 'option_featured', 'title' => __('<i class="fa fa-flag-checkered"></i> Featured Options', ST_TEXTDOMAIN)), array('id' => 'option_blog', 'title' => __('<i class="fa fa-bold"></i> Blog Options', ST_TEXTDOMAIN)), array('id' => 'option_page', 'title' => __('<i class="fa fa-file-text"></i> Page Options', ST_TEXTDOMAIN)), array('id' => 'option_booking', 'title' => __('<i class="fa fa-book"></i> Booking Options', ST_TEXTDOMAIN)), array('id' => 'option_woo_checkout', 'title' => __('<i class="fa fa-book"></i> Woocommerce Checkout', ST_TEXTDOMAIN)), array('id' => 'option_tax', 'title' => __('<i class="fa fa-exchange"></i> Tax Options', ST_TEXTDOMAIN)), array('id' => 'option_location', 'title' => __('<i class="fa fa-location-arrow"></i> Location Options', ST_TEXTDOMAIN)), array('id' => 'option_review', 'title' => __('<i class="fa fa-comments-o"></i> Review Options', ST_TEXTDOMAIN)), array('id' => 'option_hotel', 'title' => __('<i class="fa fa-building"></i> Hotel Options', ST_TEXTDOMAIN)), array('id' => 'option_rental', 'title' => __('<i class="fa fa-home"></i> Rental Options', ST_TEXTDOMAIN)), array('id' => 'option_car', 'title' => __('<i class="fa fa-car"></i> Car Options', ST_TEXTDOMAIN)), array('id' => 'option_activity_tour', 'title' => __('<i class="fa fa-suitcase"></i> Tour Options', ST_TEXTDOMAIN)), array('id' => 'option_activity_holiday', 'title' => __('<i class="fa fa-suitcase"></i> Holiday Options', ST_TEXTDOMAIN)), array('id' => 'option_activity', 'title' => __('<i class="fa fa-ticket"></i> Activity Options', ST_TEXTDOMAIN)), array('id' => 'option_partner', 'title' => __('<i class="fa fa-users"></i> Partner Options', ST_TEXTDOMAIN)), array('id' => 'option_search', 'title' => __('<i class="fa fa-search"></i> Search Options', ST_TEXTDOMAIN)), array('id' => 'option_email', 'title' => __('<i class="fa fa-envelope"></i> Email Options', ST_TEXTDOMAIN)), array('id' => 'option_email_template', 'title' => __('<i class="fa fa-envelope"></i> Email Templates', ST_TEXTDOMAIN)), array('id' => 'option_social', 'title' => __('<i class="fa fa-facebook-official"></i> Social Options', ST_TEXTDOMAIN)), array('id' => 'option_404', 'title' => __('<i class="fa fa-exclamation-triangle"></i> 404 Options', ST_TEXTDOMAIN)), array('id' => 'option_advance', 'title' => __('<i class="fa fa-cogs"></i> Advance Options', ST_TEXTDOMAIN))), 'settings' => array(array('id' => 'st_text_featured', 'label' => __('Text Featured', ST_TEXTDOMAIN), 'desc' => 'Text Featured', 'type' => 'text', 'section' => 'option_featured', 'class' => '', 'std' => 'Featured'), array('id' => 'st_text_featured_color', 'label' => __('Text Color', ST_TEXTDOMAIN), 'desc' => 'Text Color', 'type' => 'colorpicker', 'section' => 'option_featured', 'class' => '', 'std' => '#fff'), array('id' => 'st_text_featured_bg', 'label' => __('Background color', ST_TEXTDOMAIN), 'desc' => 'Background color', 'type' => 'colorpicker', 'section' => 'option_featured', 'class' => '', 'std' => '#19A1E5'), array('id' => 'gen_enable_smscroll', 'label' => __('Enable Nice Scroll', ST_TEXTDOMAIN), 'desc' => __('This allows you to turn on or off <em>Nice Scroll Effect</em>', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'off'), array('id' => 'favicon', 'label' => __('Favicon', ST_TEXTDOMAIN), 'desc' => __('This allows you to change favicon of your website', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/favicon.png'), array('id' => 'logo', 'label' => __('Logo', ST_TEXTDOMAIN), 'desc' => __('This allows you to change logo', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/logo.png'), array('id' => 'logo_retina', 'label' => __('Logo Retina', ST_TEXTDOMAIN), 'desc' => __('Note: You MUST re-name Logo Retina to logo-name@2x.ext-name. Example:<br>
                                    Logo is: <em>my-logo.jpg</em><br>Logo Retina must be: <em>my-logo@2x.jpg</em>  ', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/logo@2x.png'), array('id' => 'st_seo_option', 'label' => __('SEO options', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'type' => 'on-off', 'section' => 'option_general', 'class' => ''), array('id' => 'st_seo_title', 'label' => __('SEO Title', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'type' => 'text', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'st_seo_desc', 'label' => __('SEO Description', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'rows' => '5', 'type' => 'textarea-simple', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'st_seo_keywords', 'label' => __('SEO Keywords', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'rows' => '5', 'type' => 'textarea-simple', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'footer_template', 'label' => __('Page for footer', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_general'), array('id' => 'enable_user_online_noti', 'label' => __('Enable User Online Notification', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'enable_last_booking_noti', 'label' => __('Enable Last Booking Notification', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'enable_user_nav', 'label' => __('Enable User Navigator', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'admin_menu_normal_user', 'label' => __('Enable normal user admin bar', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'off'), array('id' => 'noti_position', 'label' => __('Notification Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_general', 'std' => 'topRight', 'choices' => array(array('label' => __('Top Right', ST_TEXTDOMAIN), 'value' => 'topRight'), array('label' => __('Top Left', ST_TEXTDOMAIN), 'value' => 'topLeft'), array('label' => __('Bottom Right', ST_TEXTDOMAIN), 'value' => 'bottomRight'), array('label' => __('Bottom Left', ST_TEXTDOMAIN), 'value' => 'bottomLeft'))), array('id' => 'once_notification_per_each_session', 'label' => __('Only show notification once per each session?', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'off'), array('id' => 'st_weather_temp_unit', 'label' => __('Weather Temp Unit', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_general', 'std' => 'c', 'choices' => array(array('label' => __('Fahrenheit (f)', ST_TEXTDOMAIN), 'value' => 'f'), array('label' => __('Celsius (c)', ST_TEXTDOMAIN), 'value' => 'c'), array('label' => __('Kelvin (k)', ST_TEXTDOMAIN), 'value' => 'k'))), array('id' => 'list_disabled_feature', 'label' => __('Disable Theme Service', ST_TEXTDOMAIN), 'type' => 'checkbox', 'section' => 'option_general', 'choices' => array(array('label' => __('Hotel', ST_TEXTDOMAIN), 'value' => 'st_hotel'), array('label' => __('Car', ST_TEXTDOMAIN), 'value' => 'st_cars'), array('label' => __('Rental', ST_TEXTDOMAIN), 'value' => 'st_rental'), array('label' => __('Tour', ST_TEXTDOMAIN), 'value' => 'st_tours'), array('label' => __('Holiday', ST_TEXTDOMAIN), 'value' => 'st_holidays'), array('label' => __('Activity', ST_TEXTDOMAIN), 'value' => 'st_activity'))), array('id' => 'menu_bar', 'label' => __('Menu', ST_TEXTDOMAIN), 'type' => 'tab', 'section' => 'option_header'), array('id' => 'header_transparent', 'label' => __('Header Transparent', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_header', 'output' => '', 'std' => 'off'), array('id' => 'gen_enable_sticky_header', 'label' => __('Enable Sticky Header', ST_TEXTDOMAIN), 'desc' => __('This allows you to turn on or off <em>Sticky Header Feature</em>', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_header', 'std' => 'off'), array('id' => 'gen_enable_sticky_menu', 'label' => __('Enable Sticky Menu', ST_TEXTDOMAIN), 'desc' => __('This allows you to turn on or off <em>Sticky Menu Feature</em>', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_header', 'std' => 'off'), array('id' => 'tax_enable', 'label' => __('Enable Tax', ST_TEXTDOMAIN), 'desc' => __('Enable tax calculations', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_tax', 'std' => 'off'), array('id' => 'st_tax_include_enable', 'label' => __('Include tax in listing page', ST_TEXTDOMAIN), 'desc' => __('Include tax in listing page', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_tax', 'condition' => 'tax_enable:is(on)', 'std' => 'off'), array('id' => 'tax_value', 'label' => __('Tax percentage', ST_TEXTDOMAIN), 'desc' => __('Tax percentage', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'section' => 'option_tax', 'min_max_step' => '0,100,1', 'condition' => 'tax_enable:is(on)', 'std' => 10), array('id' => 'location_posts_per_page', 'label' => __('No. posts in Location tab', ST_TEXTDOMAIN), 'desc' => __('Default number of posts are shown in Location tab', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '1,15,1', 'section' => 'option_location', 'std' => 5), array('id' => 'location_order_by', 'label' => __('Location tab - Order by'), 'section' => 'option_location', 'desc' => __('Location tab - Order by'), 'type' => 'select', 'std' => 'ID', 'choices' => array(array('value' => 'none', 'label' => __('None', ST_TEXTDOMAIN)), array('value' => 'ID', 'label' => __('ID', ST_TEXTDOMAIN)), array('value' => 'author', 'label' => __('Author', ST_TEXTDOMAIN)), array('value' => 'title', 'label' => __('Title', ST_TEXTDOMAIN)), array('value' => 'name', 'label' => __('Name', ST_TEXTDOMAIN)), array('value' => 'date', 'label' => __('Date', ST_TEXTDOMAIN)), array('value' => 'rand', 'label' => __('Random', ST_TEXTDOMAIN)))), array('id' => 'location_order', 'label' => __('Location tab - Order', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_location', 'label' => __('Location tab - Order'), 'std' => 'DESC', 'choices' => array(array('value' => 'ASC', 'label' => __('ASC', ST_TEXTDOMAIN)), array('value' => 'DESC', 'label' => __('DESC', ST_TEXTDOMAIN)))), array('id' => 'review_without_login', 'label' => __('Write reviews without logging in', ST_TEXTDOMAIN), 'desc' => __('<em>ON:</em> Enable review without logging in <br><em>OFF:Disble review without logging in</em>', ST_TEXTDOMAIN), 'section' => 'option_review', 'type' => 'on-off', 'std' => 'off'), array('id' => 'review_need_booked', 'label' => __('Only users who booked can review', ST_TEXTDOMAIN), 'desc' => __('<em>ON:</em> Only user who booked can review<br><em>OFF:</em>Any user can review', ST_TEXTDOMAIN), 'section' => 'option_review', 'type' => 'on-off', 'condition' => 'review_without_login:is(off)', 'std' => 'on'), array('id' => 'review_once', 'label' => __('Review Once', ST_TEXTDOMAIN), 'desc' => __('<em>On</em>: review only once <br/> <em>Off</em>: review several times', ST_TEXTDOMAIN), 'section' => 'option_review', 'type' => 'on-off', 'std' => 'off'), array('id' => 'blog_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'desc' => __('You can choose No sidebar, Left Sidebar and Right Sidebar', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_blog', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'right'), array('id' => 'blog_sidebar_id', 'label' => __('Widget Area', ST_TEXTDOMAIN), 'desc' => __('You can choose from the list', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_blog', 'std' => 'blog-sidebar'), array('id' => 'page_my_account_dashboard', 'label' => __('My account dashboard page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_redirect_to_after_login', 'label' => __('Redirect to after login', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_redirect_to_after_logout', 'label' => __('Redirect to after logout', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_user_login', 'label' => __('User Login', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_checkout', 'label' => __('Checkout Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_payment_success', 'label' => __('Payment Success Page', ST_TEXTDOMAIN), 'desc' => __('Payment Success or Thank you page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_order_confirm', 'label' => __('Order Confirmation Page', ST_TEXTDOMAIN), 'desc' => __('Order Confirmation Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_terms_conditions', 'label' => __('Terms and Conditions Page', ST_TEXTDOMAIN), 'desc' => __('Terms and Conditions Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'right_to_left', 'label' => __('Right to left', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_style', 'output' => '', 'std' => 'off'), array('id' => 'typography', 'label' => __('Typography', ST_TEXTDOMAIN), 'type' => 'typography', 'section' => 'option_style', 'output' => 'body'), array('id' => 'google_fonts', 'label' => __('Google Fonts', ST_TEXTDOMAIN), 'type' => 'google-fonts', 'section' => 'option_style'), array('id' => 'star_color', 'label' => __('Star Color', ST_TEXTDOMAIN), 'desc' => __('Star Color', ST_TEXTDOMAIN), 'type' => 'colorpicker', 'section' => 'option_style'), array('id' => 'heading_fonts', 'label' => __('Heading fonts', ST_TEXTDOMAIN), 'type' => 'typography', 'section' => 'option_style', 'output' => 'h1,h2,h3,h4,h5,.text-hero'), array('id' => 'style_layout', 'label' => __('Layout', ST_TEXTDOMAIN), 'desc' => __('You can choose Wide or Boxed layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_style', 'choices' => array(array('value' => 'wide', 'label' => __('Wide', ST_TEXTDOMAIN)), array('value' => 'boxed', 'label' => __('Boxed', ST_TEXTDOMAIN)))), array('id' => 'body_background', 'label' => __('Body Background', ST_TEXTDOMAIN), 'desc' => __('Body Background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => 'body'), array('id' => 'main_wrap_background', 'label' => __('Main wrap background', ST_TEXTDOMAIN), 'desc' => __('Main wrap background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => '.global-wrap'), array('id' => 'header_background', 'label' => __('Header background', ST_TEXTDOMAIN), 'desc' => __('Header Background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => '.header-top'), array('id' => 'style_default_scheme', 'label' => __('Default Color Scheme', ST_TEXTDOMAIN), 'desc' => __('Select Default Color Scheme or choose your own main color bellow', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_style', 'output' => '', 'std' => '', 'choices' => array(array('label' => '-- Please Select ---', 'value' => ''), array('label' => 'Bright Turquoise', 'value' => '#0EBCF2'), array('label' => 'Turkish Rose', 'value' => '#B66672'), array('label' => 'Salem', 'value' => '#12A641'), array('label' => 'Hippie Blue', 'value' => '#4F96B6'), array('label' => 'Mandy', 'value' => '#E45E66'), array('label' => 'Green Smoke', 'value' => '#96AA66'), array('label' => 'Horizon', 'value' => '#5B84AA'), array('label' => 'Cerise', 'value' => '#CA2AC6'), array('label' => 'Brick red', 'value' => '#cf315a'), array('label' => 'De-York', 'value' => '#74C683'), array('label' => 'Shamrock', 'value' => '#30BBB1'), array('label' => 'Studio', 'value' => '#7646B8'), array('label' => 'Leather', 'value' => '#966650'), array('label' => 'Denim', 'value' => '#1A5AE4'), array('label' => 'Scarlet', 'value' => '#FF1D13'))), array('id' => 'main_color', 'label' => __('Main Color', ST_TEXTDOMAIN), 'desc' => __('Choose your theme\'s main color', ST_TEXTDOMAIN), 'type' => 'colorpicker', 'section' => 'option_style', 'std' => '#ed8323'), array('id' => 'custom_css', 'label' => __('Custom CSS', ST_TEXTDOMAIN), 'type' => 'css', 'section' => 'option_style'), array('id' => 'view_star_review', 'label' => __('Enable Hotel Stars or Hotel Review.', ST_TEXTDOMAIN), 'desc' => '', 'type' => 'select', 'section' => 'option_advance', 'choices' => array(array('label' => __('Hotel Stars', ST_TEXTDOMAIN), 'value' => 'star'), array('label' => __('Hotel Reviews', ST_TEXTDOMAIN), 'value' => 'review'))), array('id' => 'datetime_format', 'label' => __('Date Format', ST_TEXTDOMAIN), 'type' => 'text', 'std' => '{mm}/{dd}/{yyyy}', 'section' => 'option_advance', 'desc' => __('The date format, combination of d, dd, m, mm, yy, yyyy. It is surrounded by <code>\'{}\'</code>. Ex: {dd}/{mm}/{yyyy}.
                <ul>
                <li><code>d, dd</code>: Numeric date, no leading zero and leading zero, respectively. Eg, 5, 05.</li>
                <li><code>m, mm</code>: Numeric month, no leading zero and leading zero, respectively. Eg, 7, 07.</li>
                <li><code>M</code>: Abbreviated and full month names, respectively. Eg, Jan, January</li>
                <li><code>yy, yyyy:</code> 2- and 4-digit years, respectively. Eg, 12, 2012.</li>
                </ul>
                ', ST_TEXTDOMAIN)), array('id' => 'update_weather_by', 'label' => __('Weather updates:', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '1,12,1', 'std' => 12, 'section' => 'option_advance', 'desc' => __('Weather updates (Unit: hour)', ST_TEXTDOMAIN)), array('id' => 'show_price_free', 'label' => __('Show price when accommodation is free', ST_TEXTDOMAIN), 'type' => 'on-off', 'desc' => __('Price is not shown when accommodation is free', ST_TEXTDOMAIN), 'section' => 'option_advance', 'std' => 'off'), array('id' => 'adv_before_body_content', 'label' => __('Before Body Content', ST_TEXTDOMAIN), 'desc' => sprintf(__('Right after the opening %s tag.', ST_TEXTDOMAIN), esc_html('<body>')), 'type' => 'textarea-simple', 'section' => 'option_advance'), array('id' => 'edv_enable_demo_mode', 'label' => __('Enable Demo Mode', ST_TEXTDOMAIN), 'desc' => __('Do some magical', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_advance', 'std' => 'off'), array('id' => 'edv_share_code', 'label' => __('Custom Share Code', ST_TEXTDOMAIN), 'desc' => __('You you want change the share code in single item. Change this<br><code>[__post_permalink__]</code> for Permalink<br><code>[__post_title__]</code> for Title', ST_TEXTDOMAIN), 'type' => 'textarea-simple', 'section' => 'option_advance', 'std' => '<li><a href="https://www.facebook.com/sharer/sharer.php?u=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="Facebook"><i class="fa fa-facebook fa-lg"></i></a></li>
        <li><a href="http://twitter.com/share?url=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="Twitter"><i class="fa fa-twitter fa-lg"></i></a></li>
        <li><a href="https://plus.google.com/share?url=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="Google+"><i class="fa fa-google-plus fa-lg"></i></a></li>
        <li><a class="no-open" href="javascript:void((function()%7Bvar%20e=document.createElement(\'script\');e.setAttribute(\'type\',\'text/javascript\');e.setAttribute(\'charset\',\'UTF-8\');e.setAttribute(\'src\',\'http://assets.pinterest.com/js/pinmarklet.js?r=\'+Math.random()*99999999);document.body.appendChild(e)%7D)());" target="_blank" original-title="Pinterest"><i class="fa fa-pinterest fa-lg"></i></a></li>
        <li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=[__post_permalink__]&amp;title=[__post_title__]" target="_blank" original-title="LinkedIn"><i class="fa fa-linkedin fa-lg"></i></a></li>'), array('id' => 'booking_modal', 'label' => __('Booking with Modal', ST_TEXTDOMAIN), 'déc' => __('This option only working if you turn off Woocommerce Checkout', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_booking'), array('id' => 'booking_enable_captcha', 'label' => __('Booking Enable Captcha', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_booking'), array('id' => 'booking_card_accepted', 'label' => __('Card Accepted', ST_TEXTDOMAIN), 'desc' => __('Card Accepted', ST_TEXTDOMAIN), 'type' => 'list-item', 'settings' => array(array('id' => 'image', 'label' => __('Image', ST_TEXTDOMAIN), 'desc' => __('Image', ST_TEXTDOMAIN), 'type' => 'upload')), 'std' => array(array('title' => 'Master Card', 'image' => get_template_directory_uri() . '/img/card/mastercard.png'), array('title' => 'JCB', 'image' => get_template_directory_uri() . '/img/card/jcb.png'), array('title' => 'Union Pay', 'image' => get_template_directory_uri() . '/img/card/unionpay.png'), array('title' => 'VISA', 'image' => get_template_directory_uri() . '/img/card/visa.png'), array('title' => 'American Express', 'image' => get_template_directory_uri() . '/img/card/americanexpress.png')), 'section' => 'option_booking'), array('id' => 'booking_currency', 'label' => __('Currency List', ST_TEXTDOMAIN), 'desc' => __('This allows you to add currency to your website', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_booking', 'settings' => array(array('id' => 'name', 'label' => __('Currency Name', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => TravelHelper::ot_all_currency()), array('id' => 'symbol', 'label' => __('Currency Symbol', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'rate', 'label' => __('Exchange rate', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and', 'desc' => __('Exchange rate vs Primary Currency', ST_TEXTDOMAIN)), array('id' => 'booking_currency_pos', 'label' => __('Currency Position', ST_TEXTDOMAIN), 'desc' => __('This controls the position of the currency symbol.<br>Ex: $400 or 400 $', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => 'left', 'label' => __('Left (£99.99)', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right (99.99£)', ST_TEXTDOMAIN)), array('value' => 'left_space', 'label' => __('Left with space (£ 99.99)', ST_TEXTDOMAIN)), array('value' => 'right_space', 'label' => __('Right with space (99.99 £)', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'currency_rtl_support', 'type' => "on-off", 'label' => __("This currency is use for RTL languages?", ST_TEXTDOMAIN), 'std' => 'off'), array('id' => 'thousand_separator', 'label' => __('Thousand Separator', ST_TEXTDOMAIN), 'type' => 'text', 'std' => '.', 'desc' => __('Optional. Specifies what string to use for thousands separator.', ST_TEXTDOMAIN)), array('id' => 'decimal_separator', 'label' => __('Decimal Separator', ST_TEXTDOMAIN), 'type' => 'text', 'std' => ',', 'desc' => __('Optional. Specifies what string to use for decimal point', ST_TEXTDOMAIN)), array('id' => 'booking_currency_precision', 'label' => __('Currency decimal', ST_TEXTDOMAIN), 'desc' => __('Sets the number of decimal points.', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,5,1', 'std' => 2)), 'std' => array(array('title' => 'USD', 'name' => 'USD', 'symbol' => '$', 'rate' => 1, 'booking_currency_pos' => 'left', 'thousand_separator' => '.', 'decimal_separator' => ',', 'booking_currency_precision' => 2), array('title' => 'EUR', 'name' => 'EUR', 'symbol' => '€', 'rate' => 0.7964909999999999, 'booking_currency_pos' => 'left', 'thousand_separator' => '.', 'decimal_separator' => ',', 'booking_currency_precision' => 2), array('title' => 'GBP', 'name' => 'GBP', 'symbol' => '£', 'rate' => 0.636169, 'booking_currency_pos' => 'right', 'thousand_separator' => ',', 'decimal_separator' => ',', 'booking_currency_precision' => 2))), array('id' => 'show_booking_primary_currency', 'label' => __('Show Currency', ST_TEXTDOMAIN), 'desc' => "", 'type' => 'on-off', 'section' => 'option_booking', 'std' => 'on'), array('id' => 'booking_primary_currency', 'label' => __('Primary Currency', ST_TEXTDOMAIN), 'desc' => __('This allows you to set Primary Currency to your website', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_booking', 'choices' => TravelHelper::get_currency(true), 'std' => 'USD'), array('id' => 'is_guest_booking', 'label' => __('Guest Booking', ST_TEXTDOMAIN), 'desc' => __('Guest Booking. default off : Guest can"t booking ', ST_TEXTDOMAIN), 'section' => 'option_booking', 'type' => 'on-off', 'std' => 'off'), array('id' => 'hotel_show_min_price', 'label' => __("Which Price is shown in listing page", ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => 'avg_price', 'label' => __('Avg Price', ST_TEXTDOMAIN)), array('value' => 'min_price', 'label' => __('Min Price', ST_TEXTDOMAIN))), 'section' => 'option_hotel'), array('id' => 'hotel_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_hotel'), array('id' => 'hotel_posts_per_page', 'label' => __('Posts Per Page', ST_TEXTDOMAIN), 'desc' => __('Posts Per Page', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '1,50,1', 'section' => 'option_hotel', 'std' => '12'), array('id' => 'hotel_single_layout', 'label' => __('Hotel Detail Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => st_get_layout('st_hotel')), array('id' => 'hotel_search_layout', 'label' => __('Hotel Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => st_get_layout('st_hotel_search')), array('id' => 'hotel_single_room_layout', 'label' => __('Hotel Room Detail Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => st_get_layout('hotel_room')), array('id' => 'hotel_max_adult', 'label' => __('Max Adults In Room', ST_TEXTDOMAIN), 'desc' => __('Max Adults In Room', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'std' => 14), array('id' => 'hotel_max_child', 'label' => __('Max Children In Room', ST_TEXTDOMAIN), 'desc' => __('Max Children In Room', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'std' => 14), array('id' => 'hotel_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_hotel', 'std' => 'on'), array('id' => 'hotel_review_stats', 'label' => __('Hotel Review Criteria', ST_TEXTDOMAIN), 'desc' => __('Hotel Review Criteria', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_hotel', 'condition' => 'hotel_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Cleanliness'), array('title' => 'Room(s)'))), array('id' => 'hotel_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'hotel_sidebar_area', 'label' => __('Sidebar Area', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_hotel'), array('id' => 'is_featured_search_hotel', 'label' => __('Show featured rentals on top of search result', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_hotel'), 'flied_hotel' => array('id' => 'hotel_search_fields', 'label' => __('Hotel Search Fields', ST_TEXTDOMAIN), 'desc' => __('Hotel Search Fields', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_hotel', 'std' => array(array('title' => 'Where', 'name' => 'location', 'layout_col' => 4), array('title' => 'Check in', 'name' => 'checkin', 'layout_col' => 2), array('title' => 'Check out', 'name' => 'checkout', 'layout_col' => 2), array('title' => 'Room(s)', 'name' => 'room_num', 'layout_col' => 2), array('title' => 'Adult', 'name' => 'adult', 'layout_col' => 2)), 'settings' => array(array('id' => 'name', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STHotel::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'name:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => st_get_post_taxonomy('st_hotel')), array('id' => 'type_show_taxonomy_hotel', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'name:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'taxonomy_room', 'label' => __('Taxonomy Room', ST_TEXTDOMAIN), 'condition' => 'name:is(taxonomy_room)', 'operator' => 'or', 'type' => 'select', 'choices' => st_get_post_taxonomy('hotel_room')), array('id' => 'type_show_taxonomy_hotel_room', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'name:is(taxonomy_room)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'max_num', 'label' => __("Max number", ST_TEXTDOMAIN), 'condition' => 'name:is(list_name)', 'type' => "text", 'std' => 20), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on'))), array('id' => 'hotel_nearby_range', 'label' => __('Hotel Nearby Range', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'desc' => __('This allows you to change max range of nearby hotels (in km)', ST_TEXTDOMAIN), 'std' => 10), array('id' => 'hotel_unlimited_custom_field', 'label' => __('Hotel custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_hotel', 'desc' => __('Hotel custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text field', ST_TEXTDOMAIN)), array('value' => 'textarea', 'label' => __('Textarea field', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date field', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'st_hotel_icon_map_marker', 'label' => __('Icon Marker Map', ST_TEXTDOMAIN), 'desc' => __('Icon Marker Map', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_hotel', 'std' => 'http://maps.google.com/mapfiles/marker_black.png'), array('id' => 'rental_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_rental'), array('id' => 'rental_single_layout', 'label' => __('Rental Single Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => st_get_layout('st_rental')), array('id' => 'rental_search_layout', 'label' => __('Rental Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => st_get_layout('st_rental_search')), array('id' => 'rental_room_layout', 'label' => __('Rental Room Default Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => st_get_layout('rental_room')), array('id' => 'rental_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_rental', 'std' => 'on'), array('id' => 'rental_review_stats', 'label' => __('Rental Review Criteria', ST_TEXTDOMAIN), 'desc' => __('Rental Review Criteria', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_rental', 'condition' => 'rental_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Cleanliness'), array('title' => 'Room(s)'))), array('id' => 'rental_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'rental_sidebar_area', 'label' => __('Sidebar Area', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_rental', 'std' => 'rental-sidebar'), array('id' => 'is_featured_search_rental', 'label' => __('Show featured activities on top of search result', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_rental'), array('id' => 'rental_search_fields', 'label' => __('Rental Search Fields', ST_TEXTDOMAIN), 'desc' => __('Rental Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_rental', 'settings' => array(array('id' => 'name', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => TravelHelper::st_get_field_search('st_rental', 'option_tree')), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Large-box column size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout_col2', 'label' => __('Small-box column size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'condition' => 'name:is(taxonomy)', 'choices' => st_get_post_taxonomy('st_rental')), array('id' => 'type_show_taxonomy_rental', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'name:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'max_num', 'label' => __('Max number', ST_TEXTDOMAIN), 'type' => 'text', 'condition' => 'name:is(list_name)', 'operator' => 'and', 'std' => 20), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Where are you going?', 'name' => 'location', 'layout_col' => '4', 'layout_col2' => '12'), array('title' => 'Check in', 'name' => 'checkin', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Check out', 'name' => 'checkout', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Room(s)', 'name' => 'room_num', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Adults', 'name' => 'adult', 'layout_col' => '2', 'layout_col2' => '3'))), array('id' => 'rental_unlimited_custom_field', 'label' => __('Rental custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_rental', 'desc' => __('Rental custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text field', ST_TEXTDOMAIN)), array('value' => 'textarea', 'label' => __('Textarea field', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date field', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'st_rental_icon_map_marker', 'label' => __('Icon Marker Map', ST_TEXTDOMAIN), 'desc' => __('Icon Marker Map', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_rental', 'std' => 'http://maps.google.com/mapfiles/marker_brown.png'), array('id' => 'cars_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_car'), array('id' => 'cars_single_layout', 'label' => __('Cars Single Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => st_get_layout('st_cars')), array('id' => 'cars_layout_layout', 'label' => __('Cars Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => st_get_layout('st_cars_search')), array('id' => 'cars_price_unit', 'label' => __('Price Unit', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => STCars::get_option_price_unit(), 'std' => 'day'), array('id' => 'booking_days_included', 'label' => __('Booking Days including check-in day, hour', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car', 'desc' => __("This mean <b>check-in day alway rounded 1 day</b> to to your booking", ST_TEXTDOMAIN)), array('id' => 'time_format', 'label' => __('Time Format', ST_TEXTDOMAIN), 'type' => 'select', 'std' => '12h', 'choices' => array(array('value' => '12h', 'label' => __('12h', ST_TEXTDOMAIN)), array('value' => '24h', 'label' => __('24h', ST_TEXTDOMAIN))), 'section' => 'option_car'), array('id' => 'is_featured_search_car', 'label' => __('Show featured cars on top of search results', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car'), array('id' => 'car_search_fields', 'label' => __('Car Search Fields', ST_TEXTDOMAIN), 'desc' => __('Car Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'settings' => array(array('id' => 'field_atrribute', 'label' => __('Field Atrribute', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STCars::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col_normal', 'label' => __('Layout Normal size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_cars')), array('id' => 'type_show_taxonomy_cars', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'max_num', 'label' => __('Max number', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(list_name)', 'type' => 'text', 'operator' => 'and', 'std' => 20), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Pick Up From, Drop Off To', 'layout_col_normal' => 6, 'field_atrribute' => 'location'), array('title' => 'Pick-up Date ,Pick-up Time', 'layout_col_normal' => 6, 'field_atrribute' => 'pick-up-date-time'), array('title' => 'Drop-off Date ,Drop-off Time', 'layout_col_normal' => 6, 'field_atrribute' => 'drop-off-date-time'))), array('id' => 'car_search_fields_box', 'label' => __('Change Location & Date Box', ST_TEXTDOMAIN), 'desc' => __('Search fields in Change Location & Date in single car page', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'settings' => array(array('id' => 'field_atrribute', 'label' => __('Field Atrribute', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STCars::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col_box', 'label' => __('Layout Box size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1/12', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2/12', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3/12', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4/12', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5/12', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6/12', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7/12', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8/12', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9/12', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10/12', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11/12', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12/12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_cars')), array('id' => 'type_show_taxonomy_cars', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'max_num', 'label' => __('Max number', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(list_name)', 'type' => 'text', 'operator' => 'and', 'std' => 20), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Pick Up From, Drop Off To', 'layout_col_box' => 6, 'field_atrribute' => 'location'), array('title' => 'Pick-up Date', 'layout_col_box' => 3, 'field_atrribute' => 'pick-up-date'), array('title' => 'Pick-up Time', 'layout_col_box' => 3, 'field_atrribute' => 'pick-up-time'), array('title' => 'Drop-off Date', 'layout_col_box' => 3, 'field_atrribute' => 'drop-off-date'), array('title' => 'Drop-off Time', 'layout_col_box' => 3, 'field_atrribute' => 'drop-off-time'))), array('id' => 'car_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_car', 'std' => 'on'), array('id' => 'car_review_stats', 'label' => __('Car Review Criteria', ST_TEXTDOMAIN), 'desc' => __('Car Review Criteria', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_car', 'condition' => 'hotel_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'stat name 1'), array('title' => 'stat name 2'), array('title' => 'stat name 3'), array('title' => 'stat name 4'), array('title' => 'stat name 5'))), array('id' => 'st_cars_unlimited_custom_field', 'label' => __('Car custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'desc' => __('Car custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'st_cars_icon_map_marker', 'label' => __('Icon Marker Map', ST_TEXTDOMAIN), 'desc' => __('Icon Marker Map', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_car', 'std' => 'http://maps.google.com/mapfiles/marker_green.png'), array('id' => 'email_from', 'label' => __('Email From Name', ST_TEXTDOMAIN), 'desc' => __('Email From Name', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_email', 'std' => 'Traveler Shinetheme'), array('id' => 'email_from_address', 'label' => __('Email From Address', ST_TEXTDOMAIN), 'desc' => __('Email From Address', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_email', 'std' => '*****@*****.**'), array('id' => 'email_logo', 'label' => __('Logo in Email', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_email', 'desc' => __('Logo in Email', ST_TEXTDOMAIN), 'std' => get_template_directory_uri() . '/img/logo.png'), array('id' => 'enable_email_for_custommer', 'label' => __('Email to customers after booking ', ST_TEXTDOMAIN), 'desc' => __('Email to customers after booking ', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'enable_email_confirm_for_customer', 'label' => __('Email Confirm to customers after booking ', ST_TEXTDOMAIN), 'desc' => __('Email Confirm to customers after booking ', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email', 'condition' => 'enable_email_for_custommer:is(on)'), array('id' => 'enable_email_for_admin', 'label' => __('Email to Admin after booking ', ST_TEXTDOMAIN), 'desc' => __('Email to Admin after booking ', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'email_admin_address', 'label' => __('Admin\' Email Address', ST_TEXTDOMAIN), 'desc' => __('Booking information will be sent to here', ST_TEXTDOMAIN), 'type' => 'text', 'condition' => 'enable_email_for_admin:is(on)', 'section' => 'option_email'), array('id' => 'enable_email_for_owner_item', 'label' => __('Email after booking for Owner Item', ST_TEXTDOMAIN), 'desc' => __('Email after booking for Owner Item', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'tab_email_document', 'label' => __('Email Documents', ST_TEXTDOMAIN), 'type' => 'tab', 'section' => 'option_email_template'), array('id' => 'email_document', 'label' => __('Email Documents', ST_TEXTDOMAIN), 'type' => 'email_template_document', 'section' => 'option_email_template'), array('id' => 'tab_email_for_admin', 'label' => __('Email For Admin', ST_TEXTDOMAIN), 'type' => 'tab', 'section' => 'option_email_template'), array('id' => 'email_for_admin', 'label' => __('Email For Admin', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '10', 'section' => 'option_email_template', 'std' => function_exists('st_default_email_template_admin') ? st_default_email_template_admin() : false), array('id' => 'tab_email_for_partner', 'label' => __('Email For Partner', ST_TEXTDOMAIN), 'type' => 'tab', 'section' => 'option_email_template'), array('id' => 'email_for_partner', 'label' => __('Email For Partner', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '50', 'section' => 'option_email_template', 'std' => function_exists('st_default_email_template_partner') ? st_default_email_template_partner() : false), array('id' => 'tab_email_for_customer', 'label' => __('Email For Customer', ST_TEXTDOMAIN), 'type' => 'tab', 'section' => 'option_email_template'), array('id' => 'email_for_customer', 'label' => __('Email For Customer', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '50', 'section' => 'option_email_template', 'std' => function_exists('st_default_email_template_customer') ? st_default_email_template_customer() : false), array('id' => 'tab_email_confirm', 'label' => __('Email Confirm', ST_TEXTDOMAIN), 'type' => 'tab', 'section' => 'option_email_template'), array('id' => 'email_confirm', 'label' => __('Email Confirm', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '50', 'section' => 'option_email_template', 'std' => function_exists('get_email_confirm_template') ? get_email_confirm_template() : false), array('id' => 'tour_show_calendar', 'label' => __('Show Calendar', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'std' => 'on'), array('id' => 'tour_show_calendar_below', 'label' => __('Show Below', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'std' => 'off', 'condition' => 'tour_show_calendar:is(on)'), array('id' => 'activity_tour_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'std' => 'std'), array('id' => 'tour_review_stats', 'label' => __('Review Criteria', ST_TEXTDOMAIN), 'desc' => __('Review Criteria', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_activity_tour', 'condition' => 'activity_tour_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Cleanliness'), array('title' => 'Room(s)'))), array('id' => 'tours_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_activity_tour'), array('id' => 'tours_layout', 'label' => __('Tour Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_tour', 'choices' => st_get_layout('st_tours')), array('id' => 'tours_search_layout', 'label' => __('Tour Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_tour', 'choices' => st_get_layout('st_tours_search')), array('id' => 'tour_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'desc' => __('Just apply for default search layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_tour', 'condition' => 'tours_search_layout:is()', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'tours_similar_tour', 'label' => __('Number of Similar Tours', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_activity_tour', 'std' => '5', 'desc' => __('Number of Similar Tours', ST_TEXTDOMAIN)), array('id' => 'activity_tour_check_review_admin', 'label' => __('Review must be approved by admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'condition' => 'activity_tour_review:is(on)'), array('id' => 'is_featured_search_tour', 'label' => __('Show featured tours on top of search result', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity_tour'), array('id' => 'activity_tour_search_fields', 'label' => __('Tour Search Fields', ST_TEXTDOMAIN), 'desc' => __('Tour Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_tour', 'settings' => array(array('id' => 'tours_field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STTour::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'tours_field_search:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_tours')), array('id' => 'type_show_taxonomy_tours', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'tours_field_search:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'max_num', 'label' => __("Max number", ST_TEXTDOMAIN), 'condition' => 'tours_field_search:is(list_name)', 'type' => "text", 'std' => 20), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 6, 'layout2_col' => 6, 'tours_field_search' => 'address'), array('title' => 'Departure date', 'layout_col' => 3, 'layout2_col' => 3, 'tours_field_search' => 'check_in'), array('title' => 'Arrival Date', 'layout_col' => 3, 'layout2_col' => 3, 'tours_field_search' => 'check_out'))), array('id' => 'st_show_number_user_book', 'label' => __('Show No. Users who booked', ST_TEXTDOMAIN), 'desc' => __('Show No. Users who booked', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'std' => 'off'), array('id' => 'tours_unlimited_custom_field', 'label' => __('Tour custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_tour', 'desc' => __('Tour custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text field', ST_TEXTDOMAIN)), array('value' => 'textarea', 'label' => __('Textarea field', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date field', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'st_tours_icon_map_marker', 'label' => __('Icon Marker Map', ST_TEXTDOMAIN), 'desc' => __('Icon Marker Map', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_activity_tour', 'std' => 'http://maps.google.com/mapfiles/marker_purple.png'), array('id' => 'holiday_show_calendar', 'label' => __('Show Calendar', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_holiday', 'std' => 'on'), array('id' => 'holiday_show_calendar_below', 'label' => __('Show Below', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_holiday', 'std' => 'off', 'condition' => 'holiday_show_calendar:is(on)'), array('id' => 'activity_holiday_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_holiday', 'std' => 'std'), array('id' => 'holiday_review_stats', 'label' => __('Review Criteria', ST_TEXTDOMAIN), 'desc' => __('Review Criteria', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_activity_holiday', 'condition' => 'activity_holiday_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Cleanliness'), array('title' => 'Room(s)'))), array('id' => 'holidays_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_activity_holiday'), array('id' => 'holidays_layout', 'label' => __('Holiday Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_holiday', 'choices' => st_get_layout('st_holidays')), array('id' => 'holidays_search_layout', 'label' => __('Holiday Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_holiday', 'choices' => st_get_layout('st_holidays_search')), array('id' => 'holiday_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'desc' => __('Just apply for default search layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_holiday', 'condition' => 'holidays_search_layout:is()', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'holidays_similar_holiday', 'label' => __('Number of Similar Holidays', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_activity_holiday', 'std' => '5', 'desc' => __('Number of Similar Holidays', ST_TEXTDOMAIN)), array('id' => 'activity_holiday_check_review_admin', 'label' => __('Review must be approved by admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_holiday', 'condition' => 'activity_holiday_review:is(on)'), array('id' => 'is_featured_search_holiday', 'label' => __('Show featured holidays on top of search result', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity_holiday'), array('id' => 'activity_holiday_search_fields', 'label' => __('Holiday Search Fields', ST_TEXTDOMAIN), 'desc' => __('Holiday Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_holiday', 'settings' => array(array('id' => 'holidays_field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STHoliday::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'holidays_field_search:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_holidays')), array('id' => 'type_show_taxonomy_holidays', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'holidays_field_search:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'max_num', 'label' => __("Max number", ST_TEXTDOMAIN), 'condition' => 'holidays_field_search:is(list_name)', 'type' => "text", 'std' => 20), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 6, 'layout2_col' => 6, 'holidays_field_search' => 'address'), array('title' => 'Departure date', 'layout_col' => 3, 'layout2_col' => 3, 'holidays_field_search' => 'check_in'), array('title' => 'Arrival Date', 'layout_col' => 3, 'layout2_col' => 3, 'holidays_field_search' => 'check_out'))), array('id' => 'st_show_number_user_book', 'label' => __('Show No. Users who booked', ST_TEXTDOMAIN), 'desc' => __('Show No. Users who booked', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_holiday', 'std' => 'off'), array('id' => 'holidays_unlimited_custom_field', 'label' => __('Holiday custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_holiday', 'desc' => __('Holiday custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text field', ST_TEXTDOMAIN)), array('value' => 'textarea', 'label' => __('Textarea field', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date field', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'st_holidays_icon_map_marker', 'label' => __('Icon Marker Map', ST_TEXTDOMAIN), 'desc' => __('Icon Marker Map', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_activity_holiday', 'std' => 'http://maps.google.com/mapfiles/marker_purple.png'), array('id' => 'activity_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_activity'), array('id' => 'activity_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity', 'std' => 'std'), array('id' => 'activity_review_stats', 'label' => __('Review Criteria', ST_TEXTDOMAIN), 'desc' => __('Review Criteria', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_activity', 'condition' => 'activity_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Cleanliness'), array('title' => 'Room(s)'))), array('id' => 'activity_layout', 'label' => __('Activity Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity', 'choices' => st_get_layout('st_activity')), array('id' => 'activity_search_layout', 'label' => __('Activity Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity', 'choices' => st_get_layout('st_activity_search')), array('id' => 'activity_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'desc' => __('Just apply for default search layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity', 'condition' => 'activity_search_layout:is()', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'is_featured_search_activity', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity'), array('id' => 'activity_search_fields', 'label' => __('Activity Search Fields', ST_TEXTDOMAIN), 'desc' => __('Activity Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity', 'settings' => array(array('id' => 'activity_field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STActivity::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'activity_field_search:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_activity')), array('id' => 'type_show_taxonomy_activity', 'label' => __('Type show', ST_TEXTDOMAIN), 'condition' => 'activity_field_search:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => array(array('value' => 'checkbox', 'label' => __('Checkbox', ST_TEXTDOMAIN)), array('value' => 'select', 'label' => __('Select', ST_TEXTDOMAIN)))), array('id' => 'max_num', 'label' => __('Max number', ST_TEXTDOMAIN), 'condition' => 'activity_field_search:is(list_name)', 'type' => 'text', 'operator' => 'and', 'std' => '20'), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 3, 'layout2_col' => 6, 'activity_field_search' => 'address'), array('title' => 'From', 'layout_col' => 3, 'layout2_col' => 3, 'activity_field_search' => 'check_in'), array('title' => 'To', 'layout_col' => 3, 'layout2_col' => 3, 'activity_field_search' => 'check_out'))), array('id' => 'st_activity_unlimited_custom_field', 'label' => __('Activity custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity', 'desc' => __('Activity custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text field', ST_TEXTDOMAIN)), array('value' => 'textarea', 'label' => __('Textarea field', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date field', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'st_activity_icon_map_marker', 'label' => __('Icon Marker Map', ST_TEXTDOMAIN), 'desc' => __('Icon Marker Map', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_activity', 'std' => 'http://maps.google.com/mapfiles/marker_yellow.png'), array('id' => 'partner_enable_feature', 'label' => __('Enable Partner Feature', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'off'), array('id' => 'partner_post_by_admin', 'label' => __('Partner\'s Post must be aprroved by admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'on'), array('id' => 'register_set_auto_for_partner', 'label' => __('[Register] Set Auto for Partner', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'off'), array('id' => 'admin_menu_partner', 'label' => __('Enable partner admin bar', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'off'), array('id' => 'list_partner', 'label' => __('Partner\'s accessible functions', ST_TEXTDOMAIN), 'desc' => __('Partner\'s accessible functions', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_partner', 'settings' => array(array('id' => 'id_partner', 'label' => __('Select functions', ST_TEXTDOMAIN), 'type' => 'select', 'desc' => __('Select functions', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'hotel', 'label' => __('Hotel', ST_TEXTDOMAIN)), array('value' => 'rental', 'label' => __('Rental', ST_TEXTDOMAIN)), array('value' => 'car', 'label' => __('Car', ST_TEXTDOMAIN)), array('value' => 'tour', 'label' => __('Tour', ST_TEXTDOMAIN)), array('value' => 'holiday', 'label' => __('Holiday', ST_TEXTDOMAIN)), array('value' => 'activity', 'label' => __('Activity', ST_TEXTDOMAIN))))), 'std' => array(array('title' => 'Hotel', 'id_partner' => 'hotel'), array('title' => 'Rental', 'id_partner' => 'rental'), array('title' => 'Car', 'id_partner' => 'car'), array('title' => 'Tour', 'id_partner' => 'tour'), array('title' => 'Holiday', 'id_partner' => 'holiday'), array('title' => 'Activity', 'id_partner' => 'activity'))), array('id' => 'partner_commission', 'label' => __('Commission (%)', ST_TEXTDOMAIN), 'desc' => __('Commission (%)', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'section' => 'option_partner', 'min_max_step' => '0,100,1'), array('id' => 'partner_set_feature', 'label' => 'Partner can set featured', 'section' => 'option_partner', 'type' => 'on-off', 'desc' => '<strong>Enable</strong> to allow partner set feature of post', 'std' => 'off'), array('id' => 'search_enable_preload', 'label' => __('Enable Preload', ST_TEXTDOMAIN), 'desc' => __('Enable Preload', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_search', 'std' => 'on'), array('id' => 'search_preload_image', 'label' => __('Search Preload Image', ST_TEXTDOMAIN), 'desc' => __('Search Preload Image', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_search', 'condition' => 'search_enable_preload:is(on)'), array('id' => 'search_results_view', 'label' => __('Default search result style', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('List view or Grid view', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'list', 'label' => __('List view', ST_TEXTDOMAIN)), array('value' => 'grid', 'label' => __('Grid view', ST_TEXTDOMAIN)))), array('id' => 'search_tabs', 'label' => __('Search Tabs:', ST_TEXTDOMAIN), 'desc' => __('Search Tabs on home page', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_search', 'settings' => array(array('id' => 'check_tab', 'label' => __('Show tab', ST_TEXTDOMAIN), 'type' => 'on-off'), array('id' => 'tab_icon', 'label' => __('Icon', ST_TEXTDOMAIN), 'type' => 'text', 'desc' => __('This allows you to change icon next to the title', ST_TEXTDOMAIN)), array('id' => 'tab_search_title', 'label' => __('Form Title', ST_TEXTDOMAIN), 'type' => 'text', 'desc' => __('This allows you to change the text above the form', ST_TEXTDOMAIN)), array('id' => 'tab_name', 'label' => __('Choose Tab', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => 'hotel', 'label' => __('Hotel', ST_TEXTDOMAIN)), array('value' => 'rental', 'label' => __('Rental', ST_TEXTDOMAIN)), array('value' => 'tour', 'label' => __('Tour', ST_TEXTDOMAIN)), array('value' => 'holiday', 'label' => __('Holiday', ST_TEXTDOMAIN)), array('value' => 'cars', 'label' => __('Car', ST_TEXTDOMAIN)), array('value' => 'activities', 'label' => __('Activities', ST_TEXTDOMAIN)), array('value' => 'all_post_type', 'label' => __('All Post Type', ST_TEXTDOMAIN)))), array('id' => 'tab_html_custom', 'label' => __('Use HTML bellow', ST_TEXTDOMAIN), 'type' => 'textarea', 'desc' => __('This allows you to do short code or HTML', ST_TEXTDOMAIN))), 'std' => array(array('title' => 'Hotel', 'check_tab' => 'on', 'tab_icon' => 'fa-building-o', 'tab_search_title' => 'Search and Save on Hotels', 'tab_name' => 'hotel'), array('title' => 'Cars', 'check_tab' => 'on', 'tab_icon' => 'fa-car', 'tab_search_title' => 'Search for Cheap Rental Cars', 'tab_name' => 'cars'), array('title' => 'Tours', 'check_tab' => 'on', 'tab_icon' => 'fa-flag-o', 'tab_search_title' => 'Tours', 'tab_name' => 'tour'), array('title' => 'Holidays', 'check_tab' => 'on', 'tab_icon' => 'fa-flag-o', 'tab_search_title' => 'Holidays', 'tab_name' => 'holiday'), array('title' => 'Rentals', 'check_tab' => 'on', 'tab_icon' => 'fa-home', 'tab_search_title' => 'Find Your Perfect Home', 'tab_name' => 'rental'), array('title' => 'Activity', 'check_tab' => 'on', 'tab_icon' => 'fa-bolt', 'tab_search_title' => 'Find Your Perfect Activity', 'tab_name' => 'activities'))), array('id' => 'all_post_type_search_result_page', 'label' => __('All Post Type Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_search'), array('id' => 'all_post_type_search_fields', 'label' => __('All Post Type Search Fields', ST_TEXTDOMAIN), 'desc' => __('All Post Type Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_search', 'settings' => array(array('id' => 'field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'address', 'label' => __('Address', ST_TEXTDOMAIN)), array('value' => 'item_name', 'label' => __('Name', ST_TEXTDOMAIN)), array('value' => 'post_type', 'label' => __('Post Type', ST_TEXTDOMAIN)))), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 12, 'field_search' => 'address'))), array('id' => 'search_header_onoff', 'label' => __('Enable Header Search', ST_TEXTDOMAIN), 'desc' => __('Enable Header Search', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_search', 'std' => 'on'), array('id' => 'search_header_orderby', 'label' => __('Header Search - Order By', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('Header Search - Order By', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => array(array('value' => 'none', 'label' => __('None', ST_TEXTDOMAIN)), array('value' => 'ID', 'label' => __('ID', ST_TEXTDOMAIN)), array('value' => 'author', 'label' => __('Author', ST_TEXTDOMAIN)), array('value' => 'title', 'label' => __('Title', ST_TEXTDOMAIN)), array('value' => 'name', 'label' => __('Name', ST_TEXTDOMAIN)), array('value' => 'date', 'label' => __('Date', ST_TEXTDOMAIN)), array('value' => 'rand', 'label' => __('Random', ST_TEXTDOMAIN)))), array('id' => 'search_header_order', 'label' => __('Header Search - Order', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('Header Search - Search by', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => array(array('value' => 'ASC', 'label' => __('ASC', ST_TEXTDOMAIN)), array('value' => 'DESC', 'label' => __('DESC', ST_TEXTDOMAIN)))), array('id' => 'search_header_list', 'label' => __('Header Search - Search by', ST_TEXTDOMAIN), 'type' => 'checkbox', 'section' => 'option_search', 'desc' => __('Header Search - Search by', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => get_list_posttype()), array('id' => '404_bg', 'label' => __('404 Background', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_404'), array('id' => '404_text', 'label' => __('404 Text', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '3', 'section' => 'option_404'), array('id' => 'social_fb_login', 'label' => __('Facebook Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'social_gg_login', 'label' => __('Google Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'social_tw_login', 'label' => __('Twitter Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'bc_show_location_url', 'label' => __('Location link to Location Search Page', ST_TEXTDOMAIN), 'déc' => __('Yes for link to Location Search Page, No for link to Location Detail Page', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_bc', 'std' => 'on'), array('id' => 'use_woocommerce_for_booking', 'section' => 'option_woo_checkout', 'label' => __('Use Woocomerce for Booking', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off'), array('id' => 'woo_checkout_show_shipping', 'section' => 'option_woo_checkout', 'label' => __('Show Shipping Information', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'condition' => "use_woocommerce_for_booking:is(on)"), array('id' => 'st_woo_cart_is_collapse', 'section' => 'option_woo_checkout', 'label' => __('Show Cart item Information collapsed', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'condition' => "use_woocommerce_for_booking:is(on)")));
$taxonomy_hotel = st_get_post_taxonomy('st_hotel');
if (!empty($taxonomy_hotel)) {
    foreach ($taxonomy_hotel as $k => $v) {
        $terms_hotel = get_terms($v['value']);
        $ids = array();
        if (!empty($terms_hotel)) {
            foreach ($terms_hotel as $key => $value) {
                $ids[] = array('value' => $value->term_id . "|" . $value->name, 'label' => $value->name);
            }
            $custom_settings['settings']['flied_hotel']['settings'][] = array('id' => 'custom_terms_' . $v['value'], 'label' => $v['label'], 'condition' => 'name:is(taxonomy),taxonomy:is(' . $v['value'] . ')', 'operator' => 'and', 'type' => 'checkbox', 'choices' => $ids, 'desc' => __('It will show all Hotel theme If you don\'t have any choose.', ST_TEXTDOMAIN));
            $ids = array();
        }
    }
}
$custom_settings = apply_filters('st_option_tree_settings', $custom_settings);
 function st_vc_all_post_type_content_search($attr, $content = false)
 {
     $default = array('st_style' => 1, 'st_number' => 5);
     $attr = wp_parse_args($attr, $default);
     extract($attr);
     if (!is_page_template('template-search-all-post-type.php')) {
         return "";
     }
     $html = '';
     global $wp_query, $st_search_query;
     $data_post_type = STInput::request('data_post_type', 'all');
     if ($data_post_type == 'all') {
         $data_post_type = array('st_hotel', 'st_rental', 'st_cars', 'st_tours', 'st_holidays', 'st_activity');
     } else {
         $data_post_type = array($data_post_type);
     }
     ///////////////////////////////
     ////// Hotel
     //////////////////////////////
     if (st_check_service_available('st_hotel') and in_array('st_hotel', $data_post_type)) {
         $hotel = new STHotel();
         add_action('pre_get_posts', array($hotel, 'change_search_hotel_arg'));
         query_posts(array('post_type' => 'st_hotel', 's' => '', 'paged' => get_query_var('paged'), 'posts_per_page' => $st_number));
         $st_search_query = $wp_query;
         $html .= st()->load_template('search/search-all-post-type/content', 'all-post-type', array('attr' => $attr));
         $html .= '<br>';
         remove_action('pre_get_posts', array($hotel, 'change_search_hotel_arg'));
         $hotel->remove_alter_search_query();
         wp_reset_query();
     }
     ///////////////////////////////
     ////// Rental
     //////////////////////////////
     if (st_check_service_available('st_rental') and in_array('st_rental', $data_post_type)) {
         $rental = new STRental();
         add_action('pre_get_posts', array($rental, 'change_search_arg'));
         query_posts(array('post_type' => 'st_rental', 's' => '', 'paged' => get_query_var('paged'), 'posts_per_page' => $st_number));
         $st_search_query = $wp_query;
         $html .= st()->load_template('search/search-all-post-type/content', 'all-post-type', array('attr' => $attr));
         $html .= '<br>';
         remove_action('pre_get_posts', array($rental, 'change_search_arg'));
         $rental->remove_alter_search_query();
         wp_reset_query();
     }
     ///////////////////////////////
     ////// Activity
     //////////////////////////////
     if (st_check_service_available('st_activity') and in_array('st_activity', $data_post_type)) {
         $activity = new STActivity();
         add_action('pre_get_posts', array($activity, 'change_search_activity_arg'));
         query_posts(array('post_type' => 'st_activity', 's' => '', 'paged' => get_query_var('paged'), 'posts_per_page' => $st_number));
         $st_search_query = $wp_query;
         $html .= st()->load_template('search/search-all-post-type/content', 'all-post-type', array('attr' => $attr));
         $html .= '<br>';
         remove_action('pre_get_posts', array($activity, 'change_search_activity_arg'));
         $activity->remove_alter_search_query();
         wp_reset_query();
     }
     ///////////////////////////////
     ////// Cars
     //////////////////////////////
     if (st_check_service_available('st_cars') and in_array('st_cars', $data_post_type)) {
         $cars = new STCars();
         add_action('pre_get_posts', array($cars, 'change_search_cars_arg'));
         query_posts(array('post_type' => 'st_cars', 's' => '', 'paged' => get_query_var('paged'), 'posts_per_page' => $st_number));
         $st_search_query = $wp_query;
         $html .= st()->load_template('search/search-all-post-type/content', 'all-post-type', array('attr' => $attr));
         $html .= '<br>';
         remove_action('pre_get_posts', array($cars, 'change_search_cars_arg'));
         $cars->remove_alter_search_query();
         wp_reset_query();
     }
     ///////////////////////////////
     ////// Tours
     //////////////////////////////
     if (st_check_service_available('st_tours') and in_array('st_tours', $data_post_type)) {
         $tours = new STTour();
         $tours->alter_search_query();
         add_action('pre_get_posts', array($tours, 'change_search_tour_arg'));
         query_posts(array('post_type' => 'st_tours', 's' => '', 'paged' => get_query_var('paged'), 'posts_per_page' => $st_number));
         $st_search_query = $wp_query;
         $html .= st()->load_template('search/search-all-post-type/content', 'all-post-type', array('attr' => $attr));
         $html .= '<br>';
         $tours->remove_alter_search_query();
         wp_reset_query();
     }
     ///////////////////////////////
     ////// Holidays
     //////////////////////////////
     if (st_check_service_available('st_holidays') and in_array('st_holidays', $data_post_type)) {
         $holidays = new STHoliday();
         $holidays->alter_search_query();
         add_action('pre_get_posts', array($holidays, 'change_search_holiday_arg'));
         query_posts(array('post_type' => 'st_holidays', 's' => '', 'paged' => get_query_var('paged'), 'posts_per_page' => $st_number));
         $st_search_query = $wp_query;
         $html .= st()->load_template('search/search-all-post-type/content', 'all-post-type', array('attr' => $attr));
         $html .= '<br>';
         $holidays->remove_alter_search_query();
         wp_reset_query();
     }
     return $html;
 }
Example #19
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Hotel reviews detail
 *
 * Created by ShineTheme
 *
 */
$cars = new STCars();
?>
<div class="">
    <div class="row">
        <div class="col-md-8">
            <?php 
$total = get_comments_number();
?>
            <h4 class="lh1em"><?php 
st_the_language('traveler_rating');
?>
</h4>
            <ul class="list booking-item-raiting-list">

                <?php 
$rate_exe = STReview::count_review_by_rate(null, 5);
?>
                <li>
                    <div class="booking-item-raiting-list-title"><?php 
Example #20
0
 function st_list_map($attr, $content = false)
 {
     $data = shortcode_atts(array('title' => '', 'type' => 'normal', 'st_list_location' => '', 'st_type' => 'st_hotel', 'zoom' => '13', 'height' => '500', 'number' => '12', 'fit_bounds' => 'no', 'style_map' => 'normal', 'custom_code_style' => '', 'show_search_box' => 'yes', 'show_data_list_map' => 'yes', 'range_km' => 'no', 'max_range_km' => '20', 'range_km_col' => '6'), $attr, 'st_list_map');
     extract($data);
     $data_map = array();
     $html = '';
     //if(!empty( $ids )) {
     $map_lat_center = 0;
     $map_lng_center = 0;
     if ($type == "normal") {
         $ids = $st_list_location;
         if (empty($ids)) {
             return '';
         }
         $_SESSION['el_st_type'] = $st_type;
         $_SESSION['el_location_id'] = $st_list_location;
         $st_list_map = new st_list_map();
         add_filter('posts_where', array($st_list_map, '_get_query_where'));
         add_filter('posts_join', array($st_list_map, '_get_query_join'));
         $query = array('post_type' => explode(',', $st_type), 'posts_per_page' => $number, 'post_status' => 'publish');
         $map_lat = get_post_meta($ids, 'map_lat', true);
         $map_lng = get_post_meta($ids, 'map_lng', true);
         $location_center = '[' . $map_lat . ',' . $map_lng . ']';
         global $wp_query;
         query_posts($query);
         remove_filter('posts_where', array($st_list_map, '_get_query_where'));
         remove_filter('posts_join', array($st_list_map, '_get_query_join'));
         unset($_SESSION['el_st_type']);
         unset($_SESSION['el_location_id']);
     }
     if ($type == "page_search") {
         $location_center = '[0,0]';
         $address_center = '';
         if (STInput::request('pick-up')) {
             $ids_location = TravelerObject::_get_location_by_name(STInput::get('pick-up'));
             if (!empty($ids_location)) {
                 $_REQUEST['pick-up'] = implode(',', $ids_location);
                 $map_lat_center = get_post_meta($ids_location[0], 'map_lat', true);
                 $map_lng_center = get_post_meta($ids_location[0], 'map_lng', true);
                 $location_center = '[' . $map_lat_center . ',' . $map_lng_center . ']';
                 $address_center = get_the_title($ids_location[0]);
             }
         }
         if (STInput::request('location_id')) {
             $map_lat_center = get_post_meta(STInput::request('location_id'), 'map_lat', true);
             $map_lng_center = get_post_meta(STInput::request('location_id'), 'map_lng', true);
             $location_center = '[' . $map_lat_center . ',' . $map_lng_center . ']';
             $address_center = get_the_title(STInput::request('location_id'));
         }
         if (STInput::request('location_id_pick_up')) {
             $map_lat_center = get_post_meta(STInput::request('location_id_pick_up'), 'map_lat', true);
             $map_lng_center = get_post_meta(STInput::request('location_id_pick_up'), 'map_lng', true);
             $location_center = '[' . $map_lat_center . ',' . $map_lng_center . ']';
             $address_center = get_the_title(STInput::request('location_id_pick_up'));
         }
         global $wp_query, $st_search_query;
         switch ($st_type) {
             case "st_hotel":
                 $hotel = new STHotel();
                 add_action('pre_get_posts', array($hotel, 'change_search_hotel_arg'));
                 break;
             case "st_rental":
                 $rental = new STRental();
                 add_action('pre_get_posts', array($rental, 'change_search_arg'));
                 break;
             case "st_cars":
                 $cars = new STCars();
                 add_action('pre_get_posts', array($cars, 'change_search_cars_arg'));
                 break;
             case "st_tours":
                 $tour = new STTour();
                 //add_action( 'pre_get_posts' , array( $tour , 'change_search_tour_arg' ) );
                 st()->tour->alter_search_query();
                 break;
             case "st_holidays":
                 $holiday = new STHoliday();
                 //add_action( 'pre_get_posts' , array( $holiday , 'change_search_holiday_arg' ) );
                 st()->holiday->alter_search_query();
                 break;
             case "st_activity":
                 $activity = new STActivity();
                 add_action('pre_get_posts', array($activity, 'change_search_activity_arg'));
                 break;
         }
         $query = array('post_type' => $st_type, 'posts_per_page' => $number, 'post_status' => 'publish', 's' => '');
         query_posts($query);
     }
     $stt = 0;
     while (have_posts()) {
         the_post();
         $map_lat = get_post_meta(get_the_ID(), 'map_lat', true);
         $map_lng = get_post_meta(get_the_ID(), 'map_lng', true);
         if (!empty($map_lat) and !empty($map_lng) and is_numeric($map_lat) and is_numeric($map_lng)) {
             $post_type = get_post_type();
             $data_map[$stt]['id'] = get_the_ID();
             $data_map[$stt]['name'] = get_the_title();
             $data_map[$stt]['post_type'] = $post_type;
             $data_map[$stt]['lat'] = $map_lat;
             $data_map[$stt]['lng'] = $map_lng;
             $post_type_name = get_post_type_object($post_type);
             $post_type_name->label;
             switch ($post_type) {
                 case "st_hotel":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_hotel_icon_map_marker', 'http://maps.google.com/mapfiles/marker_black.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/hotel', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/hotel', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_rental":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_rental_icon_map_marker', 'http://maps.google.com/mapfiles/marker_brown.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/rental', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/rental', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_cars":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_cars_icon_map_marker', 'http://maps.google.com/mapfiles/marker_green.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/car', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/car', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_tours":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_tours_icon_map_marker', 'http://maps.google.com/mapfiles/marker_purple.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/tour', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/tour', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_holidays":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_holidays_icon_map_marker', 'http://maps.google.com/mapfiles/marker_purple.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/holiday', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/holiday', false, array('post_type' => $post_type_name->label)));
                     break;
                 case "st_activity":
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_activity_icon_map_marker', 'http://maps.google.com/mapfiles/marker_yellow.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/activity', false, array('post_type' => $post_type_name->label)));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/activity', false, array('post_type' => $post_type_name->label)));
                     break;
             }
             $stt++;
         }
     }
     if ($type == "page_search") {
         $st_search_query = $wp_query;
         switch ($post_type) {
             case "st_hotel":
                 $hotel->remove_alter_search_query();
                 break;
             case "st_rental":
                 $rental->remove_alter_search_query();
                 break;
             case "st_cars":
                 $cars->remove_alter_search_query();
                 break;
             case "st_tours":
                 //remove_action( 'pre_get_posts' , array( $tour , 'change_search_tour_arg' ) );
                 st()->tour->remove_alter_search_query();
                 break;
             case "st_holidays":
                 //remove_action( 'pre_get_posts' , array( $holiday , 'change_search_holiday_arg' ) );
                 st()->holiday->remove_alter_search_query();
                 break;
             case "st_activity":
                 $activity->remove_alter_search_query();
                 break;
         }
     }
     wp_reset_query();
     if (empty($location_center) or $location_center == '[,]') {
         $location_center = '[0,0]';
     }
     $data_tmp = array('location_center' => $location_center, 'zoom' => $zoom, 'data_map' => $data_map, 'height' => $height, 'style_map' => $style_map, 'st_type' => $st_type, 'number' => $number, 'fit_bounds' => $fit_bounds, 'title' => $title, 'show_search_box' => $show_search_box, 'show_data_list_map' => $show_data_list_map, 'range_km' => $range_km, 'max_range_km' => $max_range_km, 'range_km_col' => $range_km_col);
     $data_tmp['data_tmp'] = $data_tmp;
     $html = st()->load_template('vc-elements/st-list-map/html', '', $data_tmp);
     // }
     return $html;
 }
Example #21
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Cars search form
 *
 * Created by ShineTheme
 *
 */
$cars = new STCars();
$fields = $cars->get_search_fields();
?>
<h3><?php 
st_the_language('search_for_cars');
?>
</h3>
<form method="get" action="<?php 
the_permalink();
?>
">
    <div class="row">
        <?php 
if (!get_option('permalink_structure')) {
    echo '<input type="hidden" name="page_id"  value="' . STInput::request('page_id') . '">';
}
?>
        <input type="hidden" name="layout" value="<?php 
echo STInput::get('layout');
Example #22
0
 function _add_booking()
 {
     if (!check_admin_referer('shb_action', 'shb_field')) {
         die;
     }
     $data = $this->check_validate();
     if (is_array($data) && count($data)) {
         extract($data);
         $order = array('post_title' => __('Order', ST_TEXTDOMAIN) . ' - ' . date(get_option('date_format')) . ' @ ' . date(get_option('time_format')), 'post_type' => 'st_order', 'post_status' => 'publish');
         $order_id = wp_insert_post($order);
         if ($order_id) {
             $check_out_field = STCart::get_checkout_fields();
             if (!empty($check_out_field)) {
                 foreach ($check_out_field as $field_name => $field_desc) {
                     update_post_meta($order_id, $field_name, STInput::post($field_name));
                 }
             }
             update_post_meta($order_id, 'payment_method', 'st_submit_form');
             $id_user = get_current_user_id();
             update_post_meta($order_id, 'id_user', $id_user);
             $item_price = floatval(get_post_meta($item_id, 'cars_price', true));
             $unit = st()->get_option('cars_price_unit', 'day');
             /*if($unit == 'day'){
                   $numberday = ceil(($check_out_timestamp - $check_in_timestamp) / (60 * 60 * 24));
               }elseif($unit == 'hour'){
                   $numberday = ceil(($check_out_timestamp - $check_in_timestamp) / (60 * 60));
               }*/
             $numberday = STCars::get_date_diff($check_in_timestamp, $check_out_timestamp, $unit);
             $selected_equipments = $_POST['item_equipment'];
             $price_equipment = STPrice::getPriceEuipmentCarAdmin($selected_equipments);
             $data_equipment = STPrice::convertEquipmentToOject($selected_equipments);
             $origin_price = $item_price * $numberday;
             $sale_price = STPrice::getSaleCarPrice($item_id, $item_price, $check_in_timestamp, $check_out_timestamp);
             $price_with_tax = STPrice::getPriceWithTax($sale_price + $price_equipment);
             $coupon_price = 0;
             $deposit_money['data'] = array();
             $deposit_money = STPrice::getDepositData($item_id, $deposit_money);
             $deposit_price = STPrice::getDepositPrice($deposit_money['data']['deposit_money'], $price_with_tax, 0);
             if (isset($deposit_money['data']['deposit_money'])) {
                 $total_price = $deposit_price;
             } else {
                 $total_price = $price_with_tax - $coupon_price;
             }
             $data_prices = array('origin_price' => $origin_price, 'sale_price' => $sale_price, 'coupon_price' => 0, 'price_with_tax' => $price_with_tax, 'total_price' => $total_price, 'deposit_price' => $deposit_price, 'unit' => $unit, 'price_equipment' => $price_equipment);
             $item_data = array('item_id' => $item_id, 'item_number' => 1, 'total_price' => $total_price, 'item_price' => $item_price, 'check_in' => $check_in, 'check_in_timestamp' => $check_in_timestamp, 'check_out' => $check_out, 'check_out_timestamp' => $check_out_timestamp, 'st_booking_id' => $item_id, 'check_in_time' => $check_in_time, 'check_out_time' => $check_out_time, 'pick_up' => get_the_title($location_id_pick_up), 'location_id_pick_up' => $location_id_pick_up, 'drop_off' => get_the_title($location_id_drop_off), 'location_id_drop_off' => $location_id_drop_off, 'deposit_money' => $deposit_money, 'booking_by' => 'admin', 'st_tax' => STPrice::getTax(), 'st_tax_percent' => STPrice::getTax(), 'status' => $_POST['status'], 'currency' => TravelHelper::get_current_currency('symbol'), 'currency_rate' => TravelHelper::get_current_currency('rate'), 'data_equipment' => $data_equipment, 'data_prices' => $data_prices, 'commission' => TravelHelper::get_commission());
             foreach ($item_data as $val => $value) {
                 update_post_meta($order_id, $val, $value);
             }
             if (TravelHelper::checkTableDuplicate('st_cars')) {
                 global $wpdb;
                 $table = $wpdb->prefix . 'st_order_item_meta';
                 $g_post = get_post($item_id);
                 $partner_id = $g_post ? $g_post->post_author : '';
                 global $sitepress;
                 if ($sitepress) {
                     $post_type = get_post_type($st_booking_id);
                     if ($post_type == 'st_hotel') {
                         $post_type = 'hotel_room';
                         $id = $room_id;
                     } else {
                         $id = $st_booking_id;
                     }
                     $lang_code = $sitepress->get_default_language();
                     $origin_id = icl_object_id($id, $post_type, true, $lang_code);
                 } else {
                     $origin_id = $st_booking_id;
                 }
                 $data = array('order_item_id' => $order_id, 'type' => 'normal_booking', 'st_booking_post_type' => 'st_cars', 'check_in' => date('m/d/Y', strtotime($check_in)), 'check_out' => date('m/d/Y', strtotime($check_out)), 'st_booking_id' => $item_id, 'check_in_timestamp' => $check_in_timestamp, 'check_out_timestamp' => $check_out_timestamp, 'user_id' => $id_user, 'status' => $_POST['status'], 'wc_order_id' => $order_id, 'partner_id' => $partner_id, 'created' => get_the_date('Y-m-d', $order_id), 'total_order' => $total_price, 'commission' => TravelHelper::get_commission(), 'origin_id' => $origin_id);
                 $wpdb->insert($table, $data);
             }
             //Check email
             $user_name = STInput::post('st_email');
             $user_id = username_exists($user_name);
             if (!$user_id and email_exists($user_name) == false) {
                 $random_password = wp_generate_password($length = 12, $include_standard_special_chars = false);
                 $userdata = array('user_login' => $user_name, 'user_pass' => $random_password, 'user_email' => $user_name, 'first_name' => STInput::post('st_first_name'), 'last_name' => STInput::post('st_last_name'));
                 $user_id = wp_insert_user($userdata);
                 wp_new_user_notification($user_id);
             }
             STCart::send_mail_after_booking($order_id, true);
             STCart::send_email_confirm($order_id);
             do_action('st_booking_success', $order_id);
             wp_safe_redirect(self::$booking_page);
         }
     }
 }
Example #23
0
    if (!empty($min_price) and !empty($offer)) {
        $page_search = st_get_page_search_result('st_rental');
        if (!empty($page_search)) {
            $link = add_query_arg(array('location_id' => get_the_ID()), get_the_permalink($page_search));
        } else {
            $link = home_url(esc_url('?s=&post_type=st_rental&location_id=' . get_the_ID()));
        }
        if ($offer < 2) {
            $offer = $offer . " " . __("Rental from", ST_TEXTDOMAIN);
        } else {
            $offer = $offer . " " . __("Rentals from", ST_TEXTDOMAIN);
        }
        echo '<li><a href="' . $link . '"><i class="fa fa-home"></i> ' . $offer . ' ' . $min_price . '/' . STLanguage::st_get_language('night') . '</a></li>';
    }
}
$car = new STCars();
if ($car->is_available()) {
    $min_price = get_post_meta(get_the_ID(), 'min_price_st_cars', true);
    $min_price = TravelHelper::format_money($min_price);
    $offer = get_post_meta(get_the_ID(), 'offer_st_cars', true);
    if (!empty($min_price) and !empty($offer)) {
        $page_search = st_get_page_search_result('st_cars');
        if (!empty($page_search)) {
            $link = add_query_arg(array('location_id' => get_the_ID()), get_the_permalink($page_search));
        } else {
            $link = home_url(esc_url('?s=&post_type=st_cars&location_id=' . get_the_ID()));
        }
        if ($offer < 2) {
            $offer = $offer . " " . __("Car from", ST_TEXTDOMAIN);
        } else {
            $offer = $offer . " " . __("Cars from", ST_TEXTDOMAIN);
}
$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();
        $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();
                    <p class="booking-item-payment-price-amount">
                        <?php 
    if (!empty($price_old)) {
        ?>
                        <?php 
        echo '<span class="onsale">' . $price_old . '</span> <i class="fa fa-arrow-right "></i>';
        ?>
                        <?php 
    }
    ?>
                        <strong><?php 
    echo TravelHelper::format_money($price_car);
    ?>
</strong>
                        <small>/<?php 
    echo STCars::get_price_unit();
    ?>
</small>
                    </p>
                </li>
                <li>
                    <p class="booking-item-payment-price-title"><?php 
    st_the_language('car_total');
    ?>
 </p>
                    <p class="booking-item-payment-price-amount"><?php 
    echo TravelHelper::format_money($item['data']['price_total']);
    ?>
                    </p>
                </li>
            </ul>
 </p>
        <p><strong><?php 
st_the_language('booking_car');
?>
</strong> <?php 
echo get_the_title($object_id);
?>
</p>
        <p><strong><?php 
st_the_language('booking_price');
?>
</strong> <?php 
echo TravelHelper::format_money($price);
?>
 / <?php 
echo STCars::get_price_unit_by_unit_id($data_prices['unit']);
?>
</p>
        <?php 
if ($pickup = get_post_meta($order_code, 'pick_up', true)) {
    ?>
        <p><strong><?php 
    _e("Pick-up: ", ST_TEXTDOMAIN);
    ?>
</strong> <?php 
    echo esc_html($pickup);
    ?>
</p>
        <?php 
}
?>
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Cars modal booking
 *
 * Created by ShineTheme
 *
 */
$car = new STCars();
$paypal_allow = false;
if (class_exists('STPaypal')) {
    $paypal_allow = true;
}
$field_list = $car->get_search_fields_box();
$field_type = $car->get_search_fields_name();
//Logged in User Info
global $firstname, $user_email;
get_currentuserinfo();
$paypal_allow = apply_filters('st_checkout_paypal_allow', $paypal_allow);
?>
<h3><?php 
printf(st_get_language('you_are_booking_for_s'), get_the_title());
?>
</h3>

<div id="booking_modal_<?php 
echo get_the_ID();
Example #28
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * User loop cars
 *
 * Created by ShineTheme
 *
 */
$status = get_post_status(get_the_ID());
$icon_class = STUser_f::st_get_icon_status_partner();
$info_price = STCars::get_info_price();
$price = $info_price['price'];
$count_sale = $info_price['discount'];
$price_origin = $info_price['price_origin'];
$page_my_account_dashboard = st()->get_option('page_my_account_dashboard');
?>
<li <?php 
post_class($status);
?>
>
    <a data-id="<?php 
the_ID();
?>
" data-id-user="******" data-placement="top" rel="tooltip"  class="btn_remove_post_type cursor fa fa-times booking-item-wishlist-remove" data-original-title="<?php 
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Cars search form
 *
 * Created by ShineTheme
 *
 */
$cars = new STCars();
$fields = $cars->get_search_fields_box();
?>
<h3><?php 
st_the_language('search_for_cars');
?>
</h3>
<form method="get" action="<?php 
the_permalink();
?>
">
    <div class="row">
        <?php 
if (!get_option('permalink_structure')) {
    echo '<input type="hidden" name="page_id"  value="' . STInput::request('page_id') . '">';
}
?>
        <input type="hidden" name="layout" value="<?php 
echo STInput::get('layout');
Example #30
0
 function st_cars_detail_map($attr)
 {
     if (is_singular('st_cars')) {
         $default = array('number' => '12', 'range' => '20', 'show_circle' => 'no');
         extract($dump = wp_parse_args($attr, $default));
         $lat = get_post_meta(get_the_ID(), 'map_lat', true);
         $lng = get_post_meta(get_the_ID(), 'map_lng', true);
         $zoom = get_post_meta(get_the_ID(), 'map_zoom', true);
         $class = new STCars();
         $data = $class->get_near_by(get_the_ID(), $range, $number);
         $location_center = '[' . $lat . ',' . $lng . ']';
         $data_map = array();
         $data_map[0]['id'] = get_the_ID();
         $data_map[0]['name'] = get_the_title();
         $data_map[0]['post_type'] = get_post_type();
         $data_map[0]['lat'] = $lat;
         $data_map[0]['lng'] = $lng;
         $data_map[0]['icon_mk'] = get_template_directory_uri() . '/img/mk-single.png';
         $data_map[0]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/car', false, array('post_type' => '')));
         $data_map[0]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/car', false, array('post_type' => '')));
         $stt = 1;
         global $post;
         if (!empty($data)) {
             foreach ($data as $post) {
                 setup_postdata($post);
                 $map_lat = get_post_meta(get_the_ID(), 'map_lat', true);
                 $map_lng = get_post_meta(get_the_ID(), 'map_lng', true);
                 if (!empty($map_lat) and !empty($map_lng) and is_numeric($map_lat) and is_numeric($map_lng)) {
                     $post_type = get_post_type();
                     $data_map[$stt]['id'] = get_the_ID();
                     $data_map[$stt]['name'] = get_the_title();
                     $data_map[$stt]['post_type'] = $post_type;
                     $data_map[$stt]['lat'] = $map_lat;
                     $data_map[$stt]['lng'] = $map_lng;
                     $data_map[$stt]['icon_mk'] = st()->get_option('st_cars_icon_map_marker', 'http://maps.google.com/mapfiles/marker_green.png');
                     $data_map[$stt]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/car', false, array('post_type' => '')));
                     $data_map[$stt]['content_adv_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop-adv/car', false, array('post_type' => '')));
                     $stt++;
                 }
             }
             wp_reset_postdata();
         }
         if ($location_center == '[,]') {
             $location_center = '[0,0]';
         }
         if ($show_circle == 'no') {
             $range = 0;
         }
         $data_tmp = array('location_center' => $location_center, 'zoom' => $zoom, 'data_map' => $data_map, 'height' => 500, 'style_map' => 'normal', 'number' => $number, 'range' => $range);
         $data_tmp['data_tmp'] = $data_tmp;
         $html = '<div class="map_single">' . st()->load_template('hotel/elements/detail', 'map', $data_tmp) . '</div>';
         return $html;
     }
 }