mirror of
https://github.com/10h30/full-screen-morphing-search.git
synced 2026-07-11 18:46:04 +09:00
Rectified background spelling
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
|
||||
( function( $ ) {
|
||||
|
||||
// FSMS Main Backgroung Color.
|
||||
wp.customize( 'fsmsp_options[fsmsp_main_backgroung_color]', function( value ) {
|
||||
// FSMS Main Background Color.
|
||||
wp.customize( 'fsmsp_options[fsmsp_main_background_color]', function( value ) {
|
||||
value.bind( function( newval ) {
|
||||
$( '#morphsearch, div.morphsearch-content' ).css( 'background-color', newval );
|
||||
} );
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
/**
|
||||
* MutationObserver to display the default placeholder text (search...),
|
||||
* when the user erases all charachters of his text in the FSMS Search Form Text option.
|
||||
* when the user erases all characters of his text in the FSMS Search Form Text option.
|
||||
*/
|
||||
let targetNodePhTxt = $( "input.morphsearch-input" )[0]; // Get the Node element.
|
||||
let observerPhTxt = new MutationObserver( callbackPhTxt );
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
// Output default options' values !
|
||||
if ( fsmsp_vars.fsmsp_options_does_not_exists ) {
|
||||
|
||||
// Output fsmsp_main_backgroung_color.
|
||||
// Output fsmsp_main_background_color.
|
||||
$( '#morphsearch, div.morphsearch-content' ).css( 'background-color', '#f1f1f1' );
|
||||
|
||||
// Output fsmsp_close_icon_color.
|
||||
|
||||
@@ -78,7 +78,7 @@ class Full_Screen_Morphing_Search {
|
||||
array(
|
||||
'fsmsp_is_customize_preview' => is_customize_preview(),
|
||||
'fsmsp_options_does_not_exists' => $fsmsp_options_does_not_exists,
|
||||
'fsmsp_main_backgroung_color' => esc_attr( ( ! empty( $fsmsp_options['fsmsp_main_backgroung_color'] ) ? $fsmsp_options['fsmsp_main_backgroung_color'] : '#f1f1f1' ) ),
|
||||
'fsmsp_main_background_color' => esc_attr( ( ! empty( $fsmsp_options['fsmsp_main_background_color'] ) ? $fsmsp_options['fsmsp_main_background_color'] : '#f1f1f1' ) ),
|
||||
'fsmsp_close_icon_color' => esc_attr( ( ! empty( $fsmsp_options['fsmsp_close_icon_color'] ) ? $fsmsp_options['fsmsp_close_icon_color'] : '#000' ) ),
|
||||
'fsmsp_search_text_color' => esc_attr( ( ! empty( $fsmsp_options['fsmsp_search_text_color'] ) ? $fsmsp_options['fsmsp_search_text_color'] : '#c2c2c2' ) ),
|
||||
'fsmsp_input_text_color' => esc_attr( ( ! empty( $fsmsp_options['fsmsp_input_text_color'] ) ? $fsmsp_options['fsmsp_input_text_color'] : '#ec5a62' ) ),
|
||||
|
||||
@@ -102,10 +102,10 @@ function full_screen_morphing_search_customize_register( $wp_customize ) {
|
||||
);
|
||||
|
||||
// =====================================
|
||||
// = FSMS Main Backgroung Color Picker =
|
||||
// = FSMS Main Background Color Picker =
|
||||
// =====================================
|
||||
$wp_customize->add_setting(
|
||||
'fsmsp_options[fsmsp_main_backgroung_color]',
|
||||
'fsmsp_options[fsmsp_main_background_color]',
|
||||
array(
|
||||
'default' => '#f1f1f1',
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
@@ -119,12 +119,12 @@ function full_screen_morphing_search_customize_register( $wp_customize ) {
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize,
|
||||
'fsmsp_options[fsmsp_main_backgroung_color]',
|
||||
'fsmsp_options[fsmsp_main_background_color]',
|
||||
array(
|
||||
'label' => __( 'FSMS Main Backgroung Color', 'full-screen-morphing-search' ),
|
||||
'label' => __( 'FSMS Main Background Color', 'full-screen-morphing-search' ),
|
||||
'description' => esc_attr__( 'Change the main background color', 'full-screen-morphing-search' ),
|
||||
'section' => 'fsmsp_color',
|
||||
'settings' => 'fsmsp_options[fsmsp_main_backgroung_color]',
|
||||
'settings' => 'fsmsp_options[fsmsp_main_background_color]',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user