'edit.php?post_type=eshb_accomodation', 'page' => 'Services', 'menu' => 'Services', 'cap' => 'manage_options', 'slug' => 'edit.php?post_type=eshb_service', 'callback' => '' ], [ 'parent' => 'edit.php?post_type=eshb_accomodation', 'page' => 'Seasons & Pricing', 'menu' => 'Seasons & Pricing', 'cap' => 'manage_options', 'slug' => 'edit.php?post_type=eshb_session', 'callback' => '' ], [ 'parent' => 'edit.php?post_type=eshb_accomodation', 'page' => 'Coupons', 'menu' => 'Coupons', 'cap' => 'manage_options', 'slug' => 'edit.php?post_type=eshb_coupon', 'callback' => '' ], [ 'parent' => 'edit.php?post_type=eshb_accomodation', 'page' => 'Bookings', 'menu' => 'Bookings', 'cap' => 'manage_options', 'slug' => 'edit.php?post_type=eshb_booking', 'callback' => '' ], [ 'parent' => 'edit.php?post_type=eshb_accomodation', 'page' => 'Payments', 'menu' => 'Payments', 'cap' => 'manage_options', 'slug' => 'edit.php?post_type=eshb_payment', 'callback' => '' ], [ 'parent' => 'edit.php?post_type=eshb_accomodation', 'page' => 'Booking Calendar', 'menu' => 'Booking Calendar', 'cap' => 'manage_options', 'slug' => 'eshb_bookings_calendar', 'callback' => 'eshb_booking_details_calendar_callback' ], // Hidden page [ 'parent' => 'admin.php', 'page' => 'View Booking Data', 'menu' => 'View Booking Data', 'cap' => 'edit_posts', 'slug' => 'view_booking_data', 'callback' => 'eshb_get_booking_data_tables' ] ]; // Loop through and register each submenu foreach ($submenus as $submenu) { if ( $submenu ) { add_submenu_page( $submenu['parent'], $submenu['page'], $submenu['menu'], $submenu['cap'], $submenu['slug'], $submenu['callback'] ); } } } add_action( 'plugins_loaded', function(){ // Create a section $general_option_fields = array( array( 'id' => 'availability-calendar', 'type' => 'switcher', 'title' => 'Availability Calendar', 'desc' => 'On this switch if you want to show Availability Calendar on the accomodation page.', 'default' => true, ), array( 'id' => 'day-wise-pricing', 'type' => 'switcher', 'title' => 'Show Day Wise Pricing', 'desc' => 'On this switch if you want to show day wise pricing on the accomodation page.', 'default' => true, ), array( 'id' => 'check-in-out-time', 'type' => 'switcher', 'title' => 'Show Check In & Out Time', 'desc' => 'On this switch if you want to show check-in and check-out on the accomodation page.', 'default' => true, ), array( 'id' => 'check-in-time', 'type' => 'datetime', 'title' => 'Check in Time', //'desc' => 'Add Booking Time', 'settings' => array( 'time_24hr' => false, 'noCalendar' => true, 'enableTime' => true, ), 'dependency' => array( 'check-in-out-time', '==', true ), ), array( 'id' => 'check-out-time', 'type' => 'datetime', 'title' => 'Check out Time', //'desc' => 'Add Booking Time', 'settings' => array( 'time_24hr' => false, 'noCalendar' => true, 'enableTime' => true, ), 'dependency' => array( 'check-in-out-time', '==', true ), ), array( 'id' => 'extra-services-switcher', 'type' => 'switcher', 'title' => 'Extra Services', 'default' => true ), array( 'id' => 'accomodation-gallery', 'type' => 'switcher', 'title' => 'Accomodation Gallery', 'desc' => 'On this switch if you want to show accomodation gallery on the accomodation page.', 'default' => true, ), array( 'id' => 'currency_symbol', 'type' => 'text', 'title' => 'Currency Symbol', 'desc' => 'Add currency symbol here if you want to use custom currency.' ), array( 'id' => 'currency_position', 'type' => 'select', 'title' => 'Currency Position', 'placeholder' => 'Select an option', 'options' => array( 'left' => 'Left', 'right' => 'Right', ), 'default' => 'left' ), // --- Search Options ------------------------------------- array( 'type' => 'subheading', 'content' => 'Search Options', ), array( 'id' => 'search-form-archive', 'type' => 'switcher', 'title' => 'Search Form at Archive Page', 'default' => true ), array( 'id' => 'search-form-fields', 'type' => 'select', 'title' => 'Search Form Fields', 'multiple' => true, 'placeholder' => 'Select an option', 'options' => array( 'adults' => 'Adults', 'childrens' => 'Children', 'rooms' => 'Rooms', ), 'default' => ['adults', 'childrens'] ), array( 'id' => 'min-adult-capacity', 'type' => 'number', 'title' => 'Minimum Adult Capacity for Search', ), array( 'id' => 'adult-capacity', 'type' => 'number', 'title' => 'Maximum Adult Capacity for Search', ), array( 'id' => 'min-children-capacity', 'type' => 'number', 'title' => 'Minimum Children Capacity for Search', ), array( 'id' => 'children-capacity', 'type' => 'number', 'title' => 'Maximum Children Capacity for Search', ), array( 'id' => 'search-form-calendar-icon', 'type' => 'switcher', 'title' => 'Search Form Calendar Icon', 'default' => false ), // --- Booking Options ------------------------------------- array( 'type' => 'subheading', 'content' => 'Booking Options', ), array( 'id' => 'booking-auto-approval', 'type' => 'switcher', 'title' => 'Auto Approve Booking', 'default' => true ), array( 'id' => 'booking-form', 'type' => 'switcher', 'title' => 'Booking Form', 'desc' => 'On this switch if you want to show booking form on the accomodation page.', 'default' => true, ), array( 'id' => 'booking-form-calendar-icon', 'type' => 'switcher', 'title' => 'Booking Form Calendar Icon', 'default' => false ), array( 'id' => 'booking-btn-switcher', 'type' => 'switcher', 'title' => 'Booking Button Visibility', 'default' => true ), array( 'id' => 'booking-min-adult-capacity', 'type' => 'number', 'title' => 'Minimum Adult Capacity for Booking', ), array( 'id' => 'booking-min-children-capacity', 'type' => 'number', 'title' => 'Minimum Children Capacity for Booking', ), array( 'id' => 'booking-form-fields', 'type' => 'select', 'title' => 'Booking Form Fields', 'multiple' => true, 'placeholder' => 'Select an option', 'options' => array( 'adults' => 'Adults', 'childrens' => 'Children', 'rooms' => 'Rooms', 'extra_beds' => 'Extra Beds', ), 'default' => ['adults', 'childrens', 'rooms', 'extra_beds'] ), ); do_action( 'eshb_settings_fields_init'); //error_log('easy hotel loaded'); $general_option_fields = apply_filters( 'eshb_general_option_fields', $general_option_fields ); // Control core classes for avoid errors if( class_exists( 'ESHB' ) ) { // Set a unique slug-like ID $prefix = 'eshb_settings'; // Create options ESHB::createOptions( $prefix, array( // framework title 'framework_title' => 'Easy Hotel Settings', 'framework_class' => 'easy-hotel-settings easy-hotel-plugin-settings', // menu settings 'menu_title' => 'Settings', 'menu_slug' => 'easy-hotel-settings', //'menu_type' => 'submenu', 'menu_capability' => 'manage_options', 'menu_icon' => 'dashicons-schedule', 'menu_position' => 15, 'menu_hidden' => true, //'menu_parent' => 'edit.php?post_type=eshb_accomodation', // menu extras 'show_bar_menu' => false, 'show_sub_menu' => true, 'show_in_network' => true, 'show_in_customizer' => false, 'show_search' => false, 'show_reset_all' => true, 'show_reset_section' => false, 'show_footer' => false, 'show_all_options' => false, 'show_form_warning' => true, 'sticky_header' => true, 'save_defaults' => true, 'ajax_save' => true, // admin bar menu settings 'admin_bar_menu_icon' => '', 'admin_bar_menu_priority' => 80, // footer 'footer_text' => '', 'footer_after' => '', 'footer_credit' => '', // database model 'database' => '', // options, transient, theme_mod, network 'transient_time' => 0, // contextual help 'contextual_help' => array(), 'contextual_help_sidebar' => '', // typography options 'enqueue_webfont' => true, 'async_webfont' => false, // others 'output_css' => true, // theme and wrapper classname 'nav' => 'inline', 'theme' => 'light', 'class' => '', // external default values 'defaults' => array(), ) ); ESHB::createSection( $prefix, array( 'title' => 'General', 'fields' => $general_option_fields )); ESHB::createSection( $prefix, array( 'title' => 'Pages', 'fields' => array( // Select with pages array( 'id' => 'archive-page', 'type' => 'select', 'title' => 'Rooms Archive Page', 'placeholder' => 'Default', 'options' => 'pages', 'default' => '1', 'query_args' => array( 'posts_per_page' => -1 // for get all pages (also it's same for posts). ), ), array( 'id' => 'archive-page-template-style', 'type' => 'select', 'title' => 'Room Archive Page Style', 'options' => array( 'style-one' => 'Style One', 'style-two' => 'Style Two' ), 'default' => 'style-one', ), array( 'id' => 'single-page-template-style', 'type' => 'select', 'title' => 'Room Details Page Style', 'options' => array( 'style-one' => 'Style One', 'style-two' => 'Style Two' ), 'default' => 'style-one', ), array( 'id' => 'search-result-page', 'type' => 'select', 'title' => 'Search Result Page', 'placeholder' => 'Default', 'options' => 'pages', 'query_args' => array( 'posts_per_page' => -1 // for get all pages (also it's same for posts). ), ), array( 'id' => 'account-page', 'type' => 'select', 'title' => 'Account Page', 'placeholder' => 'Default', 'options' => 'pages', 'query_args' => array( 'posts_per_page' => -1 // for get all pages (also it's same for posts). ), ), array( 'id' => 'terms-and-conditions-page', 'type' => 'select', 'title' => 'Terms and Conditions Page', 'placeholder' => 'Default', 'options' => 'pages', 'query_args' => array( 'posts_per_page' => -1 // for get all pages (also it's same for posts). ), ), ) ) ); ESHB::createSection( $prefix, array( 'title' => 'Accomodations', 'fields' => array( array( 'id' => 'accomodation_base_name', 'type' => 'text', 'title' => 'Base Name', //'desc' => 'Add URL if you select External Booking' 'default' => 'eshb_accomodation' ), array( 'id' => 'accomodation_posts_per_page', 'type' => 'number', 'title' => 'Posts Per Page', //'desc' => 'Add URL if you select External Booking' 'default' => 6 ), array( 'id' => 'accomodation_posts_per_row', 'type' => 'number', 'title' => 'Posts Per Row (Columns)', //'desc' => 'Add URL if you select External Booking' 'default' => 3 ), array( 'id' => 'accomodation_posts_order_by', 'type' => 'select', 'title' => 'Posts Order By', //'desc' => 'Add URL if you select External Booking' 'options' => array( 'none' => 'none', 'id' => 'ID', 'date' => 'Date', 'title' => 'Title', 'name' => 'name', 'menu_order' => 'Menu Order', 'random' => 'Random' ), 'default' => 'none' ), array( 'id' => 'accomodation_posts_order', 'type' => 'select', 'title' => 'Posts Order', //'desc' => 'Add URL if you select External Booking' 'options' => array( 'DESC' => 'DESC', 'ASC' => 'ASC' ), 'default' => 'DESC' ), array( 'id' => 'related-accomodation-switcher-in-single', 'type' => 'switcher', 'title' => 'Show Related Accomodations in Details Page', 'default' => true ), ) ) ); $admin_email = get_option('admin_email'); ESHB::createSection( $prefix, array( 'title' => 'Booking', 'fields' => array( // Select with pages array( 'id' => 'booking-type', 'type' => 'select', 'title' => 'Checkout Method', 'placeholder' => 'Select an option', 'options' => array( 'woocommerce' => 'Woocoommerce Checkout', 'surecart' => 'SurecCart Checkout', 'native_checkout' => 'Native Checkout', 'external' => 'External Checkout', 'booking_request' => 'Booking Request', 'disable' => 'Disable Booking', ), 'default' => 'native_checkout' ), array( 'id' => 'booking-form-type', 'type' => 'select', 'title' => 'Booking Form Type', 'placeholder' => 'Select an option', 'options' => array( 'default' => 'Default', 'cf7' => 'Contact Form 7', 'fluentform' => 'Fluent Form', ), 'default' => 'default', 'dependency' => array( 'booking-type', '==', 'booking_request' ) ), array( 'id' => 'booking-form-shortcode', 'type' => 'text', 'title' => 'Booking Form Shortcode', 'desc' => 'You can use Contact Form 7 or MetForm shortcode to display booking form. Read Documentation to know how to configure this.', 'default' => '', 'dependency' => array( ['booking-type', '==', 'booking_request'], ['booking-form-type', '!=', 'default'] ) ), array( 'id' => 'external-booking-link', 'type' => 'text', 'title' => 'External Booking Link', 'desc' => 'Add URL if you select External Booking', 'dependency' => array( 'booking-type', '==', 'external' ) ), array( 'id' => 'direct-booking', 'type' => 'switcher', 'title' => 'Direct Booking', 'desc' => 'Enable for redirect to checkout page after adding room to cart.', 'default' => true, 'dependency' => array( 'booking-type', '==', 'woocommerce' ), ), array( 'id' => 'cart-blocking-switcher', 'type' => 'switcher', 'title' => 'Enable Cart Blocking', 'desc' => 'Temporarily block calendar dates when a user adds to cart.', 'default' => false, ), array( 'id' => 'cart-blocking-time', 'type' => 'number', 'title' => 'Blocking Duration (minutes)', 'desc' => 'How long dates are held after a user adds to cart.', 'default' => 5, 'dependency' => array( 'cart-blocking-switcher', '==', true ), ), array( 'id' => 'cart-blocking-notice-msg', 'type' => 'text', 'title' => 'Checkout Countdown Message', 'desc' => 'Text shown before the countdown timer on the cart/checkout page.', 'default' => 'Your reservation is held for', 'dependency' => array( 'cart-blocking-switcher', '==', true ), ), array( 'id' => 'checkout-billing-fields', 'type' => 'select', 'title' => 'Billing Fields', 'desc' => 'Select which billing fields to display on the checkout page. Unselected fields will be hidden.', 'multiple' => true, 'dependency' => array( 'booking-type', '==', 'woocommerce' ), 'placeholder' => 'Select fields to show', 'options' => array( 'billing_first_name' => 'First Name', 'billing_last_name' => 'Last Name', 'billing_company' => 'Company', 'billing_email' => 'Email Address', 'billing_phone' => 'Phone', 'billing_address_1' => 'Address Line 1', 'billing_address_2' => 'Address Line 2', 'billing_city' => 'City', 'billing_postcode' => 'Postcode / ZIP', 'billing_country' => 'Country', 'billing_state' => 'State / County', ), 'default' => array( 'billing_first_name', 'billing_last_name', 'billing_email', 'billing_phone', 'billing_address_1', ), ), array( 'id' => 'checkout-shipping-fields', 'type' => 'select', 'title' => 'Shipping Fields', 'desc' => 'Select which shipping fields to display on the checkout page. Unselected fields will be hidden.', 'multiple' => true, 'placeholder' => 'Select fields to show', 'dependency' => array( 'booking-type', '==', 'woocommerce' ), 'options' => array( 'shipping_first_name' => 'First Name', 'shipping_last_name' => 'Last Name', 'shipping_company' => 'Company', 'shipping_address_1' => 'Address Line 1', 'shipping_address_2' => 'Address Line 2', 'shipping_city' => 'City', 'shipping_postcode' => 'Postcode / ZIP', 'shipping_country' => 'Country', 'shipping_state' => 'State / County', ), 'default' => array( 'shipping_first_name', 'shipping_last_name', 'shipping_address_1', ), ), array( 'id' => 'checkout-additional-fields', 'type' => 'switcher', 'title' => 'Additional Information', 'desc' => 'Enable or disable the entire Additional Information section on the checkout page.', 'default' => false, 'dependency' => array( 'booking-type', '==', 'woocommerce' ), ), array( 'id' => 'recipent_email', 'type' => 'text', 'title' => 'Recipent Email Address', 'desc' => 'Add recipent email address for getting Booking Request.', 'default' => $admin_email, 'dependency' => array( ['booking-type', '==', 'booking_request'], ['booking-form-type', '==', 'default'] ) ), // Payment Gateways array( 'id' => 'payment-gateways', 'type' => 'tabbed', 'title' => 'Payment Gateways', 'dependency' => array( 'booking-type', '==', 'native_checkout' ), 'tabs' => array( // --- Cash on Delivery ------------------------------------- array( 'title' => 'Cash on Delivery', 'icon' => 'fas fa-hand-holding-usd', 'fields' => array( array( 'id' => 'gateway-cod-enable', 'type' => 'switcher', 'title' => 'Enable Cash on Delivery', 'desc' => 'Let customers reserve now and pay with cash on arrival / at the property.', 'default' => true, ), array( 'id' => 'cod-title', 'type' => 'text', 'title' => 'Cash on Delivery', 'desc' => 'The label shown to customers on the checkout page.', 'default' => 'Cash on Delivery', 'dependency' => array( 'gateway-cod-enable', '==', true ), ), array( 'id' => 'cod-description', 'type' => 'textarea', 'title' => 'Cash on Delivery Description', 'desc' => 'Short instructions shown under the title at checkout.', 'default' => 'Pay with cash upon arrival / at the property.', 'dependency' => array( 'gateway-cod-enable', '==', true ), ), ) ), array( 'title' => 'PayPal', 'icon' => 'fab fa-paypal', 'fields' => array( // --- PayPal ---------------------------------------------- array( 'id' => 'gateway-paypal-enable', 'type' => 'switcher', 'title' => 'Enable PayPal', 'desc' => 'Requires a valid Client ID & Secret below.', 'default' => true, ), array( 'id' => 'paypal-mode', 'type' => 'select', 'title' => 'PayPal Mode', 'desc' => 'Use "Sandbox" while testing and "Live" for real payments.', 'options' => array( 'sandbox' => 'Sandbox', 'live' => 'Live', ), 'default' => 'sandbox', 'dependency' => array( 'gateway-paypal-enable', '==', true ), ), array( 'id' => 'paypal-client-id', 'type' => 'text', 'title' => 'PayPal Client ID', 'desc' => 'PayPal REST API client ID. Required for the PayPal gateway.', 'dependency' => array( 'gateway-paypal-enable', '==', true ), ), array( 'id' => 'paypal-client-secret', 'type' => 'text', 'title' => 'PayPal Client Secret', 'desc' => 'PayPal REST API client secret. Required for the PayPal gateway.', 'dependency' => array( 'gateway-paypal-enable', '==', true ), ), ) ), array( 'title' => 'Tax', 'icon' => 'fas fa-percentage', 'fields' => array( // --- General --------------------------------------------- array( 'id' => 'native-checkout-tax-rate', 'type' => 'number', 'title' => 'Native Checkout Tax Rate (%)', 'desc' => 'Optional tax percentage applied on the native checkout total.', 'default' => 0, ), ) ) ) ), array( 'id' => 'holidays', 'type' => 'repeater', 'title' => 'Holidays', 'fields' => array( array( 'id' => 'holiday-date', 'type' => 'date', 'title' => 'Date', 'desc' => 'Add holiday by date from here.', 'from_to' => true, 'settings' => array( 'dateFormat' => 'yy-mm-dd', 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true, 'weekHeader' => 'Week', 'monthNamesShort' => array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ), 'dayNamesMin' => array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ), ), ), array( 'id' => 'holiday-title', 'type' => 'text', 'title' => 'Title', 'desc' => 'Add holiday title from here.', ), array( 'id' => 'accomodation-ids', 'type' => 'select', 'title' => 'Accomodations', 'placeholder' => 'Select Accomodations', 'desc' => 'Select Accomodations for this coupon.', 'options' => 'posts', 'multiple' => true, 'chosen' => false, 'query_args' => array( 'post_type' => 'eshb_accomodation', 'posts_per_page' => -1, ), ), ), ), ) ) ); ESHB::createSection( $prefix, array( 'title' => 'Design', 'fields' => array( array( 'id' => 'booking-form-style', 'type' => 'select', 'title' => 'Booking Form Style', 'options' => array( 'default' => 'Default', 'style-one' => 'Style One', 'style-two' => 'Style Two' ), 'default' => 'style-two' ), array( 'id' => 'calendar-colors', 'type' => 'color_group', 'title' => 'Calendar Colors', 'output_mode' => 'background-color', 'options' => array( 'booked-bg-color' => 'Booked Background', 'booked-color' => 'Booked Color', 'active-bg-color' => 'Active Background', 'active-color' => 'Active Color', 'inrange-bg-color' => 'Inrange Background', 'inrange-color' => 'Inrange Color', 'reserved-bg-color' => 'Reserved Background', 'reserved-color' => 'Reserved Color', ) ), array( 'id' => 'theme-colors', 'type' => 'color_group', 'title' => 'Theme Colors', 'output_mode' => 'background-color', 'options' => array( 'primary-color' => 'Primary Color', 'secondary-color' => 'Secondary Color', 'territory-color' => 'Territory Color', 'success-color' => 'Success Color', 'danger-color' => 'Danger Color', 'dark-color' => 'Dark Color', 'text-color' => 'Text Color', 'white-color' => 'White Color', 'border-color' => 'Border Color', ), 'default' => array( 'primary-color' => '#ab8965', 'secondary-color' => '#fff5ed', 'territory-color' => '#70533a', 'success-color' => '#1ec734', 'danger-color' => '#e41749', 'dark-color' => '#181818', 'text-color' => '#212529', 'white-color' => '#ffffff', 'border-color' => '#ab8965', ) ), array( 'id' => 'page-spacing', 'type' => 'spacing', 'title' => 'Page Spacing', 'left' => false, 'right' => false, 'units' => array( 'px' ), 'output_mode' => 'padding', // or margin, relative ), array( 'id' => 'page-container-size', 'type' => 'dimensions', 'title' => 'Page Container Size', 'units' => array( 'px' ), 'height' => false, 'output_mode' => 'width', // or margin, relative ), ) ) ); // Create a section ESHB::createSection( $prefix, array( 'title' => 'Usage', 'fields' => array( array( 'type' => 'callback', 'function' => 'eshb_easy_hotel_usage_callback', ), ) ) ); ESHB::createSection( $prefix, array( 'title' => 'Translation', 'fields' => array( array( 'type' => 'subheading', 'content' => 'Booking & Search Form Translation', ), array( 'id' => 'string_reserve', 'type' => 'text', 'title' => 'Reserve', //'desc' => 'Add URL if you select External Booking' 'default' => 'Reserve' ), array( 'id' => 'string_check_availability', 'type' => 'text', 'title' => 'Check Availability', //'desc' => 'Add URL if you select External Booking' 'default' => 'Check Availability' ), array( 'id' => 'string_from', 'type' => 'text', 'title' => 'From', //'desc' => 'Add URL if you select External Booking' 'default' => 'From' ), array( 'id' => 'view_details', 'type' => 'text', 'title' => 'View Details', //'desc' => 'Add URL if you select External Booking' ), array( 'id' => 'string_night', 'type' => 'text', 'title' => 'Night', //'desc' => 'Add URL if you select External Booking' 'default' => 'night' ), array( 'id' => 'string_hour', 'type' => 'text', 'title' => 'Hour', //'desc' => 'Add URL if you select External Booking' 'default' => 'hour' ), array( 'id' => 'string_check_in', 'type' => 'text', 'title' => 'Check In', //'desc' => 'Add URL if you select External Booking' 'default' => 'Check In' ), array( 'id' => 'string_check_out', 'type' => 'text', 'title' => 'Check Out', //'desc' => 'Add URL if you select External Booking' 'default' => 'Check Out' ), array( 'id' => 'string_guest', 'type' => 'text', 'title' => 'Guest', //'desc' => 'Add URL if you select External Booking' 'default' => 'Guest' ), array( 'id' => 'string_adult', 'type' => 'text', 'title' => 'Adult', //'desc' => 'Add URL if you select External Booking' 'default' => 'Adult' ), array( 'id' => 'string_children', 'type' => 'text', 'title' => 'Children', //'desc' => 'Add URL if you select External Booking' 'default' => 'Children' ), array( 'id' => 'string_room', 'type' => 'text', 'title' => 'Room', //'desc' => 'Add URL if you select External Booking' 'default' => 'Room' ), array( 'id' => 'string_rooms', 'type' => 'text', 'title' => 'Rooms', //'desc' => 'Add URL if you select External Booking' 'default' => 'Rooms' ), array( 'id' => 'available_rooms', 'type' => 'text', 'title' => 'Available Rooms', //'desc' => 'Add URL if you select External Booking' 'default' => 'Available Rooms:' ), array( 'id' => 'string_extra_bed', 'type' => 'text', 'title' => 'Extra Bed', //'desc' => 'Add URL if you select External Booking' 'default' => 'Extra Bed' ), array( 'id' => 'string_extra_services', 'type' => 'text', 'title' => 'Extra Services', //'desc' => 'Add URL if you select External Booking' 'default' => 'Extra Services' ), array( 'id' => 'string_total_cost', 'type' => 'text', 'title' => 'Total Cost', //'desc' => 'Add URL if you select External Booking' 'default' => 'Total Cost' ), array( 'id' => 'string_disocunted_price', 'type' => 'text', 'title' => 'Discounted Price', //'desc' => 'Add URL if you select External Booking' 'default' => 'Discounted Price' ), array( 'id' => 'string_book_your_stay', 'type' => 'text', 'title' => 'Book Your Stay', //'desc' => 'Add URL if you select External Booking' 'default' => 'Book Your Stay' ), array( 'id' => 'string_book_now', 'type' => 'text', 'title' => 'Book Now', //'desc' => 'Add URL if you select External Booking' 'default' => 'Book Now' ), array( 'id' => 'string_booking_success_msg', 'type' => 'text', 'title' => 'Booking Success Message', //'desc' => 'Add URL if you select External Booking' 'default' => 'Reservation Successfully added to your cart.' ), array( 'id' => 'string_booking_failed_msg', 'type' => 'text', 'title' => 'Booking Failed Message', //'desc' => 'Add URL if you select External Booking' 'default' => 'Ops! This Reservation has been failed.' ), array( 'id' => 'string_booking_request_success_msg', 'type' => 'text', 'title' => 'Booking Request Success Message', //'desc' => 'Add URL if you select External Booking' 'default' => 'Booking request has been sent successfully.' ), array( 'id' => 'string_booking_request_failed_msg', 'type' => 'text', 'title' => 'Booking Request Failed Message', //'desc' => 'Add URL if you select External Booking' 'default' => 'Ops! Booking request can\'t be sent.' ), array( 'id' => 'string_availability_calendar', 'type' => 'text', 'title' => 'Availability Calendar', //'desc' => 'Add URL if you select External Booking' 'default' => 'Availability Calendar', ), array( 'id' => 'string_apply', 'type' => 'text', 'title' => 'Apply', //'desc' => 'Add URL if you select External Booking' ), array( 'id' => 'string_cancel', 'type' => 'text', 'title' => 'Cancel', //'desc' => 'Add URL if you select External Booking' ), array( 'id' => 'string_related_sub_title', 'type' => 'text', 'title' => 'Related Sub Title Change Here', //'desc' => 'Related Sub Title Change Here' ), array( 'id' => 'string_related__title', 'type' => 'text', 'title' => 'Related Title Change Here', //'desc' => 'Related Title Change Here' ), array( 'id' => 'string_pay_later_due', 'type' => 'text', 'title' => 'Pay Later (Due)', //'desc' => 'Add URL if you select External Booking' 'default' => 'Pay Later (Due)', ), array( 'id' => 'string_pay_now', 'type' => 'text', 'title' => 'Pay Now', //'desc' => 'Add URL if you select External Booking' 'default' => 'Pay Now', ), array( 'id' => 'string_deposit_amount', 'type' => 'text', 'title' => 'Deposit Amount', //'desc' => 'Add URL if you select External Booking' 'default' => 'Deposit Amount', ), array( 'id' => 'string_pay_deposit', 'type' => 'text', 'title' => 'Pay Deposit', //'desc' => 'Add URL if you select External Booking' 'default' => 'Pay Deposit', ), array( 'id' => 'string_pay_full_amount', 'type' => 'text', 'title' => 'Pay Full Amount', //'desc' => 'Add URL if you select External Booking' 'default' => 'Pay Full Amount', ), array( 'id' => 'string_please_wait', 'type' => 'text', 'title' => 'Please Wait', //'desc' => 'Add URL if you select External Booking' 'default' => 'Please Wait', ), ) ) ); // Create a section ESHB::createSection( $prefix, array( 'title' => 'Help & Support', 'fields' => array( array( 'type' => 'callback', 'function' => 'eshb_easy_hotel_help_support_callback', ), ) ) ); } function eshb_easy_hotel_usage_callback() { ?>
Archive Grid:
Search Form:
Booking Form For Room Details Page:
Booking Form For Global:
Availability Calendar For Room Details Page:
Availability Calendar For Global:
Related Accomodations:
Day Wise Pricing Table For Room Details Page:
Day Wise Pricing Table For Global:
Check In/Out Times:
Reviews: