Пример #1
0
 function st_vc_search_hotel_title($arg = array())
 {
     if (!get_post_type() == 'st_hotel' and get_query_var('post_type') != "st_hotel") {
         return;
     }
     $default = array('search_modal' => 1);
     extract(wp_parse_args($arg, $default));
     $hotel = new STHotel();
     $a = '<h3 class="booking-title">' . balanceTags($hotel->get_result_string());
     if ($search_modal) {
         $a .= '<small><a class="popup-text" href="#search-dialog" data-effect="mfp-zoom-out">' . __('Change search', ST_TEXTDOMAIN) . '</a></small>';
     }
     $a .= '</h3>';
     return $a;
 }
Пример #2
0
 function st_list_hotel_related($attr, $content = false)
 {
     $data_vc = STHotel::get_taxonomy_and_id_term_tour();
     $param = array('title' => '', 'sort_taxonomy' => '', 'posts_per_page' => 3, 'orderby' => 'ID', 'order' => 'DESC', 'font_size' => '3', 'number_of_row' => 1);
     $param = array_merge($param, $data_vc['list_id_vc']);
     $data = shortcode_atts($param, $attr, 'st_list_hotel_related');
     extract($data);
     $page = STInput::request('paged');
     if (!$page) {
         $page = get_query_var('paged');
     }
     $query = array('post_type' => 'st_hotel', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'paged' => $page, 'order' => $order, 'orderby' => $orderby, 'post__not_in' => array(get_the_ID()));
     if (!empty($sort_taxonomy)) {
         if (isset($attr["id_term_" . $sort_taxonomy])) {
             $terms_post = wp_get_post_terms(get_the_ID(), $sort_taxonomy, array('fields' => 'ids'));
             $id_term = $attr["id_term_" . $sort_taxonomy];
             $id_term = explode(',', $id_term);
             $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));
             }
         }
     }
     $r = "<div class='list_hotel_related'>" . st()->load_template('vc-elements/st-list-hotel/loop-hot', 'deals', array('query' => new Wp_Query($query))) . "</div>";
     wp_reset_query();
     if (!empty($title) and !empty($r)) {
         $r = '<h' . $font_size . '>' . $title . '</h' . $font_size . '>' . $r;
     }
     return $r;
 }
Пример #3
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;
 }
Пример #4
0
 /**
  * @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;
     }
 }
Пример #5
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Hotel reviews detail
 *
 * Created by ShineTheme
 *
 */
$hotel = new STHotel();
?>
<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 
Пример #6
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);
Пример #7
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * hotel filter price
 *
 * Created by ShineTheme
 *
 */
$prices = STHotel::get_min_max_price();
if (isset($prices['min']) and $prices['min']) {
    $min = $prices['min'];
} else {
    $min = 0;
}
if (isset($prices['max']) and $prices['max']) {
    $max = $prices['max'];
} else {
    $max = 500;
}
?>
<form method="get" action="">
    <?php 
$get = STInput::get();
if (!empty($get)) {
    foreach ($get as $key => $value) {
        if (is_array($value)) {
            if (!empty($value)) {
Пример #8
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Hotel loop room
 *
 * Created by ShineTheme
 *
 */
global $wp_query;
$post = STInput::request();
$post['room_parent'] = get_the_ID();
$hotel = new STHotel();
query_posts($hotel->search_room($post));
?>
    <ul class="booking-list loop-room">
        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        echo st()->load_template('hotel/elements/loop-room-item');
    }
} else {
    echo st()->load_template('hotel/elements/loop-room-none');
}
?>

    </ul>
Пример #9
0
            $listTaxonomy = array();
            if (!is_wp_error($terms) and !empty($terms)) {
                foreach ($terms as $key => $val) {
                    $listTaxonomy[$val->labels->name] = $key;
                }
            }
            return $listTaxonomy;
        }
        /** from 1.1.7*/
        static function get_taxonomy_and_id_term_tour()
        {
            $list_taxonomy = st_list_taxonomy('st_hotel');
            $list_id_vc = array();
            $param = array();
            foreach ($list_taxonomy as $k => $v) {
                $term = get_terms($v);
                if (!empty($term) and is_array($term)) {
                    foreach ($term as $key => $value) {
                        $list_value[$value->name] = $value->term_id;
                    }
                    $param[] = array("type" => "checkbox", "holder" => "div", "heading" => $k, "param_name" => "id_term_" . $v, "value" => $list_value, 'dependency' => array('element' => 'sort_taxonomy', 'value' => array($v)));
                    $list_value = "";
                    $list_id_vc["id_term_" . $v] = "";
                }
            }
            return array("list_vc" => $param, 'list_id_vc' => $list_id_vc);
        }
    }
    $a = new STHotel();
    $a->init();
}
Пример #10
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Hotel nearby
 *
 * Created by ShineTheme
 *
 */
