$template_context Authorized step context. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $step_data = isset( $template_context['step_data'] ) && is_array( $template_context['step_data'] ) ? $template_context['step_data'] : array(); $draft_field_name = isset( $step_data['draft_field_name'] ) ? sanitize_key( (string) $step_data['draft_field_name'] ) : 'fixed_time_slots'; $draft_values = isset( $step_data['draft_values'] ) && is_array( $step_data['draft_values'] ) ? $step_data['draft_values'] : array(); $editor_title = isset( $step_data['editor_title'] ) ? sanitize_text_field( (string) $step_data['editor_title'] ) : __( 'Set fixed time slots', 'booking' ); $editor_description = isset( $step_data['editor_description'] ) ? sanitize_text_field( (string) $step_data['editor_description'] ) : __( 'Choose the fixed time slots customers can use when booking.', 'booking' ); $list_title = isset( $step_data['list_title'] ) ? sanitize_text_field( (string) $step_data['list_title'] ) : __( 'Fixed time slots', 'booking' ); $list_description = isset( $step_data['list_description'] ) ? sanitize_text_field( (string) $step_data['list_description'] ) : __( 'Choices shown in the booking form.', 'booking' ); $list_label = isset( $step_data['list_label'] ) ? sanitize_text_field( (string) $step_data['list_label'] ) : $list_title; $time_options = isset( $step_data['time_options'] ) && is_array( $step_data['time_options'] ) ? $step_data['time_options'] : array(); $end_time_options = isset( $step_data['end_time_options'] ) && is_array( $step_data['end_time_options'] ) ? $step_data['end_time_options'] : array(); $interval_options = isset( $step_data['interval_options'] ) && is_array( $step_data['interval_options'] ) ? $step_data['interval_options'] : array(); $duration_options = isset( $step_data['duration_options'] ) && is_array( $step_data['duration_options'] ) ? $step_data['duration_options'] : array(); $generator_from = isset( $step_data['generator_from'] ) ? (string) $step_data['generator_from'] : '10:00'; $generator_to = isset( $step_data['generator_to'] ) ? (string) $step_data['generator_to'] : '14:30'; $generator_interval = isset( $step_data['generator_interval'] ) ? absint( $step_data['generator_interval'] ) : 30; $generator_duration = isset( $step_data['generator_duration'] ) ? absint( $step_data['generator_duration'] ) : 30; $max_time_slots = isset( $step_data['max_time_slots'] ) ? absint( $step_data['max_time_slots'] ) : 288; $time_increment = isset( $step_data['time_increment'] ) ? absint( $step_data['time_increment'] ) : 5; $draft_values_json = wp_json_encode( $draft_values ); $draft_values_json = false === $draft_values_json ? '{}' : $draft_values_json; $field_error_id = 'wpbc-setup-wizard-fixed-time-slots-error'; $list_title_id = 'wpbc-setup-wizard-fixed-time-slots-list-title'; ?>

render( 'settings-hint', array( 'settings_hint' => $template_context['settings_hint'] ) ); ?>