/** * * * @since 1.1.1 * */ function init_metabox() { //Room $this->metabox[] = array('id' => 'room_metabox', 'title' => __('Room Setting', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('hotel_room'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('General', ST_TEXTDOMAIN), 'id' => 'room_reneral_tab', 'type' => 'tab'), array('label' => __('Hotel', ST_TEXTDOMAIN), 'id' => 'room_parent', 'type' => 'post_select_ajax', 'desc' => __('Choose the hotel that the room belongs to', ST_TEXTDOMAIN), 'post_type' => 'st_hotel', 'placeholder' => __('Search for a Hotel', ST_TEXTDOMAIN)), array('label' => __('Number of Rooms', ST_TEXTDOMAIN), 'id' => 'number_room', 'type' => 'text', 'desc' => __('Number of rooms available for booking', ST_TEXTDOMAIN), 'std' => 1), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Hotel Room Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Hotel Room Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('hotel_room')), array('label' => __('Room Price', ST_TEXTDOMAIN), 'id' => 'room_price_tab', 'type' => 'tab'), array('label' => sprintf(__('Price (%s)', ST_TEXTDOMAIN), TravelHelper::get_default_currency('symbol')), 'id' => 'price', 'type' => 'text', 'desc' => __('Per night', ST_TEXTDOMAIN)), array('label' => __('Extra Price', ST_TEXTDOMAIN), 'id' => 'extra_price', 'type' => 'list-item', 'settings' => array(array('id' => 'extra_name', 'type' => 'text', 'std' => 'extra_', 'label' => __('Name of Item', ST_TEXTDOMAIN)), array('id' => 'extra_max_number', 'type' => 'text', 'std' => '', 'label' => __('Max of Number', ST_TEXTDOMAIN)), array('id' => 'extra_price', 'type' => 'text', 'std' => '', 'label' => __('Price', ST_TEXTDOMAIN), 'desc' => __('per 1 Item', ST_TEXTDOMAIN)))), array('label' => __('Discount Rate', ST_TEXTDOMAIN), 'id' => 'discount_rate', 'type' => 'text', 'desc' => __('Discount by %', ST_TEXTDOMAIN)), array('label' => __('Sale Schedule', ST_TEXTDOMAIN), 'id' => 'is_sale_schedule', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Sale Price Date From', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date From', ST_TEXTDOMAIN), 'id' => 'sale_price_from', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Sale Price Date To', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date To', ST_TEXTDOMAIN), 'id' => 'sale_price_to', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('id' => 'deposit_payment_status', 'label' => __("Deposit payment options", ST_TEXTDOMAIN), 'desc' => __('You can select <code>Disallow Deposit</code>, <code>Deposit by percent</code>, <code>Deposit by amount</code>'), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Disallow Deposit', ST_TEXTDOMAIN)), array('value' => 'percent', 'label' => __('Deposit by percent', ST_TEXTDOMAIN)), array('value' => 'amount', 'label' => __('Deposit by amount', ST_TEXTDOMAIN)))), array('label' => __('Deposit payment amount', ST_TEXTDOMAIN), 'desc' => __('Leave empty for disallow deposit payment', ST_TEXTDOMAIN), 'id' => 'deposit_payment_amount', 'type' => 'text', 'condition' => 'deposit_payment_status:not()'), array('label' => __('Room Facility', ST_TEXTDOMAIN), 'id' => 'room_detail_tab', 'type' => 'tab'), array('label' => __('No. adults', ST_TEXTDOMAIN), 'id' => 'adult_number', 'type' => 'text', 'desc' => __('Number of Adults in room', ST_TEXTDOMAIN), 'std' => 1), array('label' => __('No. children', ST_TEXTDOMAIN), 'id' => 'children_number', 'type' => 'text', 'desc' => __('Number of Children in room', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('No. beds', ST_TEXTDOMAIN), 'id' => 'bed_number', 'type' => 'text', 'desc' => __('Number of Beds in room', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Room footage (square feet)', ST_TEXTDOMAIN), 'desc' => __('Room footage (square feet)', ST_TEXTDOMAIN), 'id' => 'room_footage', 'type' => 'text'), array('label' => __('Room external booking', ST_TEXTDOMAIN), 'id' => 'st_room_external_booking', 'type' => 'on-off', 'std' => "off"), array('label' => __('Room external booking', ST_TEXTDOMAIN), 'id' => 'st_room_external_booking_link', 'type' => 'text', 'std' => "", 'condition' => 'st_room_external_booking:is(on)', 'desc' => "<em>" . __('Notice: Must be http://...', ST_TEXTDOMAIN) . "</em>"), array('label' => __('Other facility', ST_TEXTDOMAIN), 'id' => 'other_facility', 'type' => 'tab'), array('label' => __('Add a facility', ST_TEXTDOMAIN), 'id' => 'add_new_facility', 'type' => 'list-item', 'settings' => array(array('id' => 'facility_value', 'type' => 'text', 'std' => '', 'label' => __('Value', ST_TEXTDOMAIN)), array('id' => 'facility_icon', 'type' => 'text', 'std' => '', 'label' => __('Icon', ST_TEXTDOMAIN), 'desc' => __('Support: fonticon <code>(eg: fa-facebook)</code>', ST_TEXTDOMAIN)))), array('label' => __('Description', ST_TEXTDOMAIN), 'id' => 'room_description', 'type' => 'textarea', 'std' => ''), array('label' => __('Availability', ST_TEXTDOMAIN), 'id' => 'availability_tab', 'type' => 'tab'), array('label' => __("Default State", ST_TEXTDOMAIN), 'id' => 'default_state', 'type' => 'select', 'choices' => array(array('value' => "available", 'label' => __("Available", ST_TEXTDOMAIN)), array('value' => "not_available", 'label' => __("Not Available", ST_TEXTDOMAIN)))), array('label' => __('Hotel Calendar', ST_TEXTDOMAIN), 'id' => 'st_hotel_calendar', 'type' => 'st_hotel_calendar'))); $data_paypment = STPaymentGateways::get_payment_gateways(); if (!empty($data_paypment) and is_array($data_paypment)) { $this->metabox[0]['fields'][] = array('label' => __('Payment', ST_TEXTDOMAIN), 'id' => 'payment_detail_tab', 'type' => 'tab'); foreach ($data_paypment as $k => $v) { $this->metabox[0]['fields'][] = array('label' => $v->get_name(), 'id' => 'is_meta_payment_gateway_' . $k, 'type' => 'on-off', 'desc' => $v->get_name(), 'std' => 'on'); } } parent::register_metabox($this->metabox); }
/** * * @since 1.1.1 * */ function init_metabox() { $this->metabox[] = array('id' => 'Restaurent_metabox', 'title' => __('Restaurent Information', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('st_restaurent'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('Restaurent Detail', ST_TEXTDOMAIN), 'id' => 'detail_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('Set this location is featured', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Restaurent Logo', ST_TEXTDOMAIN), 'id' => 'logo', 'type' => 'upload', 'class' => 'ot-upload-attachment-id', 'desc' => __('Upload your Restaurent\'s logo; Recommend: 260px x 195px', ST_TEXTDOMAIN)), array('label' => __('Card Accepted', ST_TEXTDOMAIN), 'desc' => __('Card Accepted', ST_TEXTDOMAIN), 'id' => 'card_accepted', 'type' => 'checkbox', 'choices' => $this->get_card_accepted_list()), array('label' => __('Min Price', ST_TEXTDOMAIN), 'id' => 'min_price', 'type' => 'text', 'desc' => __('Min price of this Restaurent', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Custom Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Detail Restaurent Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('st_restaurent')), array('label' => __('Restaurent Email', ST_TEXTDOMAIN), 'id' => 'email', 'type' => 'text', 'desc' => __('Restaurent Email Address, this address will received email when have new booking', ST_TEXTDOMAIN)), array('label' => __('Restaurent Website', ST_TEXTDOMAIN), 'id' => 'website', 'type' => 'text', 'desc' => __('Restaurent Website. Ex: <em>http://domain.com</em>', ST_TEXTDOMAIN)), array('label' => __('Restaurent Phone', ST_TEXTDOMAIN), 'id' => 'phone', 'type' => 'text', 'desc' => __('Restaurent Phone Number', ST_TEXTDOMAIN)), array('label' => __('Fax Number', ST_TEXTDOMAIN), 'id' => 'fax', 'type' => 'text', 'desc' => __('Restaurent Fax Number', ST_TEXTDOMAIN)), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery', 'desc' => __('Pick your own image for this Restaurent', ST_TEXTDOMAIN)), array('label' => __('Restaurent Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Please use youtube or vimeo video', ST_TEXTDOMAIN)), array('label' => __('Star Rating', ST_TEXTDOMAIN), 'desc' => __('Star Rating', ST_TEXTDOMAIN), 'id' => 'Restaurent_star', 'type' => 'numeric-slider', 'min_max_step' => '0,5,1', 'std' => 0), array('label' => __('Restaurent Location', ST_TEXTDOMAIN), 'id' => 'location_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'id_location', 'type' => 'post_select_ajax', 'desc' => __('Search for location', ST_TEXTDOMAIN), 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'address', 'type' => 'text', 'desc' => __('Restaurent Address', ST_TEXTDOMAIN)), array('label' => __('Latitude', ST_TEXTDOMAIN), 'id' => 'map_lat', 'type' => 'text', 'desc' => __('Latitude <a href="http://www.latlong.net/" target="_blank">Get here</a>', ST_TEXTDOMAIN)), array('label' => __('Longitude', ST_TEXTDOMAIN), 'id' => 'map_lng', 'type' => 'text', 'desc' => __('Longitude', ST_TEXTDOMAIN)), array('label' => __('Map Zoom', ST_TEXTDOMAIN), 'id' => 'map_zoom', 'type' => 'text', 'desc' => __('Map Zoom', ST_TEXTDOMAIN), 'std' => 13), array('label' => __('Sale & Price setting', ST_TEXTDOMAIN), 'id' => 'sale_number_tab', 'type' => 'tab'), array('label' => __('Total Sale Number', ST_TEXTDOMAIN), 'id' => 'total_sale_number', 'type' => 'text', 'desc' => __('Total Number Booking of this Restaurent', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Auto calculate price avg', ST_TEXTDOMAIN), 'id' => 'is_auto_caculate', 'type' => 'on-off', 'desc' => __('Auto calculate price avg', ST_TEXTDOMAIN), 'std' => 'on'), array('label' => __('Price AVG', ST_TEXTDOMAIN), 'id' => 'price_avg', 'type' => 'text', 'desc' => __('Price AVG', ST_TEXTDOMAIN), 'std' => 0, 'conditions' => 'is_auto_caculate:is(on)'), array('label' => __("Min Price", ST_TEXTDOMAIN), 'desc' => __("Min Price", ST_TEXTDOMAIN), 'id' => 'min_price', 'type' => 'text', 'std' => 0), array('label' => __('Other Options', ST_TEXTDOMAIN), 'id' => 'Restaurent_options', 'type' => 'tab'), array('label' => __('Booking Period', ST_TEXTDOMAIN), 'id' => 'Restaurent_booking_period', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0, 'desc' => __('The time period allowed booking.', ST_TEXTDOMAIN)))); $custom_field = st()->get_option('Restaurent_unlimited_custom_field'); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
/** * * * @since 1.1.1 * */ function init_metabox() { //Room $this->metabox[] = array('id' => 'room_metabox', 'title' => __('Activity Setting', ST_TEXTDOMAIN), 'pages' => array('st_activity'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'location_reneral_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'multi_location', 'type' => 'list_item_post_type', 'desc' => __('Tour Location', ST_TEXTDOMAIN), 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'address', 'type' => 'text'), array('label' => __('Maps', ST_TEXTDOMAIN), 'id' => 'st_google_map', 'type' => 'bt_gmap', 'desc' => __('Maps', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('General', ST_TEXTDOMAIN), 'id' => 'room_reneral_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('This is set as featured', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Custom Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Detail Tour Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('st_activity')), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Contact email address', ST_TEXTDOMAIN), 'id' => 'contact_email', 'type' => 'text', 'desc' => __('Contact email address', ST_TEXTDOMAIN)), array('label' => __('Website', ST_TEXTDOMAIN), 'id' => 'contact_web', 'type' => 'text', 'desc' => __('Website', ST_TEXTDOMAIN)), array('label' => __('Phone', ST_TEXTDOMAIN), 'id' => 'contact_phone', 'type' => 'text', 'desc' => __('Phone', ST_TEXTDOMAIN)), array('label' => __('Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Please use youtube or vimeo video', ST_TEXTDOMAIN)), array('label' => __('Info setting', ST_TEXTDOMAIN), 'id' => 'activity_time_number_tab', 'type' => 'tab'), array('label' => __('Activity Type', ST_TEXTDOMAIN), 'id' => 'type_activity', 'type' => 'select', 'desc' => __('Activity Type', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'specific_date', 'label' => __('Specific Date', ST_TEXTDOMAIN)), array('value' => 'daily_activity', 'label' => __('Daily Activity', ST_TEXTDOMAIN)))), array('label' => __('Check In', ST_TEXTDOMAIN), 'id' => 'check_in', 'type' => 'date_picker', 'condition' => 'type_activity:is(specific_date)', 'desc' => __('Check In', ST_TEXTDOMAIN)), array('label' => __('Check Out', ST_TEXTDOMAIN), 'id' => 'check_out', 'type' => 'date_picker', 'condition' => 'type_activity:is(specific_date)', 'desc' => __('Check Out', ST_TEXTDOMAIN)), array('label' => __('Duration', ST_TEXTDOMAIN), 'id' => 'duration', 'type' => 'text', 'condition' => 'type_activity:is(daily_activity)', 'desc' => __('The total time to take each activity package', ST_TEXTDOMAIN)), array('label' => __('Booking Period', ST_TEXTDOMAIN), 'id' => 'activity_booking_period', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0, 'condition' => 'type_activity:is(daily_activity)', 'desc' => __('The time period allowed booking.', ST_TEXTDOMAIN)), array('label' => __('Activity Time', ST_TEXTDOMAIN), 'id' => 'activity-time', 'type' => 'text', 'desc' => __('The departure time of an activity', ST_TEXTDOMAIN)), array('label' => __('Max number of people', ST_TEXTDOMAIN), 'id' => 'max_people', 'type' => 'text', 'desc' => __('Max number of people', ST_TEXTDOMAIN), 'std' => '1'), array('label' => __('Venue Facilities', ST_TEXTDOMAIN), 'id' => 'venue-facilities', 'type' => 'text', 'desc' => __('The facilities that customer may experience during activities', ST_TEXTDOMAIN)), array('label' => __('Price setting', ST_TEXTDOMAIN), 'id' => 'price_number_tab', 'type' => 'tab'), array('label' => __('Adult Price', ST_TEXTDOMAIN), 'id' => 'adult_price', 'type' => 'text', 'desc' => __('Price per Adult', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Fields list discount by Adult number booking', ST_TEXTDOMAIN), 'id' => 'discount_by_adult', 'type' => 'list-item', 'desc' => __('Fields list discount by Adult number booking', ST_TEXTDOMAIN), 'std' => 0, 'settings' => array(array('id' => 'key', 'label' => __('Number of Adult', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'value', 'label' => __('Value percent of discount', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,1'))), array('label' => __('Child Price', ST_TEXTDOMAIN), 'id' => 'child_price', 'type' => 'text', 'desc' => __('Price per Child', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Fields list discount by Child number booking', ST_TEXTDOMAIN), 'id' => 'discount_by_child', 'type' => 'list-item', 'desc' => __('Fields list discount by Child number booking', ST_TEXTDOMAIN), 'std' => 0, 'settings' => array(array('id' => 'key', 'label' => __('Number of Children', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'value', 'label' => __('Value percent of discount', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,1'))), array('label' => __('Infant Price', ST_TEXTDOMAIN), 'id' => 'infant_price', 'type' => 'text', 'desc' => __('Price per Infant', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Discount', ST_TEXTDOMAIN), 'desc' => __('Discount', ST_TEXTDOMAIN), 'id' => 'discount', 'type' => 'numeric-slider', 'std' => 0), array('label' => __('Sale Schedule', ST_TEXTDOMAIN), 'id' => 'is_sale_schedule', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Sale Price Date From', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date From', ST_TEXTDOMAIN), 'id' => 'sale_price_from', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Sale Price Date To', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date To', ST_TEXTDOMAIN), 'id' => 'sale_price_to', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Best Price Guarantee', ST_TEXTDOMAIN), 'id' => 'best-price-guarantee', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Best Price Guarantee Text', ST_TEXTDOMAIN), 'id' => 'best-price-guarantee-text', 'type' => 'textarea', 'rows' => '2', 'condition' => 'best-price-guarantee:is(on)'), array('label' => __('Activity external booking', ST_TEXTDOMAIN), 'id' => 'st_activity_external_booking', 'type' => 'on-off', 'std' => "off"), array('label' => __('Activity external booking', ST_TEXTDOMAIN), 'id' => 'st_activity_external_booking_link', 'type' => 'text', 'std' => "", 'condition' => 'st_activity_external_booking:is(on)', 'desc' => "<em>" . __('Notice: Must be http://...', ST_TEXTDOMAIN) . "</em>"), array('id' => 'deposit_payment_status', 'label' => __("Deposit payment options", ST_TEXTDOMAIN), 'desc' => __('You can select <code>Disallow Deposit</code>, <code>Deposit by percent</code>, <code>Deposit by amount</code>'), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Disallow Deposit', ST_TEXTDOMAIN)), array('value' => 'percent', 'label' => __('Deposit by percent', ST_TEXTDOMAIN)), array('value' => 'amount', 'label' => __('Deposit by amount', ST_TEXTDOMAIN)))), array('label' => __('Deposit payment amount', ST_TEXTDOMAIN), 'desc' => __('Leave empty for disallow deposit payment', ST_TEXTDOMAIN), 'id' => 'deposit_payment_amount', 'type' => 'text', 'condition' => 'deposit_payment_status:not()'))); $data_paypment = STPaymentGateways::get_payment_gateways(); if (!empty($data_paypment) and is_array($data_paypment)) { $this->metabox[0]['fields'][] = array('label' => __('Payment', ST_TEXTDOMAIN), 'id' => 'payment_detail_tab', 'type' => 'tab'); foreach ($data_paypment as $k => $v) { $this->metabox[0]['fields'][] = array('label' => $v->get_name(), 'id' => 'is_meta_payment_gateway_' . $k, 'type' => 'on-off', 'desc' => $v->get_name(), 'std' => 'on'); } } $custom_field = st()->get_option('st_activity_unlimited_custom_field'); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
</div> <div class="st_msg"><?php echo STUser_f::get_msg_html($validator->error('room_parent'), 'danger'); ?> </div> </div> <div class="col-md-6"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Room Rental Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('rental_room'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout"> <?php $st_custom_layout = STInput::request('st_custom_layout'); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>
/** * * * @since 1.1.1 * */ function init_metabox() { //Room $this->metabox[] = array('id' => 'room_metabox', 'title' => __('Activity Setting', ST_TEXTDOMAIN), 'pages' => array('st_activity'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('General', ST_TEXTDOMAIN), 'id' => 'room_reneral_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('Set this location is featured', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Custom Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Detail Tour Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('st_activity')), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Gallery style', ST_TEXTDOMAIN), 'id' => 'gallery_style', 'type' => 'select', 'choices' => array(array('value' => 'grid', 'label' => __('Grid', ST_TEXTDOMAIN)), array('value' => 'slider', 'label' => __('Slider', ST_TEXTDOMAIN)))), array('label' => __('Contact email addresses', ST_TEXTDOMAIN), 'id' => 'contact_email', 'type' => 'text', 'desc' => __('Contact email addresses', ST_TEXTDOMAIN)), array('label' => __('Website', ST_TEXTDOMAIN), 'id' => 'contact_web', 'type' => 'text', 'desc' => __('Website', ST_TEXTDOMAIN)), array('label' => __('Phone', ST_TEXTDOMAIN), 'id' => 'contact_phone', 'type' => 'text', 'desc' => __('Phone', ST_TEXTDOMAIN)), array('label' => __('Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Please use youtube or vimeo video', ST_TEXTDOMAIN)), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'location_reneral_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'id_location', 'type' => 'post_select_ajax', 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'address', 'type' => 'text'), array('label' => __('Latitude', ST_TEXTDOMAIN), 'id' => 'map_lat', 'type' => 'text', 'desc' => __('Latitude <a href="http://www.latlong.net/" target="_blank">Get here</a>', ST_TEXTDOMAIN)), array('label' => __('Longitude', ST_TEXTDOMAIN), 'id' => 'map_lng', 'type' => 'text', 'desc' => __('Longitude', ST_TEXTDOMAIN)), array('label' => __('Map Zoom', ST_TEXTDOMAIN), 'id' => 'map_zoom', 'type' => 'text', 'desc' => __('Map Zoom', ST_TEXTDOMAIN), 'std' => 13), array('label' => __('Info setting', ST_TEXTDOMAIN), 'id' => 'activity_time_number_tab', 'type' => 'tab'), array('label' => __('Check In', ST_TEXTDOMAIN), 'id' => 'check_in', 'type' => 'date_picker'), array('label' => __('Check Out', ST_TEXTDOMAIN), 'id' => 'check_out', 'type' => 'date_picker'), array('label' => __('Activity Time', ST_TEXTDOMAIN), 'id' => 'activity-time', 'type' => 'text', 'desc' => __('The departure time of an activity', ST_TEXTDOMAIN)), array('label' => __('Duration', ST_TEXTDOMAIN), 'id' => 'duration', 'type' => 'text', 'desc' => __('The total time to take each activity package', ST_TEXTDOMAIN)), array('label' => __('Venue Facilities', ST_TEXTDOMAIN), 'id' => 'venue-facilities', 'type' => 'text', 'desc' => __('The facilities that customer may experience during activities', ST_TEXTDOMAIN)), array('label' => __('Price setting', ST_TEXTDOMAIN), 'id' => 'price_number_tab', 'type' => 'tab'), array('label' => __('Type Price', ST_TEXTDOMAIN), 'id' => 'type_price', 'type' => 'select', 'desc' => __('Type Price', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'activity_price', 'label' => __('Price / Activity', ST_TEXTDOMAIN)), array('value' => 'people_price', 'label' => __('Price / Person', ST_TEXTDOMAIN)))), array('label' => sprintf(__('Price (%s)', ST_TEXTDOMAIN), TravelHelper::get_default_currency('symbol')), 'id' => 'price', 'type' => 'text', 'desc' => __('Price of this Activity', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(activity_price)'), array('label' => __('Adult Price', ST_TEXTDOMAIN), 'id' => 'adult_price', 'type' => 'text', 'desc' => __('Price per Adult', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(people_price)'), array('label' => __('Child Price', ST_TEXTDOMAIN), 'id' => 'child_price', 'type' => 'text', 'desc' => __('Price per Child', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(people_price)'), array('label' => __('Discount', ST_TEXTDOMAIN), 'desc' => __('Discount', ST_TEXTDOMAIN), 'id' => 'discount', 'type' => 'text', 'std' => 0), array('label' => __('Sale Schedule', ST_TEXTDOMAIN), 'id' => 'is_sale_schedule', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Sale Price Date From', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date From', ST_TEXTDOMAIN), 'id' => 'sale_price_from', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Sale Price Date To', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date To', ST_TEXTDOMAIN), 'id' => 'sale_price_to', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Best Price Guarantee', ST_TEXTDOMAIN), 'id' => 'best-price-guarantee', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Best Price Guarantee Text', ST_TEXTDOMAIN), 'id' => 'best-price-guarantee-text', 'type' => 'textarea', 'rows' => '2', 'condition' => 'best-price-guarantee:is(on)'), array('label' => __('Activity external booking', ST_TEXTDOMAIN), 'id' => 'st_activity_external_booking', 'type' => 'on-off', 'std' => "off"), array('label' => __('Activity external booking', ST_TEXTDOMAIN), 'id' => 'st_activity_external_booking_link', 'type' => 'text', 'std' => "", 'condition' => 'st_activity_external_booking:is(on)', 'desc' => "<em>" . __('Notice: Must be http://...', ST_TEXTDOMAIN) . "</em>"), array('id' => 'deposit_payment_status', 'label' => __("Deposit payment options", ST_TEXTDOMAIN), 'desc' => __('You can select <code>Disallow Deposit</code>, <code>Deposit by percent</code>, <code>Deposit by amount</code>'), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Disallow Deposit', ST_TEXTDOMAIN)), array('value' => 'percent', 'label' => __('Deposit by percent', ST_TEXTDOMAIN)), array('value' => 'amount', 'label' => __('Deposit by amount', ST_TEXTDOMAIN)))), array('label' => __('Deposit payment amount', ST_TEXTDOMAIN), 'desc' => __('Leave empty for disallow deposit payment', ST_TEXTDOMAIN), 'id' => 'deposit_payment_amount', 'type' => 'text', 'condition' => 'deposit_payment_status:not()'))); $data_paypment = STPaymentGateways::$_payment_gateways; if (!empty($data_paypment) and is_array($data_paypment)) { $this->metabox[0]['fields'][] = array('label' => __('Payment', ST_TEXTDOMAIN), 'id' => 'payment_detail_tab', 'type' => 'tab'); foreach ($data_paypment as $k => $v) { $this->metabox[0]['fields'][] = array('label' => $v->get_name(), 'id' => 'is_meta_payment_gateway_' . $k, 'type' => 'on-off', 'desc' => $v->get_name(), 'std' => 'on'); } } $custom_field = st()->get_option('st_activity_unlimited_custom_field'); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
echo STUser_f::get_msg_html($validator->error('taxonomy[]'), 'danger'); ?> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Tour Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('st_tours'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout" <?php $st_custom_layout = get_post_meta($post_id, 'st_custom_layout', true); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>
/** *@since 1.1.3 **/ public function init_metabox() { $this->metabox[] = array('id' => 'rental_room_metabox', 'title' => __('Room Setting', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('rental_room'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('General', ST_TEXTDOMAIN), 'id' => 'room_reneral_tab', 'type' => 'tab'), array('label' => __('Rental', ST_TEXTDOMAIN), 'id' => 'room_parent', 'type' => 'post_select_ajax', 'desc' => __('Choose the rental that the room belongs to', ST_TEXTDOMAIN), 'post_type' => 'st_rental', 'placeholder' => __('Search for a Rental', ST_TEXTDOMAIN)), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Rental Room Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Rental Room Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('rental_room')), array('label' => __('Room Facility', ST_TEXTDOMAIN), 'id' => 'rental_facility', 'type' => 'tab'), array('label' => __('No. Adults', ST_TEXTDOMAIN), 'id' => 'adult_number', 'type' => 'text', 'desc' => __('Number of Adults in room', ST_TEXTDOMAIN), 'std' => '1'), array('label' => __('No. Children', ST_TEXTDOMAIN), 'id' => 'children_number', 'type' => 'text', 'desc' => __('Number of Children in room', ST_TEXTDOMAIN), 'std' => '0'), array('label' => __('No. Beds', ST_TEXTDOMAIN), 'id' => 'bed_number', 'type' => 'text', 'desc' => __('Number of Beds in room', ST_TEXTDOMAIN), 'std' => '0'), array('label' => __('Room footage (square feet)', ST_TEXTDOMAIN), 'desc' => __('Room footage (square feet)', ST_TEXTDOMAIN), 'id' => 'room_footage', 'type' => 'text'), array('label' => __('Add a custom facility', ST_TEXTDOMAIN), 'id' => 'add_new_facility', 'type' => 'list-item', 'settings' => array(array('id' => 'value', 'type' => 'text', 'std' => '', 'label' => __('Value', ST_TEXTDOMAIN)), array('id' => 'facility_icon', 'type' => 'text', 'std' => '', 'label' => __('Icon', ST_TEXTDOMAIN), 'desc' => __('Support: fonticon <code>(eg: fa-facebook)</code>', ST_TEXTDOMAIN)))), array('label' => __('Description', ST_TEXTDOMAIN), 'id' => 'room_description', 'type' => 'textarea', 'std' => ''))); parent::register_metabox($this->metabox); }
echo STUser_f::get_msg_html($validator->error('taxonomy[]'), 'danger'); ?> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Holiday Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('st_holidays'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout"> <?php $st_custom_layout = STInput::request('st_custom_layout'); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>
<?php /** * Author : SmoothThemes */ do_action('st_theme_start'); get_header(); /** * WARNING : be careful when you change this file. * load layout file. */ $GLOBALS['st_template_file_name'] = st_get_tpl_file_name(); get_template_part('templates/layout/' . st_get_layout()); get_footer(); do_action('st_theme_end');
st_the_language('user_create_car_add_features'); ?> </button> <br> </div> </div> <div class="col-md-6"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Car Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('st_cars'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout"> <?php $st_custom_layout = get_post_meta($post_id, 'st_custom_layout', true); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>
<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Custom option theme option * * Created by ShineTheme * */ if (!class_exists('TravelHelper')) { return; } $custom_settings = array('sections' => array(array('id' => 'option_general', 'title' => __('<i class="fa fa-tachometer"></i> General Options', ST_TEXTDOMAIN)), array('id' => 'option_bc', 'title' => __('<i class="fa fa-tachometer"></i> Breadcrumb Options', ST_TEXTDOMAIN)), array('id' => 'option_style', 'title' => __('<i class="fa fa-paint-brush"></i> Styling Options', ST_TEXTDOMAIN)), array('id' => 'option_featured', 'title' => __('<i class="fa fa-flag-checkered"></i> Featured Options', ST_TEXTDOMAIN)), array('id' => 'option_blog', 'title' => __('<i class="fa fa-bold"></i> Blog Options', ST_TEXTDOMAIN)), array('id' => 'option_page', 'title' => __('<i class="fa fa-file-text"></i> Page Options', ST_TEXTDOMAIN)), array('id' => 'option_booking', 'title' => __('<i class="fa fa-book"></i> Booking Options', ST_TEXTDOMAIN)), array('id' => 'option_tax', 'title' => __('<i class="fa fa-exchange"></i> Tax Options', ST_TEXTDOMAIN)), array('id' => 'option_review', 'title' => __('<i class="fa fa-comments-o"></i> Review Options', ST_TEXTDOMAIN)), array('id' => 'option_hotel', 'title' => __('<i class="fa fa-building"></i> Hotel Options', ST_TEXTDOMAIN)), array('id' => 'option_rental', 'title' => __('<i class="fa fa-home"></i> Rental Options', ST_TEXTDOMAIN)), array('id' => 'option_car', 'title' => __('<i class="fa fa-car"></i> Car Options', ST_TEXTDOMAIN)), array('id' => 'option_activity_tour', 'title' => __('<i class="fa fa-suitcase"></i> Tour Options', ST_TEXTDOMAIN)), array('id' => 'option_activity', 'title' => __('<i class="fa fa-ticket"></i> Activity Options', ST_TEXTDOMAIN)), array('id' => 'option_partner', 'title' => __('<i class="fa fa-users"></i> Partner Options', ST_TEXTDOMAIN)), array('id' => 'option_search', 'title' => __('<i class="fa fa-search"></i> Search Options', ST_TEXTDOMAIN)), array('id' => 'option_email', 'title' => __('<i class="fa fa-envelope"></i> Email Options', ST_TEXTDOMAIN)), array('id' => 'option_social', 'title' => __('<i class="fa fa-facebook-official"></i> Social Options', ST_TEXTDOMAIN)), array('id' => 'option_404', 'title' => __('<i class="fa fa-exclamation-triangle"></i> 404 Options', ST_TEXTDOMAIN)), array('id' => 'option_shop', 'title' => __('<i class="fa fa-shopping-cart"></i> Shop Options', ST_TEXTDOMAIN)), array('id' => 'option_advance', 'title' => __('<i class="fa fa-cogs"></i> Advance Options', ST_TEXTDOMAIN))), 'settings' => array(array('id' => 'st_text_featured', 'label' => __('Text Featured', ST_TEXTDOMAIN), 'desc' => 'Text Featured', 'type' => 'text', 'section' => 'option_featured', 'class' => '', 'std' => 'Featured'), array('id' => 'st_text_featured_color', 'label' => __('Text Color', ST_TEXTDOMAIN), 'desc' => 'Text Color', 'type' => 'colorpicker', 'section' => 'option_featured', 'class' => '', 'std' => '#fff'), array('id' => 'st_text_featured_bg', 'label' => __('Background color', ST_TEXTDOMAIN), 'desc' => 'Background color', 'type' => 'colorpicker', 'section' => 'option_featured', 'class' => '', 'std' => '#19A1E5'), array('id' => 'gen_enable_smscroll', 'label' => __('Enable Nice Scroll', ST_TEXTDOMAIN), 'desc' => __('This allows you to turn on or off <em>Nice Scroll Effect</em>', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'off'), array('id' => 'gen_enable_sticky_menu', 'label' => __('Enable Sticky Menu', ST_TEXTDOMAIN), 'desc' => __('This allows you to turn on or off <em>Sticky Menu Feature</em>', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'off'), array('id' => 'favicon', 'label' => __('Favicon', ST_TEXTDOMAIN), 'desc' => __('This allows you to change favicon of your website', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/favicon.png'), array('id' => 'logo', 'label' => __('Logo', ST_TEXTDOMAIN), 'desc' => __('This allows you to change logo', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/logo.png'), array('id' => 'logo_retina', 'label' => __('Logo Retina', ST_TEXTDOMAIN), 'desc' => __('Note: You MUST re-name Logo Retina to logo-name@2x.ext-name. Example:<br> Logo is: <em>my-logo.jpg</em><br>Logo Retina must be: <em>my-logo@2x.jpg</em> ', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_general', 'std' => get_template_directory_uri() . '/img/logo@2x.png'), array('id' => 'st_seo_option', 'label' => __('SEO options', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'type' => 'on-off', 'section' => 'option_general', 'class' => ''), array('id' => 'st_seo_title', 'label' => __('SEO Title', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'type' => 'text', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'st_seo_desc', 'label' => __('SEO Description', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'rows' => '5', 'type' => 'textarea-simple', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'st_seo_keywords', 'label' => __('SEO Keywords', ST_TEXTDOMAIN), 'desc' => '', 'std' => '', 'rows' => '5', 'type' => 'textarea-simple', 'section' => 'option_general', 'class' => '', 'condition' => 'st_seo_option:is(on)'), array('id' => 'footer_template', 'label' => __('Page for footer', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_general'), array('id' => 'enable_user_online_noti', 'label' => __('Enable User Online Notification', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'enable_last_booking_noti', 'label' => __('Enable Last Booking Notification', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'enable_user_nav', 'label' => __('Enable User Nav', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_general', 'std' => 'on'), array('id' => 'noti_position', 'label' => __('Notification Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_general', 'std' => 'topRight', 'choices' => array(array('label' => __('Top Right', ST_TEXTDOMAIN), 'value' => 'topRight'), array('label' => __('Top Left', ST_TEXTDOMAIN), 'value' => 'topLeft'), array('label' => __('Bottom Right', ST_TEXTDOMAIN), 'value' => 'bottomRight'), array('label' => __('Bottom Left', ST_TEXTDOMAIN), 'value' => 'bottomLeft'))), array('id' => 'st_weather_temp_unit', 'label' => __('Weather Temp Unit', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_general', 'std' => 'c', 'choices' => array(array('label' => __('Fahrenheit (f)', ST_TEXTDOMAIN), 'value' => 'f'), array('label' => __('Celsius (c)', ST_TEXTDOMAIN), 'value' => 'c'), array('label' => __('Kelvin (k)', ST_TEXTDOMAIN), 'value' => 'k'))), array('id' => 'list_disabled_feature', 'label' => __('Disable Theme Service', ST_TEXTDOMAIN), 'type' => 'checkbox', 'section' => 'option_general', 'choices' => array(array('label' => __('Hotel', ST_TEXTDOMAIN), 'value' => 'st_hotel'), array('label' => __('Car', ST_TEXTDOMAIN), 'value' => 'st_cars'), array('label' => __('Rental', ST_TEXTDOMAIN), 'value' => 'st_rental'), array('label' => __('Tour', ST_TEXTDOMAIN), 'value' => 'st_tours'), array('label' => __('Activity', ST_TEXTDOMAIN), 'value' => 'st_activity'), array('label' => __('Food', ST_TEXTDOMAIN), 'value' => 'st_food'))), array('id' => 'tax_enable', 'label' => __('Enable Tax', ST_TEXTDOMAIN), 'desc' => __('Enable tax calculations', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_tax', 'std' => 'off'), array('id' => 'st_tax_include_enable', 'label' => __('Include tax in listing page', ST_TEXTDOMAIN), 'desc' => __('Include tax in listing page', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_tax', 'std' => 'off'), array('id' => 'tax_value', 'label' => __('Tax percentage', ST_TEXTDOMAIN), 'desc' => __('Tax percentage', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'section' => 'option_tax', 'min_max_step' => '0,100,1', 'condition' => 'tax_enable:is(on)', 'std' => 10), array('id' => 'review_need_booked', 'label' => __('Only Booked User Can Review', ST_TEXTDOMAIN), 'desc' => __('<em>ON:</em> Only booked user can review<br><em>OFF:</em>Allow users to add a review where they have not booked', ST_TEXTDOMAIN), 'section' => 'option_review', 'type' => 'on-off', 'std' => 'on'), array('id' => 'review_without_login', 'label' => __('Write reviews without logging in', ST_TEXTDOMAIN), 'desc' => __('<em>ON:</em> Enable review without logging in <br><em>OFF:Disble review without logging in</em>', ST_TEXTDOMAIN), 'section' => 'option_review', 'type' => 'on-off', 'std' => 'off'), array('id' => 'blog_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'desc' => __('You can choose No sidebar, Left Sidebar and Right Sidebar', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_blog', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'right'), array('id' => 'blog_sidebar_id', 'label' => __('Widget Area', ST_TEXTDOMAIN), 'desc' => __('You can choose from the list', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_blog', 'std' => 'blog-sidebar'), array('id' => 'page_my_account_dashboard', 'label' => __('My account dashboard page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_redirect_to_after_login', 'label' => __('Redirect to after login', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_redirect_to_after_logout', 'label' => __('Redirect to after logout', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_user_login', 'label' => __('User Login', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_checkout', 'label' => __('Checkout Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_payment_success', 'label' => __('Payment Success Page', ST_TEXTDOMAIN), 'desc' => __('Payment Success or Thank you page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_order_confirm', 'label' => __('Order Confirm Page', ST_TEXTDOMAIN), 'desc' => __('Order Confirm Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'page_terms_conditions', 'label' => __('Terms and Conditions Page', ST_TEXTDOMAIN), 'desc' => __('Terms and Conditions Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_page'), array('id' => 'right_to_left', 'label' => __('Right to left', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_style', 'output' => '', 'std' => 'off'), array('id' => 'header_transparent', 'label' => __('Header Transparent', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_style', 'output' => '', 'std' => 'off'), array('id' => 'typography', 'label' => __('Typography', ST_TEXTDOMAIN), 'type' => 'typography', 'section' => 'option_style', 'output' => 'body'), array('id' => 'google_fonts', 'label' => __('Google Fonts', ST_TEXTDOMAIN), 'type' => 'google-fonts', 'section' => 'option_style'), array('id' => 'star_color', 'label' => __('Star Color', ST_TEXTDOMAIN), 'desc' => __('Star Color', ST_TEXTDOMAIN), 'type' => 'colorpicker', 'section' => 'option_style'), array('id' => 'heading_fonts', 'label' => __('Heading fonts', ST_TEXTDOMAIN), 'type' => 'typography', 'section' => 'option_style', 'output' => 'h1,h2,h3,h4,h5,.text-hero'), array('id' => 'style_layout', 'label' => __('Layout', ST_TEXTDOMAIN), 'desc' => __('You can choose Wide or Boxed layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_style', 'choices' => array(array('value' => 'wide', 'label' => __('Wide', ST_TEXTDOMAIN)), array('value' => 'boxed', 'label' => __('Boxed', ST_TEXTDOMAIN)))), array('id' => 'body_background', 'label' => __('Body Background', ST_TEXTDOMAIN), 'desc' => __('Body Background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => 'body'), array('id' => 'main_wrap_background', 'label' => __('Main wrap background', ST_TEXTDOMAIN), 'desc' => __('Main wrap background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => '.global-wrap'), array('id' => 'header_background', 'label' => __('Header background', ST_TEXTDOMAIN), 'desc' => __('Header Background', ST_TEXTDOMAIN), 'type' => 'background', 'section' => 'option_style', 'output' => '.header-top'), array('id' => 'style_default_scheme', 'label' => __('Default Color Scheme', ST_TEXTDOMAIN), 'desc' => __('Select Default Color Scheme or choose your own main color bellow', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_style', 'output' => '', 'std' => '', 'choices' => array(array('label' => '-- Please Select ---', 'value' => ''), array('label' => 'Bright Turquoise', 'value' => '#0EBCF2'), array('label' => 'Turkish Rose', 'value' => '#B66672'), array('label' => 'Salem', 'value' => '#12A641'), array('label' => 'Hippie Blue', 'value' => '#4F96B6'), array('label' => 'Mandy', 'value' => '#E45E66'), array('label' => 'Green Smoke', 'value' => '#96AA66'), array('label' => 'Horizon', 'value' => '#5B84AA'), array('label' => 'Cerise', 'value' => '#CA2AC6'), array('label' => 'Brick red', 'value' => '#cf315a'), array('label' => 'De-York', 'value' => '#74C683'), array('label' => 'Shamrock', 'value' => '#30BBB1'), array('label' => 'Studio', 'value' => '#7646B8'), array('label' => 'Leather', 'value' => '#966650'), array('label' => 'Denim', 'value' => '#1A5AE4'), array('label' => 'Scarlet', 'value' => '#FF1D13'))), array('id' => 'main_color', 'label' => __('Main Color', ST_TEXTDOMAIN), 'desc' => __('Choose your theme\'s main color', ST_TEXTDOMAIN), 'type' => 'colorpicker', 'section' => 'option_style', 'std' => '#ed8323'), array('id' => 'custom_css', 'label' => __('Custom CSS', ST_TEXTDOMAIN), 'type' => 'css', 'section' => 'option_style'), array('id' => 'view_star_review', 'label' => __('Enable Hotel Stars or Hotel Review.', ST_TEXTDOMAIN), 'desc' => '', 'type' => 'select', 'section' => 'option_advance', 'choices' => array(array('label' => __('Hotel Stars', ST_TEXTDOMAIN), 'value' => 'star'), array('label' => __('Hotel Reviews', ST_TEXTDOMAIN), 'value' => 'review'))), array('id' => 'datetime_format', 'label' => __('Date Format', ST_TEXTDOMAIN), 'type' => 'text', 'std' => '{mm}/{dd}/{yyyy}', 'section' => 'option_advance', 'desc' => __('The date format, combination of d, dd, D, DD, m, mm, M, MM, yy, yyyy. It is surrounded by <code>\'{}\'</code>. Ex: {dd}/{mm}/{yyyy}. <ul> <li><code>d, dd</code>: Numeric date, no leading zero and leading zero, respectively. Eg, 5, 05.</li> <li><code>D, DD</code>: Abbreviated and full weekday names, respectively. Eg, Mon, Monday.</li> <li><code>m, mm</code>: Numeric month, no leading zero and leading zero, respectively. Eg, 7, 07.</li> <li><code>M, MM</code>: Abbreviated and full month names, respectively. Eg, Jan, January</li> <li><code>yy, yyyy:</code> 2- and 4-digit years, respectively. Eg, 12, 2012.</li> </ul> ', ST_TEXTDOMAIN)), array('id' => 'update_weather_by', 'label' => __('Weather updates:', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '1,12,1', 'std' => 12, 'section' => 'option_advance', 'desc' => __('Weather updates (Unit: hour)', ST_TEXTDOMAIN)), array('id' => 'show_price_free', 'label' => __('Show price when accommodation is free', ST_TEXTDOMAIN), 'type' => 'on-off', 'desc' => __('Price is not shown when accommodation is free', ST_TEXTDOMAIN), 'section' => 'option_advance', 'std' => 'off'), array('id' => 'adv_compress_html', 'label' => __('Compress HTML', ST_TEXTDOMAIN), 'desc' => __('This allows you to compress HTML code.', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_advance', 'std' => 'off'), array('id' => 'adv_before_body_content', 'label' => __('Before Body Content', ST_TEXTDOMAIN), 'desc' => sprintf(__('Right after the opening %s tag.', ST_TEXTDOMAIN), esc_html('<body>')), 'type' => 'textarea-simple', 'section' => 'option_advance'), array('id' => 'edv_enable_demo_mode', 'label' => __('Enable Demo Mode', ST_TEXTDOMAIN), 'desc' => __('Do some magical', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_advance', 'std' => 'off'), array('id' => 'edv_share_code', 'label' => __('Custom Share Code', ST_TEXTDOMAIN), 'desc' => __('You you want change the share code in single item. Change this<br><code>[__post_permalink__]</code> for Permalink<br><code>[__post_title__]</code> for Title', ST_TEXTDOMAIN), 'type' => 'textarea-simple', 'section' => 'option_advance', 'std' => '<li><a href="https://www.facebook.com/sharer/sharer.php?u=[__post_permalink__]&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' => 'use_woocommerce_for_booking', 'label' => __('Use Woocomerce for Booking', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_booking'), array('id' => 'booking_modal', 'label' => __('Booking with Modal', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_booking', 'condition' => 'use_woocommerce_for_booking:is(off)'), array('id' => 'booking_enable_captcha', 'label' => __('Booking Enable Captcha', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_booking'), array('id' => 'booking_card_accepted', 'label' => __('Card Accepted', ST_TEXTDOMAIN), 'desc' => __('Card Accepted', ST_TEXTDOMAIN), 'type' => 'list-item', 'settings' => array(array('id' => 'image', 'label' => __('Image', ST_TEXTDOMAIN), 'desc' => __('Image', ST_TEXTDOMAIN), 'type' => 'upload')), 'std' => array(array('title' => 'Master Card', 'image' => get_template_directory_uri() . '/img/card/mastercard.png'), array('title' => 'JCB', 'image' => get_template_directory_uri() . '/img/card/jcb.png'), array('title' => 'Union Pay', 'image' => get_template_directory_uri() . '/img/card/unionpay.png'), array('title' => 'VISA', 'image' => get_template_directory_uri() . '/img/card/visa.png'), array('title' => 'American Express', 'image' => get_template_directory_uri() . '/img/card/americanexpress.png')), 'section' => 'option_booking'), array('id' => 'booking_currency', 'label' => __('Currency List', ST_TEXTDOMAIN), 'desc' => __('This allows you to add currency to your website', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_booking', 'settings' => array(array('id' => 'name', 'label' => __('Currency Name', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => TravelHelper::ot_all_currency()), array('id' => 'symbol', 'label' => __('Currency Symbol', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'rate', 'label' => __('Exchange rate', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and', 'desc' => __('Exchange rate vs Primary Currency', ST_TEXTDOMAIN))), 'std' => array(array('title' => 'USD', 'name' => 'USD', 'symbol' => '$', 'rate' => 1), array('title' => 'EUR', 'name' => 'EUR', 'symbol' => '€', 'rate' => 0.7964909999999999), array('title' => 'GBP', 'name' => 'GBP', 'symbol' => '£', 'rate' => 0.636169))), array('id' => 'booking_primary_currency', 'label' => __('Primary Currency', ST_TEXTDOMAIN), 'desc' => __('This allows you to set Primary Currency to your website', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_booking', 'choices' => TravelHelper::get_currency(true), 'std' => 'USD'), array('id' => 'booking_currency_pos', 'label' => __('Currency Position', ST_TEXTDOMAIN), 'desc' => __('This controls the position of the currency symbol.<br>Ex: $400 or 400 $', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_booking', 'choices' => array(array('value' => 'left', 'label' => __('Left (£99.99)', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right (99.99£)', ST_TEXTDOMAIN)), array('value' => 'left_space', 'label' => __('Left with space (£ 99.99)', ST_TEXTDOMAIN)), array('value' => 'right_space', 'label' => __('Right with space (99.99 £)', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'thousand_separator', 'label' => __('Thousand Separator', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_booking', 'std' => '.', 'desc' => __('Optional. Specifies what string to use for thousands separator.', ST_TEXTDOMAIN)), array('id' => 'decimal_separator', 'label' => __('Decimal Separator', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_booking', 'std' => ',', 'desc' => __('Optional. Specifies what string to use for decimal point', ST_TEXTDOMAIN)), array('id' => 'booking_currency_precision', 'label' => __('Currency decimal', ST_TEXTDOMAIN), 'desc' => __('Sets the number of decimal points.', ST_TEXTDOMAIN), 'section' => 'option_booking', 'type' => 'numeric-slider', 'min_max_step' => '0,5,1', 'std' => 2), array('id' => 'is_guest_booking', 'label' => __('Turn off Guest Booking', ST_TEXTDOMAIN), 'desc' => __('Turn off Guest Booking.', ST_TEXTDOMAIN), 'section' => 'option_booking', 'type' => 'on-off', 'std' => 'off'), array('id' => 'hotel_show_min_price', 'label' => __("Which Price is showing in listing page", ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => 'avg_price', 'label' => __('Avg Price', ST_TEXTDOMAIN)), array('value' => 'min_price', 'label' => __('Min Price', ST_TEXTDOMAIN))), 'section' => 'option_hotel'), array('id' => 'hotel_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_hotel'), array('id' => 'hotel_posts_per_page', 'label' => __('Posts Per Page', ST_TEXTDOMAIN), 'desc' => __('Posts Per Page', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '1,50,1', 'section' => 'option_hotel', 'std' => '12'), array('id' => 'hotel_single_layout', 'label' => __('Hotel Detail Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => st_get_layout('st_hotel')), array('id' => 'hotel_search_layout', 'label' => __('Hotel Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => st_get_layout('st_hotel')), array('id' => 'hotel_max_adult', 'label' => __('Max Adult In Room', ST_TEXTDOMAIN), 'desc' => __('Max Adult In Room', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'std' => 14), array('id' => 'hotel_max_child', 'label' => __('Max Child In Room', ST_TEXTDOMAIN), 'desc' => __('Max Child In Room', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'std' => 14), array('id' => 'hotel_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_hotel', 'std' => 'on'), array('id' => 'hotel_review_stats', 'label' => __('Hotel Review Stats', ST_TEXTDOMAIN), 'desc' => __('Hotel Review Stats', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_hotel', 'condition' => 'hotel_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Clearness'), array('title' => 'Room(s)'))), array('id' => 'hotel_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_hotel', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'hotel_sidebar_area', 'label' => __('Sidebar Area', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_hotel'), array('id' => 'is_featured_search_hotel', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_hotel'), array('id' => 'hotel_search_fields', 'label' => __('Hotel Search Fields', ST_TEXTDOMAIN), 'desc' => __('Hotel Search Fields', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_hotel', 'std' => array(array('title' => 'Where', 'name' => 'location', 'layout_col' => 4), array('title' => 'Check in', 'name' => 'checkin', 'layout_col' => 2), array('title' => 'Check out', 'name' => 'checkout', 'layout_col' => 2), array('title' => 'Room(s)', 'name' => 'room_num', 'layout_col' => 2), array('title' => 'Adult', 'name' => 'adult', 'layout_col' => 2)), 'settings' => array(array('id' => 'name', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STHotel::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'name:is(taxonomy)', 'operator' => 'or', 'type' => 'select', 'choices' => st_get_post_taxonomy('st_hotel')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on'))), array('id' => 'hotel_nearby_range', 'label' => __('Hotel Nearby Range', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_hotel', 'desc' => __('This allows you to change max range of nearby hotel (in km)', ST_TEXTDOMAIN), 'std' => 10), array('id' => 'hotel_unlimited_custom_field', 'label' => __('Hotel custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_hotel', 'desc' => __('Hotel custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'rental_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_rental'), array('id' => 'rental_single_layout', 'label' => __('Rental Single Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => st_get_layout('st_rental')), array('id' => 'rental_search_layout', 'label' => __('Rental Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => st_get_layout('st_rental')), array('id' => 'rental_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_rental', 'std' => 'on'), array('id' => 'rental_review_stats', 'label' => __('Rental Review Stats', ST_TEXTDOMAIN), 'desc' => __('Rental Review Stats', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_rental', 'condition' => 'rental_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock')), 'std' => array(array('title' => 'Sleep'), array('title' => 'Location'), array('title' => 'Service'), array('title' => 'Clearness'), array('title' => 'Room(s)'))), array('id' => 'rental_sidebar_pos', 'label' => __('Sidebar Position', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_rental', 'choices' => array(array('value' => 'no', 'label' => __('No', ST_TEXTDOMAIN)), array('value' => 'left', 'label' => __('Left', ST_TEXTDOMAIN)), array('value' => 'right', 'label' => __('Right', ST_TEXTDOMAIN))), 'std' => 'left'), array('id' => 'rental_sidebar_area', 'label' => __('Sidebar Area', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_rental', 'std' => 'rental-sidebar'), array('id' => 'is_featured_search_rental', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_rental'), array('id' => 'rental_search_fields', 'label' => __('Rental Search Fields', ST_TEXTDOMAIN), 'desc' => __('Rental Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_rental', 'settings' => array(array('id' => 'name', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => TravelHelper::st_get_field_search('st_rental', 'option_tree')), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Large-box column size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout_col2', 'label' => __('Small-box column size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_rental')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Where are you going?', 'name' => 'location', 'layout_col' => '4', 'layout_col2' => '12'), array('title' => 'Check in', 'name' => 'checkin', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Check out', 'name' => 'checkout', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Room(s)', 'name' => 'room_num', 'layout_col' => '2', 'layout_col2' => '3'), array('title' => 'Adults', 'name' => 'adult', 'layout_col' => '2', 'layout_col2' => '3'))), array('id' => 'rental_unlimited_custom_field', 'label' => __('Rental custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_rental', 'desc' => __('Rental custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'cars_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_car'), array('id' => 'cars_single_layout', 'label' => __('Cars Single Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => st_get_layout('st_cars')), array('id' => 'cars_layout_layout', 'label' => __('Cars Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => st_get_layout('st_cars')), array('id' => 'is_required_country', 'label' => __('Required Pickup and Dropoff in the same country', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car'), array('id' => 'cars_price_unit', 'label' => __('Price Unit', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_car', 'choices' => STCars::get_option_price_unit(), 'std' => 'day'), array('id' => 'booking_days_included', 'label' => __('Booking Days included check-in day', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car'), array('id' => 'is_featured_search_car', 'label' => __('Show featured car in top of search results', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_car'), array('id' => 'car_search_fields', 'label' => __('Car Search Fields', ST_TEXTDOMAIN), 'desc' => __('Car Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'settings' => array(array('id' => 'field_atrribute', 'label' => __('Field Atrribute', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STCars::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col_normal', 'label' => __('Layout Normal size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN)))), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_cars')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Pick-up-From', 'layout_col_normal' => 6, 'field_atrribute' => 'pick-up-form'), array('title' => 'Drop-off To', 'layout_col_normal' => 6, 'field_atrribute' => 'drop-off-to'), array('title' => 'Pick-up Date ,Pick-up Time', 'layout_col_normal' => 6, 'field_atrribute' => 'pick-up-date-time'), array('title' => 'Drop-off Date ,Drop-off Time', 'layout_col_normal' => 6, 'field_atrribute' => 'drop-off-date-time'))), array('id' => 'car_search_fields_box', 'label' => __('Change Location & Date Box', ST_TEXTDOMAIN), 'desc' => __('Search fields in Change Location & Date in single car page', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'settings' => array(array('id' => 'field_atrribute', 'label' => __('Field Atrribute', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STCars::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col_box', 'label' => __('Layout Box size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1/12', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2/12', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3/12', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4/12', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5/12', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6/12', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7/12', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8/12', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9/12', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10/12', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11/12', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12/12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'field_atrribute:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_cars')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Pick-up From', 'layout_col_box' => 6, 'field_atrribute' => 'pick-up-form'), array('title' => 'Drop-off To', 'layout_col_box' => 6, 'field_atrribute' => 'drop-off-to'), array('title' => 'Pick-up Date', 'layout_col_box' => 3, 'field_atrribute' => 'pick-up-date'), array('title' => 'Pick-up Time', 'layout_col_box' => 3, 'field_atrribute' => 'pick-up-time'), array('title' => 'Drop-off Date', 'layout_col_box' => 3, 'field_atrribute' => 'drop-off-date'), array('title' => 'Drop-off Time', 'layout_col_box' => 3, 'field_atrribute' => 'drop-off-time'))), array('id' => 'car_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_car', 'std' => 'on'), array('id' => 'car_review_stats', 'label' => __('Car Review Stats', ST_TEXTDOMAIN), 'desc' => __('Car Review Stats', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_car', 'condition' => 'hotel_review:is(on)', 'settings' => array(array('id' => 'name', 'label' => __('Stat Name', ST_TEXTDOMAIN), 'type' => 'textblock', 'operator' => 'and')), 'std' => array(array('title' => 'stat name 1'), array('title' => 'stat name 2'), array('title' => 'stat name 3'), array('title' => 'stat name 4'), array('title' => 'stat name 5'))), array('id' => 'st_cars_unlimited_custom_field', 'label' => __('Cars custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_car', 'desc' => __('Cars custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'email_from', 'label' => __('Email From Name', ST_TEXTDOMAIN), 'desc' => __('Email From Name', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_email', 'std' => 'Traveler Shinetheme'), array('id' => 'email_from_address', 'label' => __('Email From Address', ST_TEXTDOMAIN), 'desc' => __('Email From Address', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_email', 'std' => '*****@*****.**'), array('id' => 'email_logo', 'label' => __('Logo in Email', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_email', 'desc' => __('Logo in Email', ST_TEXTDOMAIN), 'std' => get_template_directory_uri() . '/img/logo.png'), array('id' => 'enable_email_for_custommer', 'label' => __('Email after booking for custommer', ST_TEXTDOMAIN), 'desc' => __('Email after booking for custommer', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'enable_email_for_admin', 'label' => __('Email after booking for Admin', ST_TEXTDOMAIN), 'desc' => __('Email after booking for Admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'email_admin_address', 'label' => __('Admin Email Address', ST_TEXTDOMAIN), 'desc' => __('Booking information will be sent to here', ST_TEXTDOMAIN), 'type' => 'text', 'condition' => 'enable_email_for_admin:is(on)', 'section' => 'option_email'), array('id' => 'enable_email_for_owner_item', 'label' => __('Email after booking for Owner Item', ST_TEXTDOMAIN), 'desc' => __('Email after booking for Owner Item', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_email'), array('id' => 'tours_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_activity_tour'), array('id' => 'activity_tour_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'std' => 'std'), array('id' => 'tours_layout', 'label' => __('Tours Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_tour', 'choices' => st_get_layout('st_tours')), array('id' => 'tours_search_layout', 'label' => __('Tours Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity_tour', 'choices' => st_get_layout('st_tours')), array('id' => 'tours_similar_tour', 'label' => __('Similar Tour display number ', ST_TEXTDOMAIN), 'type' => 'text', 'section' => 'option_activity_tour', 'std' => '5', 'desc' => __('Similar Tour display number', ST_TEXTDOMAIN)), array('id' => 'activity_tour_check_review_admin', 'label' => __('Review must be approve by admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity_tour', 'condition' => 'activity_tour_review:is(on)'), array('id' => 'is_featured_search_tour', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity_tour'), array('id' => 'is_featured_search_tour', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity_tour'), array('id' => 'activity_tour_search_fields', 'label' => __('Tour Search Fields', ST_TEXTDOMAIN), 'desc' => __('Tour Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_tour', 'settings' => array(array('id' => 'tours_field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STTour::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'tours_field_search:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_tours')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 6, 'layout2_col' => 6, 'tours_field_search' => 'address'), array('title' => 'Departure date', 'layout_col' => 3, 'layout2_col' => 3, 'tours_field_search' => 'check_in'), array('title' => 'Arrival Date', 'layout_col' => 3, 'layout2_col' => 3, 'tours_field_search' => 'check_out'))), array('id' => 'tours_unlimited_custom_field', 'label' => __('Tours custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity_tour', 'desc' => __('Tours custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'activity_search_result_page', 'label' => __('Search Result Page', ST_TEXTDOMAIN), 'type' => 'page-select', 'section' => 'option_activity'), array('id' => 'activity_review', 'label' => __('Enable Review', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_activity', 'std' => 'std'), array('id' => 'activity_layout', 'label' => __('Activity Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity', 'choices' => st_get_layout('st_activity')), array('id' => 'activity_search_layout', 'label' => __('Activity Search Layout', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_activity', 'choices' => st_get_layout('st_activity')), array('id' => 'is_featured_search_activity', 'label' => __('Feature only top search', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'off', 'section' => 'option_activity'), array('id' => 'activity_search_fields', 'label' => __('Activity Search Fields', ST_TEXTDOMAIN), 'desc' => __('Activity Search Fields', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity', 'settings' => array(array('id' => 'activity_field_search', 'label' => __('Field Type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => STActivity::get_search_fields_name()), array('id' => 'placeholder', 'label' => __('Placeholder', ST_TEXTDOMAIN), 'desc' => __('Placeholder', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'layout_col', 'label' => __('Layout 1 size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'layout2_col', 'label' => __('Layout 2 Size', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'std' => 4, 'choices' => array(array('value' => '1', 'label' => __('column 1', ST_TEXTDOMAIN)), array('value' => '2', 'label' => __('column 2', ST_TEXTDOMAIN)), array('value' => '3', 'label' => __('column 3', ST_TEXTDOMAIN)), array('value' => '4', 'label' => __('column 4', ST_TEXTDOMAIN)), array('value' => '5', 'label' => __('column 5', ST_TEXTDOMAIN)), array('value' => '6', 'label' => __('column 6', ST_TEXTDOMAIN)), array('value' => '7', 'label' => __('column 7', ST_TEXTDOMAIN)), array('value' => '8', 'label' => __('column 8', ST_TEXTDOMAIN)), array('value' => '9', 'label' => __('column 9', ST_TEXTDOMAIN)), array('value' => '10', 'label' => __('column 10', ST_TEXTDOMAIN)), array('value' => '11', 'label' => __('column 11', ST_TEXTDOMAIN)), array('value' => '12', 'label' => __('column 12', ST_TEXTDOMAIN))), 'std' => 4), array('id' => 'taxonomy', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'condition' => 'activity_field_search:is(taxonomy)', 'type' => 'select', 'operator' => 'and', 'choices' => st_get_post_taxonomy('st_activity')), array('id' => 'is_required', 'label' => __('Field required', ST_TEXTDOMAIN), 'type' => 'on-off', 'operator' => 'and', 'std' => 'on')), 'std' => array(array('title' => 'Address', 'layout_col' => 3, 'layout2_col' => 6, 'activity_field_search' => 'address'), array('title' => 'From', 'layout_col' => 3, 'layout2_col' => 3, 'activity_field_search' => 'check_in'), array('title' => 'To', 'layout_col' => 3, 'layout2_col' => 3, 'activity_field_search' => 'check_out'))), array('id' => 'st_activity_unlimited_custom_field', 'label' => __('Activity custom field', ST_TEXTDOMAIN), 'type' => 'Slider', 'section' => 'option_activity', 'desc' => __('Activity custom field', ST_TEXTDOMAIN), 'settings' => array(array('id' => 'type_field', 'label' => __('Field type', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => array(array('value' => 'text', 'label' => __('Text flied', ST_TEXTDOMAIN)), array('value' => 'date-picker', 'label' => __('Date flied', ST_TEXTDOMAIN)))), array('id' => 'default_field', 'label' => __('Default', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'))), array('id' => 'partner_enable_feature', 'label' => __('Enable Partner Feature', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'off'), array('id' => 'partner_post_by_admin', 'label' => __('Partner\'s Post must be aprroved by admin', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_partner', 'std' => 'on'), array('id' => 'list_partner', 'label' => __('List Partner', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_partner', 'settings' => array(array('id' => 'id_partner', 'label' => __('Select Partner', ST_TEXTDOMAIN), 'type' => 'select', 'desc' => __('Select Partner', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'hotel', 'label' => __('Hotel Name', ST_TEXTDOMAIN)), array('value' => 'rental', 'label' => __('Rental', ST_TEXTDOMAIN)), array('value' => 'car', 'label' => __('Car', ST_TEXTDOMAIN)), array('value' => 'tour', 'label' => __('Tour', ST_TEXTDOMAIN)), array('value' => 'activity', 'label' => __('Activity', ST_TEXTDOMAIN))))), 'std' => array(array('title' => 'Hotel', 'id_partner' => 'hotel'), array('title' => 'Rental', 'id_partner' => 'rental'), array('title' => 'Car', 'id_partner' => 'car'), array('title' => 'Tour', 'id_partner' => 'tour'), array('title' => 'Activity', 'id_partner' => 'activity'))), array('id' => 'search_enable_preload', 'label' => __('Search enable Preload', ST_TEXTDOMAIN), 'desc' => __('Search enable Preload', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_search', 'std' => 'on'), array('id' => 'search_preload_image', 'label' => __('Search Preload Image', ST_TEXTDOMAIN), 'desc' => __('Search Preload Image', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_search', 'condition' => 'search_enable_preload:is(on)'), array('id' => 'search_results_view', 'label' => __('Search results default view', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('List view or Grid view', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'list', 'label' => __('List view', ST_TEXTDOMAIN)), array('value' => 'grid', 'label' => __('Grid view', ST_TEXTDOMAIN)))), array('id' => 'search_tabs', 'label' => __('Search Tabs:', ST_TEXTDOMAIN), 'desc' => __('Search Tabs on home page', ST_TEXTDOMAIN), 'type' => 'list-item', 'section' => 'option_search', 'settings' => array(array('id' => 'check_tab', 'label' => __('Show tab', ST_TEXTDOMAIN), 'type' => 'on-off'), array('id' => 'tab_icon', 'label' => __('Icon', ST_TEXTDOMAIN), 'type' => 'text', 'desc' => __('This allows you to change icon next to the title', ST_TEXTDOMAIN)), array('id' => 'tab_search_title', 'label' => __('Form Title', ST_TEXTDOMAIN), 'type' => 'text', 'desc' => __('This allows you to change the text above the form', ST_TEXTDOMAIN)), array('id' => 'tab_name', 'label' => __('Choose Tab', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => 'hotel', 'label' => __('Hotel Name', ST_TEXTDOMAIN)), array('value' => 'rental', 'label' => __('Rental', ST_TEXTDOMAIN)), array('value' => 'tour', 'label' => __('Tour', ST_TEXTDOMAIN)), array('value' => 'cars', 'label' => __('Car', ST_TEXTDOMAIN)), array('value' => 'activities', 'label' => __('Activities', ST_TEXTDOMAIN))))), 'std' => array(array('title' => 'Hotel', 'check_tab' => 'on', 'tab_icon' => 'fa-building-o', 'tab_search_title' => 'Search and Save on Hotels', 'tab_name' => 'hotel'), array('title' => 'Cars', 'check_tab' => 'on', 'tab_icon' => 'fa-car', 'tab_search_title' => 'Search for Cheap Rental Cars', 'tab_name' => 'cars'), array('title' => 'Tours', 'check_tab' => 'on', 'tab_icon' => 'fa-flag-o', 'tab_search_title' => 'Tours', 'tab_name' => 'tour'), array('title' => 'Rentals', 'check_tab' => 'on', 'tab_icon' => 'fa-home', 'tab_search_title' => 'Find Your Perfect Home', 'tab_name' => 'rental'), array('title' => 'Activity', 'check_tab' => 'on', 'tab_icon' => 'fa-bolt', 'tab_search_title' => 'Find Your Perfect Activity', 'tab_name' => 'activities'))), array('id' => 'search_header_onoff', 'label' => __('Enable Header Search', ST_TEXTDOMAIN), 'desc' => __('Enable Header Search', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_search', 'std' => 'on'), array('id' => 'search_header_orderby', 'label' => __('Header Search - Order By', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('Header Search - Order By', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => array(array('value' => 'none', 'label' => __('None', ST_TEXTDOMAIN)), array('value' => 'ID', 'label' => __('ID', ST_TEXTDOMAIN)), array('value' => 'author', 'label' => __('Author', ST_TEXTDOMAIN)), array('value' => 'title', 'label' => __('Title', ST_TEXTDOMAIN)), array('value' => 'name', 'label' => __('Name', ST_TEXTDOMAIN)), array('value' => 'date', 'label' => __('Date', ST_TEXTDOMAIN)), array('value' => 'rand', 'label' => __('Random', ST_TEXTDOMAIN)))), array('id' => 'search_header_order', 'label' => __('Header Search - Order', ST_TEXTDOMAIN), 'type' => 'select', 'section' => 'option_search', 'desc' => __('Header Search - Search by', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => array(array('value' => 'ASC', 'label' => __('ASC', ST_TEXTDOMAIN)), array('value' => 'DESC', 'label' => __('DESC', ST_TEXTDOMAIN)))), array('id' => 'search_header_list', 'label' => __('Header Search - Search by', ST_TEXTDOMAIN), 'type' => 'checkbox', 'section' => 'option_search', 'desc' => __('Header Search - Search by', ST_TEXTDOMAIN), 'condition' => 'search_header_onoff:is(on)', 'choices' => get_list_posttype()), array('id' => '404_bg', 'label' => __('404 Background', ST_TEXTDOMAIN), 'type' => 'upload', 'section' => 'option_404'), array('id' => '404_text', 'label' => __('404 Text', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '3', 'section' => 'option_404'), array('id' => 'social_fb_login', 'label' => __('Facebook Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'social_gg_login', 'label' => __('Google Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'social_tw_login', 'label' => __('Twitter Login', ST_TEXTDOMAIN), 'type' => 'on-off', 'std' => 'on', 'section' => 'option_social'), array('id' => 'shop_default_list_view', 'type' => 'select', 'label' => __("Default List View Style", ST_TEXTDOMAIN), 'choices' => array(array('value' => 'grid', 'label' => __('Grid', ST_TEXTDOMAIN)), array('value' => 'list', 'label' => __('List', ST_TEXTDOMAIN))), 'std' => 'grid', 'section' => 'option_shop'), array('id' => 'shop_sidebar_pos', 'label' => __('Shop Archive Sidebar', ST_TEXTDOMAIN), 'desc' => __('Shop Archive Sidebar', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('label' => __('No Sidebar', ST_TEXTDOMAIN), 'value' => 'no'), array('label' => __('Left Sidebar', ST_TEXTDOMAIN), 'value' => 'left'), array('label' => __('Right Sidebar', ST_TEXTDOMAIN), 'value' => 'right')), 'section' => 'option_shop', 'std' => 'left'), array('id' => 'shop_sidebar_id', 'label' => __('Shop Archive Sidebar ID', ST_TEXTDOMAIN), 'desc' => __('Shop Archive Sidebar ID', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_shop', 'std' => 'shop'), array('id' => 'shop_single_sidebar_pos', 'label' => __('Product Sidebar', ST_TEXTDOMAIN), 'desc' => __('Product Sidebar', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('label' => __('No Sidebar', ST_TEXTDOMAIN), 'value' => 'no'), array('label' => __('Left Sidebar', ST_TEXTDOMAIN), 'value' => 'left'), array('label' => __('Right Sidebar', ST_TEXTDOMAIN), 'value' => 'right')), 'section' => 'option_shop', 'std' => 'left'), array('id' => 'shop_single_sidebar_id', 'label' => __('Product Sidebar ID', ST_TEXTDOMAIN), 'desc' => __('Product Sidebar ID', ST_TEXTDOMAIN), 'type' => 'sidebar-select', 'section' => 'option_shop', 'std' => 'shop'), array('id' => 'bc_show_location_url', 'label' => __('Location link to Location Search Page', ST_TEXTDOMAIN), 'déc' => __('Yes for link to Location Search Page, No for link to Location Detail Page', ST_TEXTDOMAIN), 'type' => 'on-off', 'section' => 'option_bc', 'std' => 'on'))); $custom_settings = apply_filters('st_option_tree_settings', $custom_settings);
/** * * @since 1.1.1 * */ function init_metabox() { $this->metabox[] = array('id' => 'hotel_metabox', 'title' => __('Hotel Information', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('st_hotel'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'location_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'multi_location', 'type' => 'list_item_post_type', 'desc' => __('Hotel Location', ST_TEXTDOMAIN), 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'address', 'type' => 'text', 'desc' => __('Hotel Address', ST_TEXTDOMAIN)), array('label' => __('Maps', ST_TEXTDOMAIN), 'id' => 'st_google_map', 'type' => 'bt_gmap', 'desc' => __('Maps', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Hotel Detail', ST_TEXTDOMAIN), 'id' => 'detail_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('This is set as featured', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Hotel Logo', ST_TEXTDOMAIN), 'id' => 'logo', 'type' => 'upload', 'class' => '', 'desc' => __('Upload your hotel logo; Recommend: 260px x 195px', ST_TEXTDOMAIN)), array('label' => __('Card Accepted', ST_TEXTDOMAIN), 'desc' => __('Card Accepted', ST_TEXTDOMAIN), 'id' => 'card_accepted', 'type' => 'checkbox', 'choices' => $this->get_card_accepted_list()), array('label' => __('Custom Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Detail Hotel Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('st_hotel')), array('label' => __('Hotel Email', ST_TEXTDOMAIN), 'id' => 'email', 'type' => 'text', 'desc' => __('Hotel Email Address, this address will received email when have new booking', ST_TEXTDOMAIN)), array('label' => __('Hotel Website', ST_TEXTDOMAIN), 'id' => 'website', 'type' => 'text', 'desc' => __('Hotel Website. Ex: <em>http://domain.com</em>', ST_TEXTDOMAIN)), array('label' => __('Hotel Phone', ST_TEXTDOMAIN), 'id' => 'phone', 'type' => 'text', 'desc' => __('Hotel Phone Number', ST_TEXTDOMAIN)), array('label' => __('Fax Number', ST_TEXTDOMAIN), 'id' => 'fax', 'type' => 'text', 'desc' => __('Hotel Fax Number', ST_TEXTDOMAIN)), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery', 'desc' => __('Pick your own image for this hotel', ST_TEXTDOMAIN)), array('label' => __('Hotel Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Please use youtube or vimeo video', ST_TEXTDOMAIN)), array('label' => __('Star Rating', ST_TEXTDOMAIN), 'desc' => __('Star Rating', ST_TEXTDOMAIN), 'id' => 'hotel_star', 'type' => 'numeric-slider', 'min_max_step' => '0,5,1', 'std' => 0), array('label' => __('Price', ST_TEXTDOMAIN), 'id' => 'sale_number_tab', 'type' => 'tab'), array('label' => __('Auto calculate average price', ST_TEXTDOMAIN), 'id' => 'is_auto_caculate', 'type' => 'on-off', 'desc' => __('Average price is automatically calculated', ST_TEXTDOMAIN), 'std' => 'on'), array('label' => __('Average price', ST_TEXTDOMAIN), 'id' => 'price_avg', 'type' => 'text', 'desc' => __('Average price', ST_TEXTDOMAIN), 'std' => 0, 'conditions' => 'is_auto_caculate:is(on)'), array('label' => __("Min Price", ST_TEXTDOMAIN), 'desc' => __("Min Price", ST_TEXTDOMAIN), 'id' => 'min_price', 'type' => 'text', 'std' => 0), array('label' => __('Check in/out time', ST_TEXTDOMAIN), 'id' => 'check_in_out_time', 'type' => 'tab'), array('label' => __('Allow booking full day', ST_TEXTDOMAIN), 'id' => 'allow_full_day', 'type' => 'on-off', 'std' => 'on', 'desc' => __('Allow hotel is booked full day', ST_TEXTDOMAIN)), array('label' => __('Check in time', ST_TEXTDOMAIN), 'id' => 'check_in_time', 'type' => 'st_timepicker', 'std' => '12:00 pm', 'desc' => __('Check in time', ST_TEXTDOMAIN)), array('label' => __('Check out time', ST_TEXTDOMAIN), 'id' => 'check_out_time', 'type' => 'st_timepicker', 'std' => '12:00 pm', 'desc' => __('Check out time in the next day', ST_TEXTDOMAIN)), array('label' => __('Other Options', ST_TEXTDOMAIN), 'id' => 'hotel_options', 'type' => 'tab'), array('label' => __('Minimum days to book before arrival', ST_TEXTDOMAIN), 'id' => 'hotel_booking_period', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0, 'desc' => __('The time period allowed booking.', ST_TEXTDOMAIN)), array('label' => __('Minimum days to book room', ST_TEXTDOMAIN), 'id' => 'min_book_room', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0, 'desc' => __('The Minium days allowed to book room.', ST_TEXTDOMAIN)), array('label' => __('Hotel policy', ST_TEXTDOMAIN), 'id' => 'hotel_policy_tab', 'type' => 'tab'), array('label' => __('Hotel policy', ST_TEXTDOMAIN), 'id' => 'hotel_policy', 'type' => 'list-item', 'settings' => array(array('label' => __('Policy Description', ST_TEXTDOMAIN), 'id' => 'policy_description', 'type' => 'textarea'))), array('label' => __('Discount Flash', ST_TEXTDOMAIN), 'id' => 'discount_banner_tab', 'type' => 'tab'), array('label' => __('Discount Text', ST_TEXTDOMAIN), 'desc' => __('Discount Text', ST_TEXTDOMAIN), 'id' => 'discount_text', 'type' => 'text'))); $custom_field = st()->get_option('hotel_unlimited_custom_field'); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
/** *@since 1.1.3 **/ public function init_metabox() { $this->metabox[] = array('id' => 'rental_room_metabox', 'title' => __('Room Setting', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('rental_room'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('General', ST_TEXTDOMAIN), 'id' => 'room_reneral_tab', 'type' => 'tab'), array('label' => __('Rental', ST_TEXTDOMAIN), 'id' => 'room_parent', 'type' => 'post_select_ajax', 'desc' => __('Choose the rental that the room belong', ST_TEXTDOMAIN), 'post_type' => 'st_rental', 'placeholder' => __('Search for a Rental', ST_TEXTDOMAIN)), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Rental Room Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Rental Room Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('rental_room')))); parent::register_metabox($this->metabox); }
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);
/** * * * @since 1.1.1 * @update 1.1.2 * */ function init_metabox() { //Room $this->metabox[] = array('id' => 'room_metabox', 'title' => __('Tour Setting', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('st_tours'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('General', ST_TEXTDOMAIN), 'id' => 'room_reneral_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('Set this location is featured', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Custom Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Detail Tour Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('st_tours')), array('label' => __('Gallery', ST_TEXTDOMAIN), 'desc' => __('Select images for tour', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Gallery style', ST_TEXTDOMAIN), 'id' => 'gallery_style', 'type' => 'select', 'choices' => array(array('value' => 'grid', 'label' => __('Grid', ST_TEXTDOMAIN)), array('value' => 'slider', 'label' => __('Slider', ST_TEXTDOMAIN)))), array('label' => __('Contact email addresses', ST_TEXTDOMAIN), 'id' => 'contact_email', 'type' => 'text', 'desc' => __('Contact email addresses', ST_TEXTDOMAIN)), array('label' => __('Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Please use youtube or vimeo video', ST_TEXTDOMAIN)), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'location_reneral_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'id_location', 'type' => 'post_select_ajax', 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'address', 'type' => 'text', 'desc' => __('Address', ST_TEXTDOMAIN)), array('label' => __('Latitude', ST_TEXTDOMAIN), 'id' => 'map_lat', 'type' => 'text', 'desc' => __('Latitude <a href="http://www.latlong.net/" target="_blank">Get here</a>', ST_TEXTDOMAIN)), array('label' => __('Longitude', ST_TEXTDOMAIN), 'id' => 'map_lng', 'type' => 'text', 'desc' => __('Longitude', ST_TEXTDOMAIN)), array('label' => __('Map Zoom', ST_TEXTDOMAIN), 'id' => 'map_zoom', 'type' => 'text', 'desc' => __('Map Zoom', ST_TEXTDOMAIN), 'std' => 13), array('label' => __('Price setting', ST_TEXTDOMAIN), 'id' => 'price_number_tab', 'type' => 'tab'), array('label' => __('Type Price', ST_TEXTDOMAIN), 'id' => 'type_price', 'type' => 'select', 'desc' => __('Type Price', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'tour_price', 'label' => __('Price / Tour', ST_TEXTDOMAIN)), array('value' => 'people_price', 'label' => __('Price / Person', ST_TEXTDOMAIN)))), array('label' => __('Price', ST_TEXTDOMAIN), 'id' => 'price', 'type' => 'text', 'desc' => __('Price of this tour', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(tour_price)'), array('label' => __('Adult Price', ST_TEXTDOMAIN), 'id' => 'adult_price', 'type' => 'text', 'desc' => __('Price per Adult', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(people_price)'), array('label' => __('Fields list discount by Adult number booking', ST_TEXTDOMAIN), 'id' => 'discount_by_adult', 'type' => 'list-item', 'desc' => __('Fields list discount by Adult number booking', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(people_price)', 'settings' => array(array('id' => 'key', 'label' => __('Key number', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'value', 'label' => __('Value percent of discount', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,1'))), array('label' => __('Child Price', ST_TEXTDOMAIN), 'id' => 'child_price', 'type' => 'text', 'desc' => __('Price per Child', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(people_price)'), array('label' => __('Fields list discount by Child number booking', ST_TEXTDOMAIN), 'id' => 'discount_by_child', 'type' => 'list-item', 'desc' => __('Fields list discount by Child number booking', ST_TEXTDOMAIN), 'std' => 0, 'condition' => 'type_price:is(people_price)', 'settings' => array(array('id' => 'key', 'label' => __('Key number', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'value', 'label' => __('Value percent of discount', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,1'))), array('label' => __('Discount by percent', ST_TEXTDOMAIN), 'id' => 'discount', 'type' => 'numeric-slider', 'min_max_step' => '0,100,1', 'desc' => __('Discount of this tour, by percent', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Sale Schedule', ST_TEXTDOMAIN), 'id' => 'is_sale_schedule', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Sale Start Date', ST_TEXTDOMAIN), 'desc' => __('Sale Start Date', ST_TEXTDOMAIN), 'id' => 'sale_price_from', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Sale End Date', ST_TEXTDOMAIN), 'desc' => __('Sale End Date', ST_TEXTDOMAIN), 'id' => 'sale_price_to', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('id' => 'deposit_payment_status', 'label' => __("Deposit payment options", ST_TEXTDOMAIN), 'desc' => __('You can select <code>Disallow Deposit</code>, <code>Deposit by percent</code>, <code>Deposit by amount</code>'), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Disallow Deposit', ST_TEXTDOMAIN)), array('value' => 'percent', 'label' => __('Deposit by percent', ST_TEXTDOMAIN)), array('value' => 'amount', 'label' => __('Deposit by amount', ST_TEXTDOMAIN)))), array('label' => __('Deposit payment amount', ST_TEXTDOMAIN), 'desc' => __('Leave empty for disallow deposit payment', ST_TEXTDOMAIN), 'id' => 'deposit_payment_amount', 'type' => 'text', 'condition' => 'deposit_payment_status:not()'), array('label' => __('Information', ST_TEXTDOMAIN), 'id' => 'st_info_tours_tab', 'type' => 'tab'), array('label' => __('Type Tour', ST_TEXTDOMAIN), 'id' => 'type_tour', 'type' => 'select', 'desc' => __('Type Tour', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'daily_tour', 'label' => __('Daily Tour', ST_TEXTDOMAIN)), array('value' => 'specific_date', 'label' => __('Specific Date', ST_TEXTDOMAIN)))), array('label' => __('Departure date ', ST_TEXTDOMAIN), 'id' => 'check_in', 'type' => 'date_picker', 'condition' => 'type_tour:is(specific_date)', 'desc' => __('Departure date ', ST_TEXTDOMAIN)), array('label' => __('Arrive date', ST_TEXTDOMAIN), 'id' => 'check_out', 'type' => 'date_picker', 'condition' => 'type_tour:is(specific_date)', 'desc' => __('Arrive date', ST_TEXTDOMAIN)), array('label' => __('Duration (days)', ST_TEXTDOMAIN), 'id' => 'duration_day', 'type' => 'text', 'desc' => __('Duration (days)', ST_TEXTDOMAIN), 'std' => '1', 'condition' => 'type_tour:is(daily_tour)'), array('label' => __('Booking Period', ST_TEXTDOMAIN), 'desc' => __('Booking Period', ST_TEXTDOMAIN), 'id' => 'tours_booking_period', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0, 'condition' => 'type_tour:is(daily_tour)'), array('label' => __('Tour external booking', ST_TEXTDOMAIN), 'id' => 'st_tour_external_booking', 'type' => 'on-off', 'std' => "off"), array('label' => __('Tour external booking link ', ST_TEXTDOMAIN), 'id' => 'st_tour_external_booking_link', 'type' => 'text', 'std' => "", 'condition' => 'st_tour_external_booking:is(on)', 'desc' => "<em>" . __('Notice: Must be http://...', ST_TEXTDOMAIN) . "</em>"), array('label' => __('Max number of people', ST_TEXTDOMAIN), 'id' => 'max_people', 'type' => 'text', 'desc' => __('Max number of people', ST_TEXTDOMAIN), 'std' => '1'), array('id' => 'tours_program', 'label' => __("Tour's program ", ST_TEXTDOMAIN), 'type' => 'list-item', 'settings' => array(array('id' => 'desc', 'label' => __('Description', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '5'))))); $data_paypment = STPaymentGateways::$_payment_gateways; if (!empty($data_paypment) and is_array($data_paypment)) { $this->metabox[0]['fields'][] = array('label' => __('Payment', ST_TEXTDOMAIN), 'id' => 'payment_detail_tab', 'type' => 'tab'); foreach ($data_paypment as $k => $v) { $this->metabox[0]['fields'][] = array('label' => $v->get_name(), 'id' => 'is_meta_payment_gateway_' . $k, 'type' => 'on-off', 'desc' => $v->get_name(), 'std' => 'on'); } } $custom_field = st()->get_option('tours_unlimited_custom_field'); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
<div class="st_msg"><?php echo STUser_f::get_msg_html($validator->error('number_room'), 'danger'); ?> </div> </div> </div> <div class="col-md-6 clear"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Room Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('hotel_room'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout"> <?php $st_custom_layout = STInput::request('st_custom_layout'); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>
/** * * * @since 1.1.1 * */ function init_metabox() { $this->metabox[] = array('id' => 'cars_metabox', 'title' => __('Cars Setting', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('st_cars'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'location_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'multi_location', 'type' => 'list_item_post_type', 'desc' => __('Car Location', ST_TEXTDOMAIN), 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'cars_address', 'type' => 'text', 'desc' => __('Address', ST_TEXTDOMAIN)), array('label' => __('Maps', ST_TEXTDOMAIN), 'id' => 'st_google_map', 'type' => 'bt_gmap', 'desc' => __('Maps', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Car Details', ST_TEXTDOMAIN), 'id' => 'room_car_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('This is set as featured', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Detail Car Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Detail Car Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('st_cars')), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Equipment Price List', ST_TEXTDOMAIN), 'desc' => __('Equipment Price List', ST_TEXTDOMAIN), 'id' => 'cars_equipment_list', 'type' => 'list-item', 'settings' => array(array('id' => 'cars_equipment_list_price', 'label' => __('Price', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'price_unit', 'label' => __('Price Unit', ST_TEXTDOMAIN), 'desc' => __('You can choose <code>Fixed Price</code>, <code>Price per Hour</code>, <code>Price per Day</code>', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Fixed Price', ST_TEXTDOMAIN)), array('value' => 'per_hour', 'label' => __('Price per Hour', ST_TEXTDOMAIN)), array('value' => 'per_day', 'label' => __('Price per Day', ST_TEXTDOMAIN)))), array('id' => 'cars_equipment_list_price_max', 'label' => __('Price Max', ST_TEXTDOMAIN), 'type' => 'text', 'condition' => 'price_unit:not()'))), array('label' => __('Features', ST_TEXTDOMAIN), 'desc' => __('Features', ST_TEXTDOMAIN), 'id' => 'cars_equipment_info', 'type' => 'list-item', 'settings' => array(array('id' => 'cars_equipment_taxonomy_id', 'label' => __('Taxonomy', ST_TEXTDOMAIN), 'type' => 'select', 'operator' => 'and', 'choices' => self::$data_term), array('id' => 'cars_equipment_taxonomy_info', 'label' => __('Taxonomy Info', ST_TEXTDOMAIN), 'type' => 'text'))), array('label' => __('Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Please use youtube or vimeo video', ST_TEXTDOMAIN)), array('label' => __('Contact Details', ST_TEXTDOMAIN), 'id' => 'room_contact_tab', 'type' => 'tab'), array('label' => __('Logo', ST_TEXTDOMAIN), 'id' => 'cars_logo', 'type' => 'upload', 'desc' => __('Logo', ST_TEXTDOMAIN)), array('label' => __('Car manufacturer name', ST_TEXTDOMAIN), 'id' => 'cars_name', 'type' => 'text', 'desc' => __('Car manufacturer name', ST_TEXTDOMAIN)), array('label' => __('Email', ST_TEXTDOMAIN), 'id' => 'cars_email', 'type' => 'text', 'desc' => __('E-mail Car Agent, this address will received email when have new booking', ST_TEXTDOMAIN)), array('label' => __('Phone', ST_TEXTDOMAIN), 'id' => 'cars_phone', 'type' => 'text', 'desc' => __('Phone', ST_TEXTDOMAIN)), array('label' => __('About', ST_TEXTDOMAIN), 'desc' => __('About', ST_TEXTDOMAIN), 'id' => 'cars_about', 'type' => 'textarea'), array('label' => __('Price setting', ST_TEXTDOMAIN), 'id' => '_price_car_tab', 'type' => 'tab'), array('label' => sprintf(__('Price (%s)', ST_TEXTDOMAIN), TravelHelper::get_default_currency('symbol')), 'id' => 'cars_price', 'type' => 'text', 'desc' => __('Price', ST_TEXTDOMAIN)), array('label' => __('Custom Price', ST_TEXTDOMAIN), 'id' => 'is_custom_price', 'std' => 'off', 'type' => 'select', 'choices' => array(array('value' => 'price_by_number', 'label' => __('Price by number of day|hour', ST_TEXTDOMAIN)), array('value' => 'price_by_date', 'label' => __('Price by Date', ST_TEXTDOMAIN)))), array('label' => __("Price by Date", ST_TEXTDOMAIN), 'id' => 'st_custom_price_by_date', 'type' => 'st_custom_price', 'desc' => __('Price by Date', ST_TEXTDOMAIN), 'condition' => 'is_custom_price:is(price_by_date)'), array('label' => __("Price by number of day/hour", ST_TEXTDOMAIN), 'id' => 'price_by_number_of_day_hour', 'desc' => __('Price by number of day/hour', ST_TEXTDOMAIN), 'type' => 'list-item', 'condition' => 'is_custom_price:is(price_by_number)', 'settings' => array(array('id' => 'number_start', 'label' => __('Number Start', ST_TEXTDOMAIN), 'type' => 'text', 'operator' => 'and'), array('id' => 'number_end', 'label' => __('Number End', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'price', 'label' => sprintf(__('Price (%s)', ST_TEXTDOMAIN), TravelHelper::get_default_currency('symbol')), 'type' => 'text'))), array('label' => __('Discount', ST_TEXTDOMAIN), 'id' => 'discount', 'type' => 'text', 'desc' => __('%', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Sale Schedule', ST_TEXTDOMAIN), 'id' => 'is_sale_schedule', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Sale Price Date From', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date From', ST_TEXTDOMAIN), 'id' => 'sale_price_from', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Sale Price Date To', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date To', ST_TEXTDOMAIN), 'id' => 'sale_price_to', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Number of car for Rent', ST_TEXTDOMAIN), 'desc' => __('Number of car for Rent', ST_TEXTDOMAIN), 'id' => 'number_car', 'type' => 'text', 'std' => 1), array('id' => 'deposit_payment_status', 'label' => __("Deposit payment options", ST_TEXTDOMAIN), 'desc' => __('You can select <code>Disallow Deposit</code>, <code>Deposit by percent</code>, <code>Deposit by amount</code>'), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Disallow Deposit', ST_TEXTDOMAIN)), array('value' => 'percent', 'label' => __('Deposit by percent', ST_TEXTDOMAIN)), array('value' => 'amount', 'label' => __('Deposit by amount', ST_TEXTDOMAIN)))), array('label' => __('Deposit payment amount', ST_TEXTDOMAIN), 'desc' => __('Leave empty for disallow deposit payment', ST_TEXTDOMAIN), 'id' => 'deposit_payment_amount', 'type' => 'text', 'condition' => 'deposit_payment_status:not()'), array('label' => __('Car Options', ST_TEXTDOMAIN), 'id' => 'cars_options', 'type' => 'tab'), array('label' => __('Minimum days to book before rental', ST_TEXTDOMAIN), 'id' => 'cars_booking_period', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0, 'desc' => __('The time period allowed booking.', ST_TEXTDOMAIN)), st()->get_option('cars_price_unit', 'day') == 'day' ? array('label' => __('Minimum days to book', ST_TEXTDOMAIN), 'id' => 'cars_booking_min_day', 'type' => 'numeric-slider', 'min_max_step' => '0,7,1', 'std' => 0, 'desc' => __('Minimum days to book', ST_TEXTDOMAIN)) : array('label' => __('Minimum hours to book', ST_TEXTDOMAIN), 'id' => 'cars_booking_min_hour', 'type' => 'numeric-slider', 'min_max_step' => '0,168,1', 'std' => 0, 'desc' => __('Minimum hours to book', ST_TEXTDOMAIN)), array('label' => __('Car external booking', ST_TEXTDOMAIN), 'id' => 'st_car_external_booking', 'type' => 'on-off', 'std' => "off"), array('label' => __('Car external booking link', ST_TEXTDOMAIN), 'id' => 'st_car_external_booking_link', 'type' => 'text', 'std' => "", 'condition' => 'st_car_external_booking:is(on)', 'desc' => "<i>" . __("Must be http://") . "</i>"))); $data_paypment = STPaymentGateways::get_payment_gateways(); if (!empty($data_paypment) and is_array($data_paypment)) { $this->metabox[0]['fields'][] = array('label' => __('Payment', ST_TEXTDOMAIN), 'id' => 'payment_detail_tab', 'type' => 'tab'); foreach ($data_paypment as $k => $v) { $this->metabox[0]['fields'][] = array('label' => $v->get_name(), 'id' => 'is_meta_payment_gateway_' . $k, 'type' => 'on-off', 'desc' => $v->get_name(), 'std' => 'on'); } } $custom_field = st()->get_option('st_cars_unlimited_custom_field'); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
echo STUser_f::get_msg_html($validator->error('taxonomy[]'), 'danger'); ?> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Activity Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('st_activity'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout"> <?php $st_custom_layout = get_post_meta($post_id, 'st_custom_layout', true); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>
<?php // fix bug confic with revolution slider if (function_exists('layerslider_enqueue_content_res')) { remove_action('wp_enqueue_scripts', 'layerslider_enqueue_content_res'); add_action('wp_enqueue_scripts', 'layerslider_enqueue_content_res', 36); } do_action('st_theme_start'); get_header(); /** * WARNING : be careful when you change this file. * load layout file. */ $post_id = st_get_shop_page(); $st_page_builder = get_page_builder_options($post_id); $wc_layout = null; if (is_product_category() || is_product_tag()) { $wc_layout = isset($st_page_builder['shop_tax_layout']) ? $st_page_builder['shop_tax_layout'] : null; } elseif (is_product()) { $wc_layout = isset($st_page_builder['shop_single_layout']) ? $st_page_builder['shop_single_layout'] : null; } else { $wc_layout = isset($st_page_builder['layout']) ? $st_page_builder['layout'] : null; } global $woocommerce_loop; $woocommerce_loop['columns'] = apply_filters('loop_shop_columns', 3); // only show 3 column do_action('st_before_layout'); get_template_part('woocommerce/layout/' . st_get_layout($wc_layout)); do_action('st_after_layout'); get_footer(); do_action('st_theme_end');
/** * * @since 1.0.9 * */ function _add_metabox() { $this->metabox[] = array('id' => 'st_location', 'title' => __('Rental Details', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('st_rental'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'location_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'multi_location', 'type' => 'list_item_post_type', 'desc' => __('Rental Location', ST_TEXTDOMAIN), 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'address', 'type' => 'text', 'desc' => __('Rental Address ', ST_TEXTDOMAIN)), array('label' => __('Maps', ST_TEXTDOMAIN), 'id' => 'st_google_map', 'type' => 'bt_gmap', 'desc' => __('Maps', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Rental Information', ST_TEXTDOMAIN), 'id' => 'detail_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('Set this location is featured', ST_TEXTDOMAIN), 'std' => 'off'), array('id' => 'rental_number', 'label' => __('Numbers', ST_TEXTDOMAIN), 'desc' => __('Number of rental available for booking', ST_TEXTDOMAIN), 'type' => 'text', 'std' => '1'), array('id' => 'rental_max_adult', 'label' => __('Max Adults', ST_TEXTDOMAIN), 'desc' => __('Max Adults', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,1', 'std' => 1), array('id' => 'rental_max_children', 'label' => __('Max Children', ST_TEXTDOMAIN), 'desc' => __('Max Children', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,1', 'std' => 1), array('label' => __('Custom Layout', ST_TEXTDOMAIN), 'id' => 'custom_layout', 'post_type' => 'st_layouts', 'type' => 'select', 'choices' => st_get_layout('st_rental')), array('label' => __('Gallery', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery', 'desc' => __('Rental Gallery', ST_TEXTDOMAIN)), array('label' => __('Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Youtube or Video url', ST_TEXTDOMAIN)), array('label' => __('Agent Information', ST_TEXTDOMAIN), 'id' => 'agent_tab', 'type' => 'tab'), array('label' => __('Agent Email', ST_TEXTDOMAIN), 'id' => 'agent_email', 'type' => 'text', 'desc' => __('Agent Email. This email will receive emails notifying new booking', ST_TEXTDOMAIN)), array('label' => __('Agent Website', ST_TEXTDOMAIN), 'id' => 'agent_website', 'type' => 'text', 'desc' => __('Agent Website', ST_TEXTDOMAIN)), array('label' => __('Agent Phone', ST_TEXTDOMAIN), 'id' => 'agent_phone', 'type' => 'text', 'desc' => __('Agent Phone', ST_TEXTDOMAIN)), array('label' => __('Rental Price', ST_TEXTDOMAIN), 'id' => 'price_tab', 'type' => 'tab'), array('label' => sprintf(__('Price (%s)', ST_TEXTDOMAIN), TravelHelper::get_default_currency('symbol')), 'id' => 'price', 'type' => 'text', 'desc' => __('Regular Price', ST_TEXTDOMAIN)), array('label' => __('Extra Price', ST_TEXTDOMAIN), 'id' => 'extra_price', 'type' => 'list-item', 'settings' => array(array('id' => 'extra_name', 'type' => 'text', 'std' => 'extra_', 'label' => __('Name of Item', ST_TEXTDOMAIN)), array('id' => 'extra_max_number', 'type' => 'text', 'std' => '', 'label' => __('Max of Number', ST_TEXTDOMAIN)), array('id' => 'extra_price', 'type' => 'text', 'std' => '', 'label' => __('Price', ST_TEXTDOMAIN), 'desc' => __('per 1 Item', ST_TEXTDOMAIN)))), array('label' => __('Discount Rate', ST_TEXTDOMAIN), 'id' => 'discount_rate', 'type' => 'text', 'desc' => __('Discount Rate By %', ST_TEXTDOMAIN)), array('label' => __('Sale Schedule', ST_TEXTDOMAIN), 'id' => 'is_sale_schedule', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Sale Price Date From', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date From', ST_TEXTDOMAIN), 'id' => 'sale_price_from', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Sale Price Date To', ST_TEXTDOMAIN), 'desc' => __('Sale Price Date To', ST_TEXTDOMAIN), 'id' => 'sale_price_to', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('id' => 'deposit_payment_status', 'label' => __("Deposit payment options", ST_TEXTDOMAIN), 'desc' => __('You can select <code>Disallow Deposit</code>, <code>Deposit by percent</code>, <code>Deposit by amount</code>'), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Disallow Deposit', ST_TEXTDOMAIN)), array('value' => 'percent', 'label' => __('Deposit by percent', ST_TEXTDOMAIN)), array('value' => 'amount', 'label' => __('Deposit by amount', ST_TEXTDOMAIN)))), array('label' => __('Deposit payment amount', ST_TEXTDOMAIN), 'desc' => __('Leave empty for disallow deposit payment', ST_TEXTDOMAIN), 'id' => 'deposit_payment_amount', 'type' => 'text', 'condition' => 'deposit_payment_status:not()'), array('label' => __('Availability', ST_TEXTDOMAIN), 'id' => 'availability_tab', 'type' => 'tab'), array('label' => __('Rental Calendar', ST_TEXTDOMAIN), 'id' => 'st_rental_calendar', 'type' => 'st_rental_calendar'), array('label' => __('Rental Option', ST_TEXTDOMAIN), 'id' => 'rental_options', 'type' => 'tab'), array('label' => __('Minimum days to book before arrival', ST_TEXTDOMAIN), 'id' => 'rentals_booking_period', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0, 'desc' => __('The time period allowed booking.', ST_TEXTDOMAIN)), array('label' => __('Rental external booking', ST_TEXTDOMAIN), 'id' => 'st_rental_external_booking', 'type' => 'on-off', 'std' => "off"), array('label' => __('Rental external booking link', ST_TEXTDOMAIN), 'id' => 'st_rental_external_booking_link', 'type' => 'text', 'std' => "", 'condition' => 'st_rental_external_booking:is(on)', 'desc' => "<em>" . __('Notice: Must be http://...', ST_TEXTDOMAIN) . "</em>"))); $data_paypment = STPaymentGateways::get_payment_gateways(); if (!empty($data_paypment) and is_array($data_paypment)) { $this->metabox[0]['fields'][] = array('label' => __('Payment', ST_TEXTDOMAIN), 'id' => 'payment_detail_tab', 'type' => 'tab'); foreach ($data_paypment as $k => $v) { $this->metabox[0]['fields'][] = array('label' => $v->get_name(), 'id' => 'is_meta_payment_gateway_' . $k, 'type' => 'on-off', 'desc' => $v->get_name(), 'std' => 'on'); } } $custom_field = self::get_custom_fields(); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
/** * * * @since 1.1.1 * @update 1.1.2 * */ function init_metabox() { //Room $this->metabox[] = array('id' => 'room_metabox', 'title' => __('Holiday Setting', ST_TEXTDOMAIN), 'desc' => '', 'pages' => array('st_holidays'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'location_reneral_tab', 'type' => 'tab'), array('label' => __('Location', ST_TEXTDOMAIN), 'id' => 'multi_location', 'type' => 'list_item_post_type', 'desc' => __('Holiday Location', ST_TEXTDOMAIN), 'post_type' => 'location'), array('label' => __('Address', ST_TEXTDOMAIN), 'id' => 'address', 'type' => 'text', 'desc' => __('Address', ST_TEXTDOMAIN)), array('label' => __('Maps', ST_TEXTDOMAIN), 'id' => 'st_google_map', 'type' => 'bt_gmap', 'desc' => __('Maps', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('General', ST_TEXTDOMAIN), 'id' => 'room_reneral_tab', 'type' => 'tab'), array('label' => __('Set as Featured', ST_TEXTDOMAIN), 'id' => 'is_featured', 'type' => 'on-off', 'desc' => __('This is set as featured', ST_TEXTDOMAIN), 'std' => 'off'), array('label' => __('Custom Layout', ST_TEXTDOMAIN), 'id' => 'st_custom_layout', 'post_type' => 'st_layouts', 'desc' => __('Detail Holiday Layout', ST_TEXTDOMAIN), 'type' => 'select', 'choices' => st_get_layout('st_holidays')), array('label' => __('Gallery', ST_TEXTDOMAIN), 'desc' => __('Select images for holiday', ST_TEXTDOMAIN), 'id' => 'gallery', 'type' => 'gallery'), array('label' => __('Contact email addresses', ST_TEXTDOMAIN), 'id' => 'contact_email', 'type' => 'text', 'desc' => __('Contact email addresses', ST_TEXTDOMAIN)), array('label' => __('Video', ST_TEXTDOMAIN), 'id' => 'video', 'type' => 'text', 'desc' => __('Please use youtube or vimeo video', ST_TEXTDOMAIN)), array('label' => __('Price setting', ST_TEXTDOMAIN), 'id' => 'price_number_tab', 'type' => 'tab'), array('label' => __('Adult Price', ST_TEXTDOMAIN), 'id' => 'adult_price', 'type' => 'text', 'desc' => __('Price per Adult', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Fields list discount by Adult number booking', ST_TEXTDOMAIN), 'id' => 'discount_by_adult', 'type' => 'list-item', 'desc' => __('Fields list discount by Adult number booking', ST_TEXTDOMAIN), 'std' => 0, 'settings' => array(array('id' => 'key', 'label' => __('Number of Adult', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'value', 'label' => __('Value percent of discount', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,0.5'))), array('label' => __('Child Price', ST_TEXTDOMAIN), 'id' => 'child_price', 'type' => 'text', 'desc' => __('Price per Child', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Fields list discount by Child number booking', ST_TEXTDOMAIN), 'id' => 'discount_by_child', 'type' => 'list-item', 'desc' => __('Fields list discount by Child number booking', ST_TEXTDOMAIN), 'std' => 0, 'settings' => array(array('id' => 'key', 'label' => __('Number of Children', ST_TEXTDOMAIN), 'type' => 'text'), array('id' => 'value', 'label' => __('Value percent of discount', ST_TEXTDOMAIN), 'type' => 'numeric-slider', 'min_max_step' => '0,100,0.5'))), array('label' => __('Infant Price', ST_TEXTDOMAIN), 'id' => 'infant_price', 'type' => 'text', 'desc' => __('Price per Infant', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Discount by percent', ST_TEXTDOMAIN), 'id' => 'discount', 'type' => 'numeric-slider', 'min_max_step' => '0,100,1', 'desc' => __('Discount of this holiday, by percent', ST_TEXTDOMAIN), 'std' => 0), array('label' => __('Sale Schedule', ST_TEXTDOMAIN), 'id' => 'is_sale_schedule', 'type' => 'on-off', 'std' => 'off'), array('label' => __('Sale Start Date', ST_TEXTDOMAIN), 'desc' => __('Sale Start Date', ST_TEXTDOMAIN), 'id' => 'sale_price_from', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('label' => __('Sale End Date', ST_TEXTDOMAIN), 'desc' => __('Sale End Date', ST_TEXTDOMAIN), 'id' => 'sale_price_to', 'type' => 'date-picker', 'condition' => 'is_sale_schedule:is(on)'), array('id' => 'deposit_payment_status', 'label' => __("Deposit payment options", ST_TEXTDOMAIN), 'desc' => __('You can select <code>Disallow Deposit</code>, <code>Deposit by percent</code>, <code>Deposit by amount</code>'), 'type' => 'select', 'choices' => array(array('value' => '', 'label' => __('Disallow Deposit', ST_TEXTDOMAIN)), array('value' => 'percent', 'label' => __('Deposit by percent', ST_TEXTDOMAIN)), array('value' => 'amount', 'label' => __('Deposit by amount', ST_TEXTDOMAIN)))), array('label' => __('Deposit payment amount', ST_TEXTDOMAIN), 'desc' => __('Leave empty for disallow deposit payment', ST_TEXTDOMAIN), 'id' => 'deposit_payment_amount', 'type' => 'text', 'condition' => 'deposit_payment_status:not()'), array('label' => __('Information', ST_TEXTDOMAIN), 'id' => 'st_info_holidays_tab', 'type' => 'tab'), array('label' => __('Holiday Type', ST_TEXTDOMAIN), 'id' => 'type_holiday', 'type' => 'select', 'desc' => __('Holiday Type', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'daily_holiday', 'label' => __('Daily Holiday', ST_TEXTDOMAIN)), array('value' => 'specific_date', 'label' => __('Specific Date', ST_TEXTDOMAIN)))), array('label' => __('Duration', ST_TEXTDOMAIN), 'id' => 'duration_day', 'type' => 'text', 'desc' => __('Duration', ST_TEXTDOMAIN), 'std' => '1', 'condition' => 'type_holiday:is(daily_holiday)'), array('label' => __('Duration unit', ST_TEXTDOMAIN), 'id' => 'duration_unit', 'type' => 'select', 'desc' => __('Select your duration unit', ST_TEXTDOMAIN), 'std' => __('day', ST_TEXTDOMAIN), 'choices' => array(array('value' => 'day', 'label' => __('Days', ST_TEXTDOMAIN)), array('value' => 'hour', 'label' => __('Hours', ST_TEXTDOMAIN)), array('value' => 'week', 'label' => __('Weeks', ST_TEXTDOMAIN)), array('value' => 'month', 'label' => __('Months', ST_TEXTDOMAIN))), 'condition' => 'type_holiday:is(daily_holiday)'), array('label' => __('Minimum days to book before departure', ST_TEXTDOMAIN), 'desc' => __('Minimum days to book before departure', ST_TEXTDOMAIN), 'id' => 'holidays_booking_period', 'type' => 'numeric-slider', 'min_max_step' => '0,30,1', 'std' => 0), array('label' => __('Holiday external booking', ST_TEXTDOMAIN), 'id' => 'st_holiday_external_booking', 'type' => 'on-off', 'std' => "off"), array('label' => __('Holiday external booking link ', ST_TEXTDOMAIN), 'id' => 'st_holiday_external_booking_link', 'type' => 'text', 'std' => "", 'condition' => 'st_holiday_external_booking:is(on)', 'desc' => "<em>" . __('Notice: Must be http://...', ST_TEXTDOMAIN) . "</em>"), array('label' => __('Max No. People', ST_TEXTDOMAIN), 'id' => 'max_people', 'type' => 'text', 'desc' => __('Max No. People', ST_TEXTDOMAIN), 'std' => '1'), array('id' => 'holidays_program', 'label' => __("Holiday program", ST_TEXTDOMAIN), 'type' => 'list-item', 'settings' => array(array('id' => 'desc', 'label' => __('Description', ST_TEXTDOMAIN), 'type' => 'textarea', 'rows' => '5'))), array('label' => __('Availability', ST_TEXTDOMAIN), 'id' => 'availability_tab', 'type' => 'tab'), array('label' => __('Holiday Calendar', ST_TEXTDOMAIN), 'id' => 'st_holiday_calendar', 'type' => 'st_holiday_calendar'))); $data_paypment = STPaymentGateways::get_payment_gateways(); if (!empty($data_paypment) and is_array($data_paypment)) { $this->metabox[0]['fields'][] = array('label' => __('Payment', ST_TEXTDOMAIN), 'id' => 'payment_detail_tab', 'type' => 'tab'); foreach ($data_paypment as $k => $v) { $this->metabox[0]['fields'][] = array('label' => $v->get_name(), 'id' => 'is_meta_payment_gateway_' . $k, 'type' => 'on-off', 'desc' => $v->get_name(), 'std' => 'on'); } } $custom_field = st()->get_option('holidays_unlimited_custom_field'); if (!empty($custom_field) and is_array($custom_field)) { $this->metabox[0]['fields'][] = array('label' => __('Custom fields', ST_TEXTDOMAIN), 'id' => 'custom_field_tab', 'type' => 'tab'); foreach ($custom_field as $k => $v) { $key = str_ireplace('-', '_', 'st_custom_' . sanitize_title($v['title'])); $this->metabox[0]['fields'][] = array('label' => $v['title'], 'id' => $key, 'type' => $v['type_field'], 'desc' => '<input value=\'[st_custom_meta key="' . $key . '"]\' type=text readonly />', 'std' => $v['default_field']); } } parent::register_metabox($this->metabox); }
<div class="st_msg"><?php echo STUser_f::get_msg_html($validator->error('hotel_star'), 'danger'); ?> </div> </div> </div> <div class="col-md-6 clear"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Hotel Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('st_hotel'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout"> <?php $st_custom_layout = get_post_meta($post_id, 'st_custom_layout', true); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>
echo STUser_f::get_msg_html($validator->error('taxonomy[]'), 'danger'); ?> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class='form-group form-group-icon-left'> <label for="st_custom_layout"><?php _e("Detail Rental Layout", ST_TEXTDOMAIN); ?> :</label> <i class="fa fa-cogs input-icon input-icon-hightlight"></i> <?php $layout = st_get_layout('st_rental'); if (!empty($layout) and is_array($layout)) { ?> <select class='form-control' name='st_custom_layout' id="st_custom_layout"> <?php $st_custom_layout = STInput::request('st_custom_layout'); foreach ($layout as $k => $v) { if ($st_custom_layout == $v['value']) { $check = "selected"; } else { $check = ''; } echo '<option ' . $check . ' value=' . $v['value'] . '>' . $v['label'] . '</option>'; } ?> </select>