$hotel = new STHotel();
$nearby_posts = $hotel->get_near_by();
$title = st_get_language('hotel_near');
if (!empty($nearby_posts)) {
    if (count($nearby_posts) > 1) {
        $title = st_get_language('hotels_near');
    }
}
?>
    <h4><?php 
echo esc_html($title);
?>
        <span class="title_bol"><?php 
echo the_title();
?>
</span>
    </h4>
<?php 
if ($nearby_posts and !empty($nearby_posts)) {
Пример #11
0
    ?>
                        </div>
                        <div class="col-xs-5">
                            <h5 class="booking-item-title"><?php 
    the_title();
    ?>
</h5>
                            <ul class="icon-group booking-item-rating-stars">
                                <?php 
    echo TravelHelper::rate_to_string(STReview::get_avg_rate());
    ?>
                            </ul>
                        </div>
                        <?php 
    $price = 0;
    $price = STHotel::get_avg_price();
    ?>
                        <div class="col-xs-3">
                            <span class="booking-item-price-from"><?php 
    _e('price avg', ST_TEXTDOMAIN);
    ?>
</span>
                            <span class="booking-item-price"><?php 
    echo TravelHelper::format_money($price);
    ?>
</span>
                        </div>
                    </div>
                </div>
            </a>
        </li>
Пример #12
0
                <div class="col-md-4">
                    <h4><?php 
    st_the_language('your_booking');
    ?>
:</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":
Пример #13
0
<?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);
Пример #14
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;
 }
Пример #15
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;
 }
Пример #16
0
 * hotel result
 *
 * Created by ShineTheme
 *
 */
global $wp_query;
$default = array('style' => 'grid');
if (isset($arg)) {
    extract(wp_parse_args($arg, $default));
} else {
    extract($default);
}
if (STInput::get('style')) {
    $style = STInput::get('style');
}
$hotel = new STHotel();
$allOrderby = $hotel->getOrderby();
?>
<div class="nav-drop booking-sort">

<!--    <h5 class="booking-sort-title"><a href="#" onclick="return false" >-->
<!--            --><?php 
//_e('Sort: ',ST_TEXTDOMAIN);
//            if(is_array($allOrderby))
//            {
//                //Reset
//                reset($allOrderby);
//                //$first=$allOrderby[1];
//
//                if($order=STInput::get('orderby','price_asc') and isset($allOrderby[$order])){
//                    echo esc_html($allOrderby[$order]['name']);
Пример #17
0
 function st_hotel_detail_map($attr)
 {
     if (is_singular('st_hotel')) {
         $hotel = new STHotel();
         $data = $hotel->get_near_by(get_the_ID(), 200, 10);
         $default = array('number' => '12', 'range' => '20', 'show_circle' => 'no');
         extract(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);
         $hotel = new STHotel();
         $data = $hotel->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/hotel', 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/hotel', 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_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' => '')));
                     $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' => '')));
                     $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;
     }
 }
 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;
 }
Пример #19
0
            <?php 
$view_star_review = st()->get_option('view_star_review', 'review');
if ($view_star_review == 'review') {
    ?>
                <ul class="icon-group text-color">
                    <?php 
    $avg = STReview::get_avg_rate();
    echo TravelHelper::rate_to_string($avg);
    ?>
                </ul>
            <?php 
} elseif ($view_star_review == 'star') {
    ?>
                <ul class="icon-list icon-group booking-item-rating-stars text-color">
                    <?php 
    $star = STHotel::getStar();
    echo TravelHelper::rate_to_string($star);
    ?>
                </ul>
            <?php 
}
?>
            <h5 class="thumb-title"><a class="text-darken"
                                       href="<?php 
