' .
'' . 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 );
//
//
if ( wpbc_is_11_6_features_enabled() && wpbc_booking_resources_catalog_can_manage_settings() ) {
$is_pro_compatible = wpbc_booking_resources_catalog_is_pro_compatible();
$description = __( 'Legacy catalog pages are deprecated and scheduled for removal in Booking Calendar 11.7. This setting applies to all administration catalogs upgraded in Booking Calendar 11.6.', 'booking' );
if ( ! $is_pro_compatible ) {
$pro_version = wpbc_booking_resources_catalog_get_pro_version();
if ( '' === $pro_version ) {
$pro_version = __( 'Unknown', 'booking' );
}
/* translators: 1: Detected Booking Calendar Pro version, 2: Minimum compatible Pro version. */
$description = sprintf( __( 'Legacy catalog mode is required because Booking Calendar Pro %1$s is active. Update Pro to %2$s or newer to use the new catalogs. Legacy catalog pages are deprecated and scheduled for removal in Booking Calendar 11.7.', 'booking' ), esc_html( $pro_version ), esc_html( wpbc_booking_resources_catalog_get_minimum_pro_version() ) );
}
$this->fields['booking_resources_catalog_renderer'] = array(
'type' => 'select',
'default' => 'new',
'title' => __( 'Use legacy catalog pages', 'booking' ),
'description' => $description,
'options' => array(
'new' => __( 'No — use the new catalogs', 'booking' ),
'legacy' => __( 'Yes — use legacy catalog pages (Deprecated)', 'booking' ),
),
'group' => 'advanced',
'disabled' => ! $is_pro_compatible,
);
if ( ! $is_pro_compatible ) {
$this->fields['booking_resources_catalog_renderer']['value'] = 'legacy';
}
}
$this->fields = apply_filters( 'wpbc_settings_edit_url_hash', $this->fields, $default_options_values );
// FixIn: 10.10.1.2 $this->fields = apply_filters( 'wpbc_settings_resource_no_update__during_editing', $this->fields, $default_options_values );
// Show advanced settings of JavaScript loading
// //Show | Hide links for Advanced JavaScript section
// $this->fields['booking_advanced_js_loading_settings'] = array(
// 'type' => 'html'
// , 'html' =>
// '+ ' . __('Show advanced settings of JavaScript loading' ,'booking') . ''
// . '- ' . __('Hide advanced settings of JavaScript loading' ,'booking') . ''
// , 'cols' => 2
// , 'group' => 'advanced'
// );
// FixIn: 9.8.6.2.
$balencer_options = array_combine( range( 1, 5 ), range( 1, 5 ) );
$balencer_options[99] = __( 'All', 'booking' );
$this->fields['booking_load_balancer_max_threads'] = array(
'type' => 'select'
, 'default' => $default_options_values['booking_load_balancer_max_threads']
, 'title' => __('Parallel requests' ,'booking')
, 'description' => __('Select the number of simultaneous requests to load data in multiple calendars.' ,'booking') . ' '.__('Performance','booking').''
. '
'
. __('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') ) . ':