' .
'' . esc_html__('Note' ,'booking') . '! ' .
__( 'These options do not apply in the admin panel. These options apply only on the front-end side.', 'booking' ) .
'
'.
/* translators: 1: ... */
sprintf( __( 'Type your date format for emails and the booking table. %1$sDocumentation on date formatting%2$s', 'booking' ),' ','')
.'
'.
/* translators: 1: ... */
sprintf( __( 'Type your time format for emails and the booking table. %1$sDocumentation on time formatting%2$s', 'booking' ),' ','')
.'
'
, 'class' => ''
, 'css' => 'margin:0;padding:0;border:0;'
, 'description' => ''
, 'cols' => 2
, 'group' => 'date_time'
, 'tr_class' => ''
, 'description_tag' => 'div'
);
//
// Divider ///////////////////////////////////////////////////////////////
$this->fields['hr_booking_listing_before_is_use_hints_at_admin_panel'] = array( 'type' => 'hr', 'group' => 'booking_listing' );
// Show hide Notes
$this->fields = apply_filters( 'wpbc_settings_booking_show_hide_options', $this->fields, $default_options_values ); // FixIn: 8.1.3.32.
//
//
// auto_cancelation_approval
$this->fields = apply_filters( 'wpbc_settings_auto_cancelation_approval_section', $this->fields, $default_options_values );
//
//
$this->fields = apply_filters( 'wpbc_settings_capacity_based_on_visitors', $this->fields, $default_options_values );
$this->fields['booking_is_days_always_available'] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_is_days_always_available'] //'On'
, 'title' => __('Allow unlimited bookings per same day(s)' ,'booking')
/* translators: 1: ... */
, 'label' => sprintf( __( 'Check this box, if you want to %1$sset any days as available%2$s in calendar. Your visitors will be able to make %3$sunlimited bookings per same date(s) in calendar and do not see any booked date(s)%4$s of other visitors.', 'booking' ), '', '' , '', '' )
, 'description' => ''
, 'group' => 'capacity'
);
// FixIn: 8.3.2.2.
if ( ! class_exists('wpdev_bk_biz_l') )
$this->fields['booking_is_show_pending_days_as_available'] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_is_show_pending_days_as_available'] //_'Off'
, 'title' => __('Use pending days as available' ,'booking')
, 'label' => sprintf(__('Check this box if you want to show the pending days as available in calendars' ,'booking') )
, 'description' => ''
, 'group' => 'capacity'
, 'tr_class' => ''
);
$this->fields = apply_filters( 'wpbc_settings_pending_days_as_available', $this->fields, $default_options_values );
//
//
if ( ! class_exists('wpdev_bk_personal') ){
// Showing availability in tooltip
$this->fields['booking_quantity_control__promote_upgrade'] = array(
'type' => 'checkbox'
, 'default' => 'On'
, 'value' => 'On'
, 'title' => __('Booking Quantity Control' ,'booking')
, 'label' => __('Enable this option to allow visitors to define the number of items they can book for specific dates or times within a single reservation. ' ,'booking')
, 'description' => __('If disabled, visitors can book only one slot within a single reservation.' ,'booking')
, 'description_tag' => 'p'
, 'group' => 'capacity_upgrade'
, 'tr_class' => 'wpbc_blur'
);
$this->fields['booking_capacity_field__promote_upgrade'] = array(
'type' => 'select'
, 'default' => 'items'
, 'value' => 'items'
, 'title' => __('Quantity field name', 'booking')
, 'description' => sprintf( __( 'Select the field that will control how many slots visitors can book during the reservation process.' ,'booking'), '', '' )
, 'description_tag' => 'span'
, 'css' => ''
, 'tr_class' => 'wpbc_booking_capacity_field_settings wpbc_sub_settings_grayed'
, 'options' => array( 'items' => __('Items' ,'booking') )
, 'group' => 'capacity_upgrade'
, 'tr_class' => 'wpbc_blur'
);
$this->fields['booking_is_dissbale_booking_for_different_sub_resources__promote_upgrade'] = array(
'type' => 'checkbox'
, 'default' => 'On'
, 'value' => 'On'
, 'title' => __('Disable bookings in different booking resources' ,'booking')
, 'label' => __('Check this box to disable reservations, which can be stored in different booking resources.' ,'booking')
, 'description' => '' . esc_html__('Note' ,'booking') . '! ' . __('When checked, all reserved days must be at same booking resource otherwise error message will show.' ,'booking')
, 'group' => 'capacity_upgrade'
, 'tr_class' => 'wpbc_blur'
);
$this->fields['capacity_upgrade__promote_upgrade'] = array(
'type' => 'pure_html'
, 'group' => 'capacity_upgrade'
, 'html' => '
This feature
is available in the Business Large or MultiUser version.
Upgrade to Pro.
'
. __('This Server Balancer control how many parallel requests for loading calendar data can be sent at the same time. A lower number minimizes server impact but may increase the total time for loading all calendars.' ,'booking')
.'
'
, 'options' => $balencer_options
, 'group' => 'advanced'
, 'is_demo_safe' => wpbc_is_this_demo()
);
$this->fields['booking_is_load_js_css_on_specific_pages'] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_is_load_js_css_on_specific_pages'] //'Off'
, 'title' => __('Load JS and CSS files only on specific pages' ,'booking')
, 'label' => __('Activate loading of CSS and JavaScript files of plugin only at specific pages.' ,'booking')
, 'description' => ''
, 'group' => 'advanced'
, 'tr_class' => 'wpbc_advanced_js_loading_settings'//wpbc_advanced_js_loading_settings wpbc_sub_settings_grayed hidden_items'
, 'is_demo_safe' => wpbc_is_this_demo()
);
$this->fields['booking_pages_for_load_js_css'] = array(
'type' => 'textarea'
, 'default' => $default_options_values['booking_pages_for_load_js_css'] //''
, 'placeholder' => '/booking-form/'
, 'title' => __('Relative URLs of pages, where to load plugin CSS and JS files' ,'booking')
/* translators: 1: ... */
, 'description' => sprintf(__( 'Enter relative URLs of pages, where you have Booking Calendar elements (booking forms or availability calendars). Please enter one URL per line. Example: %s' ,'booking'),'/booking-form/')
,'description_tag' => 'p'
, 'css' => 'width:100%'
, 'rows' => 5
, 'group' => 'advanced'
, 'tr_class' => 'wpbc_advanced_js_loading_settings wpbc_is_load_js_css_on_specific_pages wpbc_sub_settings_grayed'// hidden_items'
, 'is_demo_safe' => wpbc_is_this_demo()
);
$this->fields['booking_form_is_using_bs_css'] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_form_is_using_bs_css'] // 'On'
, 'title' => __('Use CSS BootStrap' ,'booking')
, 'label' => __('Using BootStrap CSS for the form fields' ,'booking'). ' '.__('Deprecated','booking').''
, 'description' => ''
, 'description_tag' => 'p'
, 'group' => 'advanced'
);
//$this->fields['hr_booking_is_show_system_debug_log'] = array( 'type' => 'hr', 'group' => 'advanced', 'tr_class' => 'wpbc_advanced_js_loading_settings' ); // wpbc_sub_settings_grayed hidden_items' );
// FixIn: 7.2.1.15.
$this->fields[ 'booking_is_show_system_debug_log' ] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_is_show_system_debug_log'] //'Off'
, 'title' => __('Show system debugging log for beta features' ,'booking')
, 'label' => __('Activate this option only for testing beta features' ,'booking')
, 'description' => ''
, 'group' => 'advanced'
, 'tr_class' => 'wpbc_advanced_js_loading_settings'// wpbc_sub_settings_grayed hidden_items'
, 'is_demo_safe' => wpbc_is_this_demo()
);
//FixIn: 10.1.1.2 //TODO: Update Text here 2024-06-16 12:57
$this->fields['booking_is_nonce_at_front_end'] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_is_nonce_at_front_end'] //'Off'
, 'title' => __( 'Use Nonce Fields', 'booking' )
, 'label' => __( 'Activate this option to add security tokens (nonce fields) to booking forms on the front-end. Please note that this may cause issues if you are using cache plugins or caching software.', 'booking' )
, 'description' => ''
, 'group' => 'advanced'
, 'tr_class' => 'wpbc_advanced_is_nonce' //wpbc_advanced_js_loading_settings wpbc_sub_settings_grayed hidden_items'
, 'toggle_class' => 'wpbc_toggle_danger'
, 'is_demo_safe' => wpbc_is_this_demo()
);
if ( wpbc_is_this_demo() ) {
$this->fields['booking_pages_for_load_js_css_demo'] = array( 'group' => 'advanced',
'type' => 'html',
'html' => wpbc_get_warning_text_in_demo_mode(),
'cols' => 2,
'tr_class' => 'wpbc_advanced_js_loading_settings'// wpbc_sub_settings_grayed hidden_items'
);
}
// Divider ///////////////////////////////////////////////////////////////
$this->fields['hr_calendar_before_advanced_js_loading_settings'] = array( 'type' => 'hr', 'group' => 'advanced' );
// Show settings of powered by notice
$this->fields['booking_advanced_powered_by_notice_settings'] = array(
'type' => 'html'
, 'html' =>
'+ ' . __('Show settings of powered by notice' ,'booking') . ''
. '- ' . __('Hide settings of powered by notice' ,'booking') . ''
, 'cols' => 2
, 'group' => 'advanced'
);
$this->fields['booking_is_show_powered_by_notice'] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_is_show_powered_by_notice'] //'On'
, 'title' => __('Powered by notice' ,'booking')
, 'label' => sprintf(__(' Turn On/Off powered by "Booking Calendar" notice under the calendar.' ,'booking'),'wpbookingcalendar.com')
, 'description' => ''
, 'group' => 'advanced'
, 'tr_class' => 'wpbc_is_show_powered_by_notice wpbc_sub_settings_grayed hidden_items'
);
$this->fields['booking_wpdev_copyright_adminpanel'] = array(
'type' => 'checkbox'
, 'default' => $default_options_values['booking_wpdev_copyright_adminpanel'] //'On'
, 'title' => __('Help and info notices' ,'booking')
, 'label' => sprintf(__(' Turn On/Off version notice and help info links at booking admin panel.' ,'booking'),'wpbookingcalendar.com')
, 'description' => ''
, 'group' => 'advanced'
, 'tr_class' => 'wpbc_is_show_powered_by_notice wpbc_sub_settings_grayed hidden_items'
, 'is_demo_safe' => wpbc_is_this_demo() // FixIn: 8.1.3.9.
);
//
//
if(1){
if ( function_exists( 'wpbc_get_dashboard_info' ) ) {
$this->fields['booking_information'] = array(
'type' => 'html'
, 'html' => wpbc_get_dashboard_info()
, 'cols' => 2
, 'group' => 'information'
);
}
}
//
//
$this->fields['booking_menu_position'] = array(
'type' => 'select'
, 'default' => 'top'
, 'title' => __('Plugin menu position', 'booking')
, 'description' => ''
, 'options' => array(
'top' => __('Top', 'booking')
, 'middle' => __('Middle', 'booking')
, 'bottom' => __('Bottom', 'booking')
)
, 'group' => 'permissions'
, 'is_demo_safe' => wpbc_is_this_demo()
);
$this->fields['booking_user_role_booking_header'] = array(
'type' => 'pure_html'
, 'group' => 'permissions'
, 'html' => '
' . wp_kses_post( __('User permissions for plugin menu pages' ,'booking') ) . ':