echo esc_url($link);
?>
"><?php 
the_title();
?>
</a></h5>
            <?php 
Пример #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;
 }
Пример #21
0
</a></h5>
            <?php 
if ($address = get_post_meta(get_the_ID(), 'address', TRUE)) {
    ?>
                <p class="mb0">
                    <small> <?php 
    echo esc_html($address);
    ?>
</small>
                </p>
            <?php 
}
?>
            <p class="mb0 text-darken item_price_map">
                <span class="text-lg lh1em"><?php 
echo TravelHelper::format_money(STHotel::get_avg_price());
?>
</span>
                <small> <?php 
st_the_language('avg/night');
?>
</small>
            </p>
            <a class="btn btn-primary btn_book" href="<?php 
echo esc_url($link);
?>
"><?php 
_e("Book Now", ST_TEXTDOMAIN);
?>
</a>
            <button class="btn btn-default pull-right close_map" ><?php 
Пример #22
0
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * Search custom hotel
 *
 * Created by ShineTheme
 *
 */
if (!st_check_service_available('st_hotel')) {
    wp_redirect(home_url());
    die;
}
get_header();
global $wp_query, $st_search_query;
$hotel = new STHotel();
add_action('pre_get_posts', array($hotel, 'change_search_hotel_arg'));
query_posts(array('post_type' => 'st_hotel', 's' => get_query_var('s'), 'paged' => get_query_var('paged')));
$st_search_query = $wp_query;
remove_action('pre_get_posts', array($hotel, 'change_search_hotel_arg'));
echo st()->load_template('search-loading');
//$result_string='';
$layout = STInput::get('layout');
if (!$layout) {
    $layout = st()->get_option('hotel_search_layout');
}
$layout_class = get_post_meta($layout, 'layout_size', true);
if (!$layout_class) {
    $layout_class = "container";
}
?>
Пример #23
0
                <h5 class="thumb-title"><a class="text-darken" href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></h5>
                <?php 
    $address = get_post_meta(get_the_ID(), 'address', true);
    ?>
                <p class="mb0"><small><i class="fa fa-map-marker"></i> <?php 
    echo balanceTags($address);
    ?>
</small>
                </p>
                <p class="mb0 text-darken">
                    <span class="text-lg lh1em text-color"><?php 
    $min_price = STHotel::get_avg_price(get_the_ID());
    echo TravelHelper::format_money($min_price);
    ?>
</span><small> <?php 
    _e('avg/night', ST_TEXTDOMAIN);
    ?>
</small>

            </div>
        </div>
    </div>
<?php 
}
echo "</div>";
Пример #24
0
            <div class="text-darken">
                <?php 
echo st()->load_template('hotel/elements/attribute', 'list', array("taxonomy" => $taxonomy));
?>
            </div>
            <p class="mb0 text-darken"><span
                    <?php 
$price = STHotel::get_price();
?>
                    class="text-lg lh1em"><?php 
echo TravelHelper::format_money($price);
?>
</span>
                <small>
                    <?php 
if (STHotel::is_show_min_price()) {
    ?>
                        <?php 
    _e("Price from", ST_TEXTDOMAIN);
    ?>
                    <?php 
} else {
    ?>
                        <?php 
    _e("Price Avg", ST_TEXTDOMAIN);
    ?>
                    <?php 
}
?>

                    <?php 
Пример #25
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * hotel share
 *
 * Created by ShineTheme
 *
 */
$st_style_search = "style_2";
$hotel = new STHotel();
$fields = $hotel->get_search_fields();
?>
<h3><?php 
st_the_language('search_for_hotel');
?>
</h3>
<form role="search" method="get" class="search" action="<?php 
echo home_url('/');
?>
">
    <input type="hidden" name="s" value="">
    <input type="hidden" name="post_type" value="st_hotel">
    <input type="hidden" name="layout" value="<?php 
echo STInput::get('layout');
?>
">
    <input type="hidden" name="style" value="<?php 
