function st_search_holiday_title($arg = array()) { if (!get_post_type() == 'st_holiday' and get_query_var('post_type') != "st_holiday") { return; } $default = array('search_modal' => 1); extract(wp_parse_args($arg, $default)); $holiday = new STHoliday(); $html = '<h3 class="booking-title">' . balanceTags($holiday->get_result_string()); if ($search_modal) { $html .= '<small><a class="popup-text" href="#search-dialog" data-effect="mfp-zoom-out">' . __('Change search', ST_TEXTDOMAIN) . '</a></small>'; } $html .= '</h3>'; return $html; }
function st_list_holiday_related($attr, $content = false) { $data_vc = STHoliday::get_taxonomy_and_id_term_tour(); $param = array('title' => '', 'sort_taxonomy' => '', 'posts_per_page' => 3, 'orderby' => 'ID', 'order' => 'DESC', 'st_style' => 'style_4', 'font_size' => '3'); $param = array_merge($param, $data_vc['list_id_vc']); $data = shortcode_atts($param, $attr, 'st_list_holiday_related'); extract($data); $page = STInput::request('paged'); if (!$page) { $page = get_query_var('paged'); } $query = array('post_type' => 'st_holidays', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'paged' => $page, 'order' => $order, 'orderby' => $orderby, 'post__not_in' => array(get_the_ID())); if (!empty($sort_taxonomy)) { if (isset($attr["id_term_" . $sort_taxonomy])) { $terms_post = wp_get_post_terms(get_the_ID(), $sort_taxonomy, array('fields' => 'ids')); $id_term = $attr["id_term_" . $sort_taxonomy]; $id_term = explode(',', $id_term); $terms = array(); foreach ($id_term as $key => $value) { if (in_array($value, $terms_post)) { $terms[] = $value; } } if ($terms) { $query['tax_query'] = array(array('taxonomy' => $sort_taxonomy, 'field' => 'id', 'terms' => $terms)); } } } query_posts($query); if ($st_style == 'style_1') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop', '', $data) . "</div>"; } if ($st_style == 'style_2') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop2', '', $data) . "</div>"; } if ($st_style == 'style_3') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop3', '', $data) . "</div>"; } if ($st_style == 'style_4') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop4', '', $data) . "</div>"; } wp_reset_query(); if (!empty($title) and !empty($r)) { $r = '<h' . $font_size . '>' . $title . '</h' . $font_size . '>' . $r; } return $r; }
* @package WordPress * @subpackage Traveler * @since 1.0 * * Holidays content * * Created by ShineTheme * */ global $wp_query, $st_search_query; if ($st_search_query) { $query = $st_search_query; } else { $query = $wp_query; } $holidays = new STHoliday(); $allOrderby = $holidays->getOrderby(); //echo $st_search_query->request; ?> <div class="row"> <div class="col-md-12"> <?php $default = array('st_style' => '1', 'taxonomy' => ''); if (isset($attr)) { extract(wp_parse_args($attr, $default)); } else { extract($default); } $style = STInput::request('style'); if (!empty($style)) { $st_style = $style;
<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Holidays nearby * * Created by ShineTheme * */ $holiday = new STHoliday(); $nearby_posts = $holiday->get_near_by(); if (empty($font_size)) { $font_size = '3'; } if (!empty($title)) { ?> <h<?php echo esc_attr($font_size); ?> ><?php echo esc_html($title); ?> </h<?php echo esc_attr($font_size); ?> > <?php }
$class = new STRental(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('rental_search_result_page'); break; case "st_cars": $class = new STCars(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('cars_search_result_page'); break; case "st_tours": $class = new STTour(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('tours_search_result_page'); break; case "st_holidays": $class = new STHoliday(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('holidays_search_result_page'); break; case "st_activity": $class = new STActivity(); $rs_string .= $class->get_result_string(); $page_search = st()->get_option('activity_search_result_page'); break; } echo ' <div class="row"> <div class="col-md-3"><h3>' . $obj->labels->singular_name . '</h3></div> <div class="col-md-9 text-right"> <h3>' . $rs_string . '</h3> </div>
$info_book = STHoliday::get_count_book(get_the_ID()); ?> <i class="fa fa-user"></i> <span class=""> <?php if ($info_book > 1) { echo sprintf(__('%d users booked', ST_TEXTDOMAIN), $info_book); } else { echo sprintf(__('%d user booked', ST_TEXTDOMAIN), $info_book); } ?> </span> </p> <p class="mb0 text-darken item_price_map"> <?php echo STHoliday::get_price_html(get_the_ID()); ?> </p> <a class="btn btn-primary" href="<?php echo esc_url(get_permalink()); ?> "><?php _e("Book Now", ST_TEXTDOMAIN); ?> </a> <button class="btn btn-default pull-right close_map" ><?php _e("Close", ST_TEXTDOMAIN); ?> </button> <?php echo st()->load_template('user/html/html_add_wishlist', null, array("title" => '', 'class' => 'btn-default pull-right'));
<div class="st_msg console_msg_holiday_type"></div> </div> </div> <div class="col-md-6 data_duration"> <div class="form-group form-group-icon-left"> <label for="duration"><?php _e("Duration", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-star input-icon input-icon-hightlight"></i> <input id="duration" name="duration" type="text" placeholder="<?php _e("Duration", ST_TEXTDOMAIN); ?> " class="duration form-control number" value="<?php echo STHoliday::get_duration_unit($post_id); ?> "> <div class="st_msg"><?php echo STUser_f::get_msg_html($validator->error('duration'), 'danger'); ?> </div> </div> </div> </div> <!-- <div class="row data_specific_date"> <div class="col-md-6"> <div class="form-group form-group-icon-left"> <label for="check_in"><?php _e("Departure Date", ST_TEXTDOMAIN);
$link = add_query_arg(array('location_id' => get_the_ID(), 'pick-up' => get_the_title()), get_the_permalink($page_search)); } else { //$link = home_url(esc_url('?s=&post_type=st_hotel&location_id='.get_the_ID())); //$link = home_url(esc_url('?s=&post_type=st_tours&location_id='.get_the_ID()."&pick-up=".get_the_title())); $link = add_query_arg(array('s' => '', 'post_type' => 'st_tours', 'location_id' => get_the_ID(), 'pick-up' => get_the_title()), home_url('/')); } if ($offer <= 1) { $offer_string = sprintf(__('%d Tour from %s', ST_TEXTDOMAIN), $offer, $min_price); } else { $offer_string = sprintf(__('%d Tours from %s', ST_TEXTDOMAIN), $offer, $min_price); } echo '<li><a href="' . $link . '"><i class="fa fa-bolt"></i> ' . $offer_string . '</a></li>'; } } } $holiday = new STHoliday(); if ($holiday->is_available() && TravelHelper::checkTableDuplicate('st_holidays')) { $info = new STLocation(); $info = $info->get_info_by_post_type(get_the_ID(), 'st_holidays'); $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_holidays'); 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));
} ?> </div> <div class="col-md-3"> <span class="booking-item-price-from"><?php st_the_language('holiday_from'); ?> </span> <?php if (empty($holiday_id)) { $holiday_id = get_the_ID(); } ?> <?php echo STHoliday::get_price_html($holiday_id, false, '<br>'); ?> <span class="info_price"></span> <a href="<?php echo esc_url($url); ?> "> <span class="btn btn-primary btn_book"><?php st_the_language('holiday_book_now'); ?> </span> </a> <?php if (!empty($count_sale)) { ?>
} ?> </div> <div class="row"> <div class="col-md-12"> <div class="package-info"> <i class="fa fa-calendar"></i> <span class=""><?php STLanguage::st_the_language('holiday_date'); ?> : </span> <?php $type_holiday = get_post_meta(get_the_ID(), 'type_holiday', true); if ($type_holiday == 'daily_holiday') { $day = STHoliday::get_duration_unit(); echo esc_html($day); } else { $check_in = get_post_meta(get_the_ID(), 'check_in', true); $check_out = get_post_meta(get_the_ID(), 'check_out', true); if (!empty($check_in) and !empty($check_out)) { $format = TravelHelper::getDateFormat(); $date = date_i18n($format, strtotime($check_in)) . ' <i class="fa fa-long-arrow-right"></i> ' . date_i18n($format, strtotime($check_out)); echo balanceTags($date); } else { st_the_language('holiday_none'); } } ?> </div> </div>
<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Content search holidays * * Created by ShineTheme * */ $holidays = new STHoliday(); $fields = $holidays->get_search_fields(); ?> <h2><?php echo esc_html($st_title_search); ?> </h2> <?php $id_page = st()->get_option('holidays_search_result_page'); if (!empty($id_page)) { $link_action = get_the_permalink($id_page); } else { $link_action = home_url('/'); } ?> <form role="search" method="get" class="search" action="<?php echo esc_url($link_action); ?>
function st_vc_list_holiday($attr, $content = false) { $data_vc = STHoliday::get_taxonomy_and_id_term_holiday(); $param = array('st_ids' => '', 'st_number_holiday' => 4, 'st_order' => '', 'st_orderby' => '', 'st_holiday_of_row' => '', 'st_style' => 'style_1', 'only_featured_location' => 'no', 'st_location' => '', 'sort_taxonomy' => '', 'title' => '', 'font_size' => '3'); $param = array_merge($param, $data_vc['list_id_vc']); $data = shortcode_atts($param, $attr, 'st_list_holiday'); extract($data); $page = STInput::request('paged'); if (!$page) { $page = get_query_var('paged'); } $query = array('post_type' => 'st_holidays', 'posts_per_page' => $st_number_holiday, 'paged' => $page, 'order' => $st_order, 'orderby' => $st_orderby); if (!empty($st_ids)) { $query['post__in'] = explode(',', $st_ids); $query['orderby'] = 'post__in'; } if ($st_orderby == 'sale') { $query['meta_key'] = 'price'; $query['orderby'] = 'meta_value'; } if ($st_orderby == 'rate') { $query['meta_key'] = 'rate_review'; $query['orderby'] = 'meta_value'; } if ($st_orderby == 'discount') { $query['meta_key'] = 'discount'; $query['orderby'] = 'meta_value'; } if ($st_orderby == 'last_minute_deal') { $query['order'] = 'DESC'; $query['orderby'] = 'meta_value'; $query['meta_key'] = 'sale_price_from'; $query['meta_query'][] = array('key' => 'is_sale_schedule', 'value' => 'on', 'compare' => "="); } if (!empty($sort_taxonomy)) { if (isset($attr["id_term_" . $sort_taxonomy])) { $id_term = $attr["id_term_" . $sort_taxonomy]; $query['tax_query'] = array(array('taxonomy' => $sort_taxonomy, 'field' => 'id', 'terms' => explode(',', $id_term))); } } $_SESSION['el_only_featured_location'] = $only_featured_location; $_SESSION['el_st_location'] = $st_location; $_SESSION['el_featured'] = array(); if ($only_featured_location == 'yes') { $STLocation = new STLocation(); $featured = $STLocation->get_featured_ids(); $_SESSION['el_featured'] = $featured; } $st_list_holiday = new st_list_holiday(); if ($only_featured_location == 'yes' || !empty($st_location)) { add_filter('posts_where', array($st_list_holiday, '_get_query_where')); add_filter('posts_join', array($st_list_holiday, '_get_query_join')); } query_posts($query); remove_filter('posts_where', array($st_list_holiday, '_get_query_where')); remove_filter('posts_join', array($st_list_holiday, '_get_query_join')); unset($_SESSION['el_only_featured_location']); unset($_SESSION['el_st_location']); unset($_SESSION['el_featured']); if ($st_style == 'style_1') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop', '', $data) . "</div>"; } if ($st_style == 'style_2') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop2', '', $data) . "</div>"; } if ($st_style == 'style_3') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop3', '', $data) . "</div>"; } if ($st_style == 'style_4') { $r = "<div class='list_holidays'>" . st()->load_template('vc-elements/st-list-holiday/loop4', '', $data) . "</div>"; } wp_reset_query(); if (!empty($title) and !empty($r)) { $r = '<h' . $font_size . '>' . $title . '</h' . $font_size . '>' . $r; } return $r; }
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; }
<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Holidays reviews detail * * Created by ShineTheme * */ $hotel = new STHoliday(); ?> <div class="mt20"> <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
$check_out = get_post_meta(get_the_ID(), 'check_out', true); if (!empty($check_in) and !empty($check_out)) { $format = TravelHelper::getDateFormat(); $date = date_i18n($format, strtotime($check_in)) . ' <i class="fa fa-long-arrow-right"></i> ' . date_i18n($format, strtotime($check_out)); echo balanceTags($date); } else { st_the_language('holiday_none'); } } ?> </div> </div> </div> <div class="row mt10"> <?php if ($price_html = STHoliday::get_price_html(false, false, ' <br> -')) { ?> <div class="col-md-6 col-sm-6 col-xs-6"> <p class="mb0 text-darken"> <i class="fa fa-money"></i> <?php _e('Price', ST_TEXTDOMAIN); ?> : <?php echo $price_html; ?> </p> </div> <?php }
<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Holidays price * * Created by ShineTheme * */ $default = array('align' => 'left'); if (isset($attr)) { extract(wp_parse_args($attr, $default)); } else { extract($default); } ?> <p class="booking-item-header-price text-<?php echo esc_attr($align); ?> "> <?php echo STHoliday::get_price_html(get_the_ID(), false, '<br>'); ?> </p>
//$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)); } else { //$link = home_url(esc_url('?s=&post_type=st_hotel&location_id='.get_the_ID())); //$link = home_url(esc_url('?s=&post_type=st_tours&location_id='.get_the_ID()."&pick-up=".get_the_title())); $link = add_query_arg(array('pick-up' => get_the_title(), 'location_id' => get_the_ID(), 's' => '', 'st_rental' => 'st_tours'), home_url('/')); } if ($offer > 1) { $offer_string = sprintf(__('%d Tour from %s', ST_TEXTDOMAIN), $offer, $min_price); } else { $offer_string = sprintf(__('%d Tours from %s', ST_TEXTDOMAIN), $offer, $min_price); } echo '<li><a href="' . $link . '"><i class="fa fa-bolt"></i> ' . $offer_string . '</a></li>'; } } $holiday = new STHoliday(); if ($holiday->is_available()) { $info = new STLocation(); $info = $info->get_info_by_post_type(get_the_ID(), 'st_holidays'); $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); } $offer = $info['offers']; if (!empty($offer)) { $page_search = st_get_page_search_result('st_holidays'); 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)); } else {
if (!empty($check_out) and !empty($check_out)) { ?> <i class="fa fa-calendar"></i> <span class=""><?php st_the_language('holiday_date'); ?> : </span> <?php $date = date_i18n(TravelHelper::getDateFormat(), strtotime($check_in)) . ' <i class="fa fa-long-arrow-right"></i> ' . date_i18n(TravelHelper::getDateFormat(), strtotime($check_out)); echo balanceTags($date); } ?> <?php } ?> </div> <p class="booking-item-description"> </p> </a> </div> <div class="col-md-3"> <?php echo STHoliday::get_price_html(get_the_ID(), false, '<br>', 'booking-item-price'); ?> </div> </div> </div> </li>
<?php /** * @package WordPress * @subpackage Traveler * @since 1.1.5 * * Hotel search Map * * Created by ShineTheme * */ if (!class_exists('STHoliday')) { return false; } $class = new STHoliday(); $fields = $class->get_search_fields(); if (!isset($field_size)) { $field_size = 'md'; } ?> <form id="hotel_search_half_map" method="get" class="search filter_search_map" action="<?php echo home_url(); ?> "> <h2><?php echo esc_html($title); ?> </h2> <input type="hidden" name="post_type" value="st_holidays">
/** * @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_holidays": $data_field = STHoliday::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; } $list_field[__('--Select--', ST_TEXTDOMAIN)] = ''; 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; } }
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__]&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__]&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__]&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&url=[__post_permalink__]&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);
$post_type = get_post_type($key); switch ($post_type) { case "st_hotel": $hotel = new STHotel(); echo balanceTags($hotel->get_cart_item_html($key)); break; case "st_cars": $cars = new STCars(); echo balanceTags($cars->get_cart_item_html($key)); break; case "st_tours": $tours = new STTour(); echo balanceTags($tours->get_cart_item_html($key)); break; case "st_holidays": $holidays = new STHoliday(); echo balanceTags($holidays->get_cart_item_html($key)); break; case "st_rental": $object = new STRental(); echo balanceTags($object->get_cart_item_html($key)); break; case "st_activity": $object = new STActivity(); echo balanceTags($object->get_cart_item_html($key)); break; } } } } ?>
function st_holiday_detail_map($attr) { if (is_singular('st_holidays')) { $default = array('number' => '12', 'range' => '20', 'show_circle' => 'no'); extract($dump = wp_parse_args($attr, $default)); $lat = get_post_meta(get_the_ID(), 'map_lat', true); $lng = get_post_meta(get_the_ID(), 'map_lng', true); $zoom = get_post_meta(get_the_ID(), 'map_zoom', true); $class = new STHoliday(); $data = $class->get_near_by(get_the_ID(), $range, $number); $location_center = '[' . $lat . ',' . $lng . ']'; $data_map = array(); $data_map[0]['id'] = get_the_ID(); $data_map[0]['name'] = get_the_title(); $data_map[0]['post_type'] = get_post_type(); $data_map[0]['lat'] = $lat; $data_map[0]['lng'] = $lng; $data_map[0]['icon_mk'] = get_template_directory_uri() . '/img/mk-single.png'; $data_map[0]['content_html'] = preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', st()->load_template('vc-elements/st-list-map/loop/holiday', 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/holiday', 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_holidays_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/holiday', 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/holiday', 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; }
function get_price_by_discount_person($id_holidays, $price, $num, $is_adult) { $flag = 0; $array = STHoliday::get_array_discount_by_person_num($id_holidays); if ($is_adult) { $array = $array['adult']; } else { $array = $array['child']; } if (!empty($array) and is_array($array)) { foreach ($array as $key => $value) { if ((int) $key <= $num) { $flag = $price * $value; $flagvalue = $value; } } } $price -= $flag; return $price; }
$price_type = st_get_language("activity"); $price = STActivity::get_price_person($data['id']); $price_sale = $price['adult_new']; $price = $price['adult']; break; case 'st_tours': $icon_type = '<i class="fa fa-bolt"></i>'; $price_type = st_get_language("tour"); $price = STTour::get_price_person($data['id']); $price_sale = $price['adult_new']; $price = $price['adult']; break; case 'st_holidays': $icon_type = '<i class="fa fa-bolt"></i>'; $price_type = st_get_language("holiday"); $price = STHoliday::get_price_person($data['id']); $price_sale = $price['adult_new']; $price = $price['adult']; break; case 'st_cars': $icon_type = '<i class="fa fa-car"></i>'; $price_type = st_get_language('user_person'); $price = get_post_meta($data['id'], 'cars_price', true); $count_sale = get_post_meta($data['id'], 'discount', true); if (!empty($count_sale)) { $x = $price; $price_sale = $price - $price * ($count_sale / 100); $price = $price_sale; $price_sale = $x; } break;
} } ?> </div> </div> </div> <div class="row mt10"> <div class="col-md-6 col-sm-6 col-xs-6"> <p class="mb0 text-darken"> <i class="fa fa-money"> </i> <?php _e('Price', ST_TEXTDOMAIN); ?> : <span> <?php echo STHoliday::get_price_html(false, false, ' <br> -'); ?> </span> </p> </div> <div class="col-md-6 col-sm-6 col-xs-6 text-right"> <i class="fa fa-thumbs-o-up icon-like"> </i> <ul class="icon-group text-color pull-right"> <?php echo TravelHelper::rate_to_string(STReview::get_avg_rate()); ?> </ul> </div> </div> </div>
<div class="div_btn_book_holiday"> <?php if ($st_is_booking_modal) { ?> <a href="#holiday_booking_<?php the_ID(); ?> " class="btn btn-primary popup-text" data-effect="mfp-zoom-out" ><?php st_the_language('book_now'); ?> </a> <?php } else { ?> <?php echo STHoliday::holiday_external_booking_submit(); ?> <?php } ?> <?php echo st()->load_template('user/html/html_add_wishlist', null, array("title" => '', 'class' => '')); ?> </div> </div> </form> </div> </div> </div> </div>