| @@ -126,9 +126,11 @@ | ||
| 126 | 126 | wp_enqueue_script( 'wpbc-bfb-form_settings_effects', wpbc_plugin_url( '/includes/page-form-builder/form-settings/_out/settings_effects.js' ), array( 'wpbc-bfb-form_settings' ), WP_BK_VERSION_NUM, $in_footer ); |
| 127 | 127 | $wpbc_bfb_form_style = wpbc_bfb_settings__get_current_form_style(); |
| 128 | 128 | $wpbc_bfb_form_style_preset = wpbc_bfb_settings__get_form_style_preset( $wpbc_bfb_form_style ); |
| 129 | 129 | $wpbc_bfb_custom_form_style = wpbc_bfb_settings__get_custom_form_style_options(); |
| 130 | - $wpbc_bfb_form_style_vars = wpbc_bfb_settings__get_form_style_css_vars( $wpbc_bfb_form_style, $wpbc_bfb_custom_form_style ); | |
| 130 | + $wpbc_bfb_form_accent = wpbc_bfb_settings__get_form_accent_options(); | |
| 131 | + $wpbc_bfb_style_options = array_merge( $wpbc_bfb_custom_form_style, $wpbc_bfb_form_accent ); | |
| 132 | + $wpbc_bfb_form_style_vars = wpbc_bfb_settings__get_form_style_css_vars( $wpbc_bfb_form_style, $wpbc_bfb_style_options ); | |
| 131 | 133 | $wpbc_bfb_container_style = isset( $wpbc_bfb_form_style_preset['container_style'] ) ? (string) $wpbc_bfb_form_style_preset['container_style'] : 'bordered'; |
| 132 | 134 | $wpbc_bfb_theme_class = isset( $wpbc_bfb_form_style_preset['theme_class'] ) ? (string) $wpbc_bfb_form_style_preset['theme_class'] : ''; |
| 133 | 135 | $wpbc_bfb_legacy_appearance = array( |
| 134 | 136 | 'booking_form_theme' => $wpbc_bfb_theme_class, |
| @@ -153,9 +155,9 @@ | ||
| 153 | 155 | 'theme_class' => $wpbc_bfb_theme_class, |
| 154 | 156 | 'container_style' => $wpbc_bfb_container_style, |
| 155 | 157 | 'css_vars' => $wpbc_bfb_form_style_vars, |
| 156 | 158 | ), |
| 157 | - $wpbc_bfb_custom_form_style | |
| 159 | + $wpbc_bfb_style_options | |
| 158 | 160 | ), |
| 159 | 161 | 'form_style_options' => wpbc_bfb_settings__get_form_style_options(), |
| 160 | 162 | 'form_style_presets' => wpbc_bfb_settings__get_form_style_presets(), |
| 161 | 163 | 'form_style_css_var_names' => wpbc_bfb_settings__get_form_style_css_var_names(), |
| @@ -160,9 +162,19 @@ | ||
| 160 | 162 | 'form_style_presets' => wpbc_bfb_settings__get_form_style_presets(), |
| 161 | 163 | 'form_style_css_var_names' => wpbc_bfb_settings__get_form_style_css_var_names(), |
| 162 | 164 | 'form_style_option_keys' => wpbc_bfb_settings__get_form_json_style_option_keys(), |
| 163 | 165 | 'custom_form_style_defaults' => wpbc_bfb_settings__get_default_custom_form_style_options(), |
| 166 | + 'form_accent_defaults' => wpbc_bfb_settings__get_default_form_accent_options(), | |
| 164 | 167 | 'global_appearance' => $wpbc_bfb_legacy_appearance, |
| 168 | + 'i18n' => array( | |
| 169 | + 'accent_enable_first' => __( 'Enable Custom accent color first.', 'booking' ), | |
| 170 | + 'accent_applied_one' => __( 'Accent applied to one form element. Save Form to keep the change.', 'booking' ), | |
| 171 | + 'accent_applied_many' => __( 'Accent applied to %d form elements. Save Form to keep the changes.', 'booking' ), | |
| 172 | + 'accent_already_applied' => __( 'All supported form elements already have the current accent color.', 'booking' ), | |
| 173 | + 'accent_no_elements' => __( 'No accent-capable form elements were found.', 'booking' ), | |
| 174 | + 'accent_applied_announcement' => __( 'Form accent applied.', 'booking' ), | |
| 175 | + 'accent_time_picker_automatic' => __( 'Time slots now use Automatic — Match Booking Form.', 'booking' ), | |
| 176 | + ), | |
| 165 | 177 | ) |
| 166 | 178 | ); |
| 167 | 179 | |
| 168 | 180 | // Form Details. |