Пример #26
0
<?php

/**
 * Created by PhpStorm.
 * User: me664
 * Date: 12/25/14
 * Time: 10:12 AM
 */
echo '<div class="row row-wrap">';
while ($query->have_posts()) {
    $query->the_post();
    $col = 12 / $st_ht_of_row;
    $hotel = new STHotel(get_the_ID());
    ?>
        <div class="col-md-<?php 
    echo esc_attr($col);
    ?>
 col-sm-6 style_box">
            <?php 
    echo STFeatured::get_featured();
    ?>
            <div class="thumb">
                <?php 
    if ($discount_text = get_post_meta(get_the_ID(), 'discount_text', true)) {
        ?>
                    <span class="box_sale btn-primary"> <?php 
        echo balanceTags($discount_text);
        ?>
 </span>
                <?php 
    }
Пример #27
0
the_title();
?>
</h3>
    <p class="loc-info-weather">
       <span class="loc-info-weather-num">
       <?php 
echo balanceTags($c['temp']);
?>
       </span>
       <?php 
echo balanceTags($c['icon']);
?>
    </p>
    <ul class="loc-info-list">
        <?php 
$hotel = new STHotel();
if ($hotel->is_available()) {
    $min_price = get_post_meta(get_the_ID(), 'min_price_st_hotel', true);
    $min_price = TravelHelper::format_money($min_price);
    $offer = get_post_meta(get_the_ID(), 'offer_st_hotel', true);
    if (!empty($min_price) and !empty($offer)) {
        $page_search = st_get_page_search_result('st_hotel');
        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_hotel&location_id=' . get_the_ID()));
        }
        if ($offer < 2) {
            $offer = $offer . " " . __("Hotel from", ST_TEXTDOMAIN);
        } else {
            $offer = $offer . " " . __("Hotels from", ST_TEXTDOMAIN);
Пример #28
0
    <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;
}
$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();
Пример #29
0
global $wp_query, $st_search_query;
if ($st_search_query) {
    $query = $st_search_query;
} else {
    $query = $wp_query;
}
if (!isset($style)) {
    $style = 'list';
}
if ($style == 'list') {
    if ($query->have_posts()) {
        echo '<ul class="booking-list loop-hotel style_list">';
        while ($query->have_posts()) {
            $query->the_post();
            $link = st_get_link_with_search(get_permalink(), array('start', 'end', 'room_num_search', 'adult_num'), $_GET);
            $hotel = new STHotel(get_the_ID());
            $thumb_url = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID()));
            ?>
            <li <?php 
            post_class('booking-item');
            ?>
>
                <?php 
            echo STFeatured::get_featured();
            ?>
                <div class="row">
                    <div class="col-md-3">
                        <div class="booking-item-img-wrap st-popup-gallery">
                            <a href="<?php 
            echo esc_url($thumb_url);
            ?>
Пример #30
0
    <p class="loc-info-weather">
       <span class="loc-info-weather-num">
       <?php 
    echo balanceTags($c['temp']);
    ?>
       </span>
       <?php 
    echo balanceTags($c['icon']);
    ?>
    </p>
    <?php 
}
?>
    <ul class="loc-info-list">
        <?php 
$hotel = new STHotel();
if ($hotel->is_available() && TravelHelper::checkTableDuplicate('st_hotel')) {
    $info = new STLocation();
    $info = $info->get_info_by_post_type(get_the_ID(), 'st_hotel');
    $min_price = $info['min_max_price']['price_min'];
    $min_price = TravelHelper::format_money($min_price);
    if (empty($min_price) or !$min_price) {
        $min_price = __("Free", ST_TEXTDOMAIN);
    }
    if (is_array($info) && count($info)) {
        $offer = $info['offers'];
        if (!empty($offer)) {
            $page_search = st_get_page_search_result('st_hotel');
            if (!empty($page_search) and get_post_type($page_search) == 'page') {
                //$link = add_query_arg(array('location_id'=>get_the_ID()),get_the_permalink($page_search));
                $link = add_query_arg(array('location_id' => get_the_ID(), 'pick-up' => get_the_title()), get_the_permalink($page_search));