@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! class_exists( 'LSX_Customizer_Colour_Footer' ) ) { |
|
2 | +if ( ! class_exists('LSX_Customizer_Colour_Footer')) { |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * LSX Customizer Colour Footer Class |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | * @since 1.0.0 |
19 | 19 | */ |
20 | 20 | public function __construct() { |
21 | - add_action( 'after_switch_theme', array( $this, 'set_theme_mod' ) ); |
|
22 | - add_action( 'customize_save_after', array( $this, 'set_theme_mod' ) ); |
|
21 | + add_action('after_switch_theme', array($this, 'set_theme_mod')); |
|
22 | + add_action('customize_save_after', array($this, 'set_theme_mod')); |
|
23 | 23 | |
24 | - add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_css' ), 2999 ); |
|
24 | + add_action('wp_enqueue_scripts', array($this, 'enqueue_css'), 2999); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function set_theme_mod() { |
33 | 33 | $theme_mods = $this->get_theme_mods(); |
34 | - $styles = $this->get_css( $theme_mods ); |
|
34 | + $styles = $this->get_css($theme_mods); |
|
35 | 35 | |
36 | - set_theme_mod( 'lsx_customizer_colour__footer_theme_mod', $styles ); |
|
36 | + set_theme_mod('lsx_customizer_colour__footer_theme_mod', $styles); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -42,20 +42,20 @@ discard block |
||
42 | 42 | * @since 1.0.0 |
43 | 43 | */ |
44 | 44 | public function enqueue_css() { |
45 | - $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__footer_theme_mod' ); |
|
45 | + $styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__footer_theme_mod'); |
|
46 | 46 | |
47 | - if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
47 | + if (is_customize_preview() || false === $styles_from_theme_mod) { |
|
48 | 48 | $theme_mods = $this->get_theme_mods(); |
49 | - $styles = $this->get_css( $theme_mods ); |
|
49 | + $styles = $this->get_css($theme_mods); |
|
50 | 50 | |
51 | - if ( false === $styles_from_theme_mod ) { |
|
52 | - set_theme_mod( 'lsx_customizer_colour__footer_theme_mod', $styles ); |
|
51 | + if (false === $styles_from_theme_mod) { |
|
52 | + set_theme_mod('lsx_customizer_colour__footer_theme_mod', $styles); |
|
53 | 53 | } |
54 | 54 | } else { |
55 | 55 | $styles = $styles_from_theme_mod; |
56 | 56 | } |
57 | 57 | |
58 | - wp_add_inline_style( 'lsx-customizer', $styles ); |
|
58 | + wp_add_inline_style('lsx-customizer', $styles); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -66,12 +66,12 @@ discard block |
||
66 | 66 | public function get_theme_mods() { |
67 | 67 | $colors = parent::get_color_scheme(); |
68 | 68 | |
69 | - return apply_filters( 'lsx_customizer_colours_footer', array( |
|
70 | - 'footer_background_color' => get_theme_mod( 'footer_background_color', $colors['footer_background_color'] ), |
|
71 | - 'footer_text_color' => get_theme_mod( 'footer_text_color', $colors['footer_text_color'] ), |
|
72 | - 'footer_link_color' => get_theme_mod( 'footer_link_color', $colors['footer_link_color'] ), |
|
73 | - 'footer_link_hover_color' => get_theme_mod( 'footer_link_hover_color', $colors['footer_link_hover_color'] ), |
|
74 | - ) ); |
|
69 | + return apply_filters('lsx_customizer_colours_footer', array( |
|
70 | + 'footer_background_color' => get_theme_mod('footer_background_color', $colors['footer_background_color']), |
|
71 | + 'footer_text_color' => get_theme_mod('footer_text_color', $colors['footer_text_color']), |
|
72 | + 'footer_link_color' => get_theme_mod('footer_link_color', $colors['footer_link_color']), |
|
73 | + 'footer_link_hover_color' => get_theme_mod('footer_link_hover_color', $colors['footer_link_hover_color']), |
|
74 | + )); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -79,21 +79,21 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @since 1.0.0 |
81 | 81 | */ |
82 | - function get_css( $colors ) { |
|
82 | + function get_css($colors) { |
|
83 | 83 | global $customizer_colour_names; |
84 | 84 | |
85 | 85 | $colors_template = array(); |
86 | 86 | |
87 | - foreach ( $customizer_colour_names as $key => $value ) { |
|
88 | - $colors_template[ $key ] = ''; |
|
87 | + foreach ($customizer_colour_names as $key => $value) { |
|
88 | + $colors_template[$key] = ''; |
|
89 | 89 | } |
90 | 90 | |
91 | - $colors = wp_parse_args( $colors, $colors_template ); |
|
91 | + $colors = wp_parse_args($colors, $colors_template); |
|
92 | 92 | |
93 | - if ( empty( $colors['footer_background_color'] ) |
|
94 | - || empty( $colors['footer_text_color'] ) |
|
95 | - || empty( $colors['footer_link_color'] ) |
|
96 | - || empty( $colors['footer_link_hover_color'] ) ) { |
|
93 | + if (empty($colors['footer_background_color']) |
|
94 | + || empty($colors['footer_text_color']) |
|
95 | + || empty($colors['footer_link_color']) |
|
96 | + || empty($colors['footer_link_hover_color'])) { |
|
97 | 97 | return ''; |
98 | 98 | } |
99 | 99 | |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | ); |
112 | 112 | '; |
113 | 113 | |
114 | - $css = apply_filters( 'lsx_customizer_colour_selectors_footer', $css, $colors ); |
|
115 | - $css = parent::scss_to_css( $css ); |
|
114 | + $css = apply_filters('lsx_customizer_colour_selectors_footer', $css, $colors); |
|
115 | + $css = parent::scss_to_css($css); |
|
116 | 116 | |
117 | 117 | return $css; |
118 | 118 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! class_exists( 'LSX_Customizer_Colour_Button_Secondary' ) ) { |
|
2 | +if ( ! class_exists('LSX_Customizer_Colour_Button_Secondary')) { |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * LSX Customizer Colour Button Secondary Class |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | * @since 1.0.0 |
19 | 19 | */ |
20 | 20 | public function __construct() { |
21 | - add_action( 'after_switch_theme', array( $this, 'set_theme_mod' ) ); |
|
22 | - add_action( 'customize_save_after', array( $this, 'set_theme_mod' ) ); |
|
21 | + add_action('after_switch_theme', array($this, 'set_theme_mod')); |
|
22 | + add_action('customize_save_after', array($this, 'set_theme_mod')); |
|
23 | 23 | |
24 | - add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_css' ), 2999 ); |
|
24 | + add_action('wp_enqueue_scripts', array($this, 'enqueue_css'), 2999); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function set_theme_mod() { |
33 | 33 | $theme_mods = $this->get_theme_mods(); |
34 | - $styles = $this->get_css( $theme_mods ); |
|
34 | + $styles = $this->get_css($theme_mods); |
|
35 | 35 | |
36 | - set_theme_mod( 'lsx_customizer_colour__button_secondary_theme_mod', $styles ); |
|
36 | + set_theme_mod('lsx_customizer_colour__button_secondary_theme_mod', $styles); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -42,20 +42,20 @@ discard block |
||
42 | 42 | * @since 1.0.0 |
43 | 43 | */ |
44 | 44 | public function enqueue_css() { |
45 | - $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__button_secondary_theme_mod' ); |
|
45 | + $styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__button_secondary_theme_mod'); |
|
46 | 46 | |
47 | - if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
47 | + if (is_customize_preview() || false === $styles_from_theme_mod) { |
|
48 | 48 | $theme_mods = $this->get_theme_mods(); |
49 | - $styles = $this->get_css( $theme_mods ); |
|
49 | + $styles = $this->get_css($theme_mods); |
|
50 | 50 | |
51 | - if ( false === $styles_from_theme_mod ) { |
|
52 | - set_theme_mod( 'lsx_customizer_colour__button_secondary_theme_mod', $styles ); |
|
51 | + if (false === $styles_from_theme_mod) { |
|
52 | + set_theme_mod('lsx_customizer_colour__button_secondary_theme_mod', $styles); |
|
53 | 53 | } |
54 | 54 | } else { |
55 | 55 | $styles = $styles_from_theme_mod; |
56 | 56 | } |
57 | 57 | |
58 | - wp_add_inline_style( 'lsx-customizer', $styles ); |
|
58 | + wp_add_inline_style('lsx-customizer', $styles); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -66,13 +66,13 @@ discard block |
||
66 | 66 | public function get_theme_mods() { |
67 | 67 | $colors = parent::get_color_scheme(); |
68 | 68 | |
69 | - return apply_filters( 'lsx_customizer_colours_button_secondary', array( |
|
70 | - 'button_secondary_background_color' => get_theme_mod( 'button_secondary_background_color', $colors['button_secondary_background_color'] ), |
|
71 | - 'button_secondary_background_hover_color' => get_theme_mod( 'button_secondary_background_hover_color', $colors['button_secondary_background_hover_color'] ), |
|
72 | - 'button_secondary_text_color' => get_theme_mod( 'button_secondary_text_color', $colors['button_secondary_text_color'] ), |
|
73 | - 'button_secondary_text_color_hover' => get_theme_mod( 'button_secondary_text_color_hover', $colors['button_secondary_text_color_hover'] ), |
|
74 | - 'button_secondary_shadow' => get_theme_mod( 'button_secondary_shadow', $colors['button_secondary_shadow'] ), |
|
75 | - ) ); |
|
69 | + return apply_filters('lsx_customizer_colours_button_secondary', array( |
|
70 | + 'button_secondary_background_color' => get_theme_mod('button_secondary_background_color', $colors['button_secondary_background_color']), |
|
71 | + 'button_secondary_background_hover_color' => get_theme_mod('button_secondary_background_hover_color', $colors['button_secondary_background_hover_color']), |
|
72 | + 'button_secondary_text_color' => get_theme_mod('button_secondary_text_color', $colors['button_secondary_text_color']), |
|
73 | + 'button_secondary_text_color_hover' => get_theme_mod('button_secondary_text_color_hover', $colors['button_secondary_text_color_hover']), |
|
74 | + 'button_secondary_shadow' => get_theme_mod('button_secondary_shadow', $colors['button_secondary_shadow']), |
|
75 | + )); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -80,22 +80,22 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @since 1.0.0 |
82 | 82 | */ |
83 | - function get_css( $colors ) { |
|
83 | + function get_css($colors) { |
|
84 | 84 | global $customizer_colour_names; |
85 | 85 | |
86 | 86 | $colors_template = array(); |
87 | 87 | |
88 | - foreach ( $customizer_colour_names as $key => $value ) { |
|
89 | - $colors_template[ $key ] = ''; |
|
88 | + foreach ($customizer_colour_names as $key => $value) { |
|
89 | + $colors_template[$key] = ''; |
|
90 | 90 | } |
91 | 91 | |
92 | - $colors = wp_parse_args( $colors, $colors_template ); |
|
92 | + $colors = wp_parse_args($colors, $colors_template); |
|
93 | 93 | |
94 | - if ( empty( $colors['button_secondary_text_color'] ) |
|
95 | - || empty( $colors['button_secondary_text_color_hover'] ) |
|
96 | - || empty( $colors['button_secondary_background_color'] ) |
|
97 | - || empty( $colors['button_secondary_background_hover_color'] ) |
|
98 | - || empty( $colors['button_secondary_shadow'] ) ) { |
|
94 | + if (empty($colors['button_secondary_text_color']) |
|
95 | + || empty($colors['button_secondary_text_color_hover']) |
|
96 | + || empty($colors['button_secondary_background_color']) |
|
97 | + || empty($colors['button_secondary_background_hover_color']) |
|
98 | + || empty($colors['button_secondary_shadow'])) { |
|
99 | 99 | return ''; |
100 | 100 | } |
101 | 101 | |
@@ -114,8 +114,8 @@ discard block |
||
114 | 114 | ); |
115 | 115 | '; |
116 | 116 | |
117 | - $css = apply_filters( 'lsx_customizer_colour_selectors_button_secondary', $css, $colors ); |
|
118 | - $css = parent::scss_to_css( $css ); |
|
117 | + $css = apply_filters('lsx_customizer_colour_selectors_button_secondary', $css, $colors); |
|
118 | + $css = parent::scss_to_css($css); |
|
119 | 119 | |
120 | 120 | return $css; |
121 | 121 | } |
@@ -12,6 +12,6 @@ |
||
12 | 12 | /** |
13 | 13 | * Converts a HEX value to RGB. |
14 | 14 | */ |
15 | -function lsx_customizer_colour__hex2rgb( $color ) { |
|
16 | - return LSX_Customizer_Colour::hex2rgb( $color ); |
|
15 | +function lsx_customizer_colour__hex2rgb($color) { |
|
16 | + return LSX_Customizer_Colour::hex2rgb($color); |
|
17 | 17 | } |
@@ -12,97 +12,97 @@ discard block |
||
12 | 12 | global $customizer_colour_names; |
13 | 13 | global $customizer_colour_choices; |
14 | 14 | |
15 | -$customizer_colour_names = apply_filters( 'lsx_customizer_colour_names', array( |
|
16 | - 'button_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
17 | - 'button_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ), |
|
18 | - 'button_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
19 | - 'button_text_color_hover' => esc_html__( 'Text (hover)', 'lsx-customizer' ), |
|
20 | - 'button_shadow' => esc_html__( 'Shadow', 'lsx-customizer' ), |
|
21 | - |
|
22 | - 'button_cta_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
23 | - 'button_cta_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ), |
|
24 | - 'button_cta_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
25 | - 'button_cta_text_color_hover' => esc_html__( 'Text (hover)', 'lsx-customizer' ), |
|
26 | - 'button_cta_shadow' => esc_html__( 'Shadow', 'lsx-customizer' ), |
|
27 | - |
|
28 | - 'button_secondary_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
29 | - 'button_secondary_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ), |
|
30 | - 'button_secondary_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
31 | - 'button_secondary_text_color_hover' => esc_html__( 'Text (hover)', 'lsx-customizer' ), |
|
32 | - 'button_secondary_shadow' => esc_html__( 'Shadow', 'lsx-customizer' ), |
|
33 | - |
|
34 | - 'button_tertiary_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
35 | - 'button_tertiary_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ), |
|
36 | - 'button_tertiary_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
37 | - 'button_tertiary_text_color_hover' => esc_html__( 'Text (hover)', 'lsx-customizer' ), |
|
38 | - 'button_tertiary_shadow' => esc_html__( 'Shadow', 'lsx-customizer' ), |
|
39 | - |
|
40 | - 'top_menu_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
41 | - 'top_menu_link_color' => esc_html__( 'Link', 'lsx-customizer' ), |
|
42 | - 'top_menu_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ), |
|
43 | - 'top_menu_icon_color' => esc_html__( 'Icon', 'lsx-customizer' ), |
|
44 | - 'top_menu_icon_hover_color' => esc_html__( 'Icon (hover)', 'lsx-customizer' ), |
|
45 | - 'top_menu_dropdown_color' => esc_html__( 'Dropdown', 'lsx-customizer' ), |
|
46 | - 'top_menu_dropdown_hover_color' => esc_html__( 'Dropdown (hover)', 'lsx-customizer' ), |
|
47 | - 'top_menu_dropdown_link_color' => esc_html__( 'Dropdown link', 'lsx-customizer' ), |
|
48 | - 'top_menu_dropdown_link_hover_color' => esc_html__( 'Dropdown link (hover)', 'lsx-customizer' ), |
|
49 | - |
|
50 | - 'header_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
51 | - 'header_link_color' => esc_html__( 'Link', 'lsx-customizer' ), |
|
52 | - 'header_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ), |
|
53 | - 'header_description_color' => esc_html__( 'Description', 'lsx-customizer' ), |
|
54 | - |
|
55 | - 'main_menu_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
56 | - 'main_menu_link_color' => esc_html__( 'Link', 'lsx-customizer' ), |
|
57 | - 'main_menu_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ), |
|
58 | - 'main_menu_dropdown_background_color' => esc_html__( 'Dropdown', 'lsx-customizer' ), |
|
59 | - 'main_menu_dropdown_background_hover_color' => esc_html__( 'Dropdown (hover)', 'lsx-customizer' ), |
|
60 | - 'main_menu_dropdown_link_color' => esc_html__( 'Dropdown link', 'lsx-customizer' ), |
|
61 | - 'main_menu_dropdown_link_hover_color' => esc_html__( 'Dropdown link (hover)', 'lsx-customizer' ), |
|
62 | - |
|
63 | - 'banner_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
64 | - 'banner_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
65 | - 'banner_text_image_color' => esc_html__( 'Text (over image)', 'lsx-customizer' ), |
|
66 | - 'banner_breadcrumb_background_color' => esc_html__( 'Breadcrumb Background', 'lsx-customizer' ), |
|
67 | - 'banner_breadcrumb_text_color' => esc_html__( 'Breadcrumb Text', 'lsx-customizer' ), |
|
68 | - 'banner_breadcrumb_text_selected_color' => esc_html__( 'Breadcrumb Text (selected)', 'lsx-customizer' ), |
|
69 | - |
|
70 | - 'background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
71 | - 'body_line_color' => esc_html__( 'Line', 'lsx-customizer' ), |
|
72 | - 'body_text_heading_color' => esc_html__( 'Text (heading)', 'lsx-customizer' ), |
|
73 | - 'body_text_small_color' => esc_html__( 'Text (small)', 'lsx-customizer' ), |
|
74 | - 'body_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
75 | - 'body_link_color' => esc_html__( 'Link', 'lsx-customizer' ), |
|
76 | - 'body_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ), |
|
77 | - 'body_section_full_background_color' => esc_html__( 'Section full (background)', 'lsx-customizer' ), |
|
78 | - 'body_section_full_text_color' => esc_html__( 'Section full (text)', 'lsx-customizer' ), |
|
79 | - 'body_section_full_link_color' => esc_html__( 'Section full (link)', 'lsx-customizer' ), |
|
80 | - 'body_section_full_link_hover_color' => esc_html__( 'Section full (link hover)', 'lsx-customizer' ), |
|
81 | - 'body_section_full_cta_background_color' => esc_html__( 'Section full CTA (background)', 'lsx-customizer' ), |
|
82 | - 'body_section_full_cta_text_color' => esc_html__( 'Section full CTA (text)', 'lsx-customizer' ), |
|
83 | - 'body_section_full_cta_link_color' => esc_html__( 'Section full CTA (link)', 'lsx-customizer' ), |
|
84 | - 'body_section_full_cta_link_hover_color' => esc_html__( 'Section full CTA (link hover)', 'lsx-customizer' ), |
|
85 | - |
|
86 | - 'footer_cta_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
87 | - 'footer_cta_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
88 | - 'footer_cta_link_color' => esc_html__( 'Link', 'lsx-customizer' ), |
|
89 | - 'footer_cta_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ), |
|
90 | - |
|
91 | - 'footer_widgets_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
92 | - 'footer_widgets_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
93 | - 'footer_widgets_link_color' => esc_html__( 'Link', 'lsx-customizer' ), |
|
94 | - 'footer_widgets_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ), |
|
95 | - |
|
96 | - 'footer_background_color' => esc_html__( 'Background', 'lsx-customizer' ), |
|
97 | - 'footer_text_color' => esc_html__( 'Text', 'lsx-customizer' ), |
|
98 | - 'footer_link_color' => esc_html__( 'Link', 'lsx-customizer' ), |
|
99 | - 'footer_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ), |
|
100 | -) ); |
|
101 | - |
|
102 | -$customizer_colour_choices = apply_filters( 'lsx_customizer_colour_choices', array( |
|
15 | +$customizer_colour_names = apply_filters('lsx_customizer_colour_names', array( |
|
16 | + 'button_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
17 | + 'button_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'), |
|
18 | + 'button_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
19 | + 'button_text_color_hover' => esc_html__('Text (hover)', 'lsx-customizer'), |
|
20 | + 'button_shadow' => esc_html__('Shadow', 'lsx-customizer'), |
|
21 | + |
|
22 | + 'button_cta_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
23 | + 'button_cta_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'), |
|
24 | + 'button_cta_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
25 | + 'button_cta_text_color_hover' => esc_html__('Text (hover)', 'lsx-customizer'), |
|
26 | + 'button_cta_shadow' => esc_html__('Shadow', 'lsx-customizer'), |
|
27 | + |
|
28 | + 'button_secondary_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
29 | + 'button_secondary_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'), |
|
30 | + 'button_secondary_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
31 | + 'button_secondary_text_color_hover' => esc_html__('Text (hover)', 'lsx-customizer'), |
|
32 | + 'button_secondary_shadow' => esc_html__('Shadow', 'lsx-customizer'), |
|
33 | + |
|
34 | + 'button_tertiary_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
35 | + 'button_tertiary_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'), |
|
36 | + 'button_tertiary_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
37 | + 'button_tertiary_text_color_hover' => esc_html__('Text (hover)', 'lsx-customizer'), |
|
38 | + 'button_tertiary_shadow' => esc_html__('Shadow', 'lsx-customizer'), |
|
39 | + |
|
40 | + 'top_menu_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
41 | + 'top_menu_link_color' => esc_html__('Link', 'lsx-customizer'), |
|
42 | + 'top_menu_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'), |
|
43 | + 'top_menu_icon_color' => esc_html__('Icon', 'lsx-customizer'), |
|
44 | + 'top_menu_icon_hover_color' => esc_html__('Icon (hover)', 'lsx-customizer'), |
|
45 | + 'top_menu_dropdown_color' => esc_html__('Dropdown', 'lsx-customizer'), |
|
46 | + 'top_menu_dropdown_hover_color' => esc_html__('Dropdown (hover)', 'lsx-customizer'), |
|
47 | + 'top_menu_dropdown_link_color' => esc_html__('Dropdown link', 'lsx-customizer'), |
|
48 | + 'top_menu_dropdown_link_hover_color' => esc_html__('Dropdown link (hover)', 'lsx-customizer'), |
|
49 | + |
|
50 | + 'header_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
51 | + 'header_link_color' => esc_html__('Link', 'lsx-customizer'), |
|
52 | + 'header_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'), |
|
53 | + 'header_description_color' => esc_html__('Description', 'lsx-customizer'), |
|
54 | + |
|
55 | + 'main_menu_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
56 | + 'main_menu_link_color' => esc_html__('Link', 'lsx-customizer'), |
|
57 | + 'main_menu_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'), |
|
58 | + 'main_menu_dropdown_background_color' => esc_html__('Dropdown', 'lsx-customizer'), |
|
59 | + 'main_menu_dropdown_background_hover_color' => esc_html__('Dropdown (hover)', 'lsx-customizer'), |
|
60 | + 'main_menu_dropdown_link_color' => esc_html__('Dropdown link', 'lsx-customizer'), |
|
61 | + 'main_menu_dropdown_link_hover_color' => esc_html__('Dropdown link (hover)', 'lsx-customizer'), |
|
62 | + |
|
63 | + 'banner_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
64 | + 'banner_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
65 | + 'banner_text_image_color' => esc_html__('Text (over image)', 'lsx-customizer'), |
|
66 | + 'banner_breadcrumb_background_color' => esc_html__('Breadcrumb Background', 'lsx-customizer'), |
|
67 | + 'banner_breadcrumb_text_color' => esc_html__('Breadcrumb Text', 'lsx-customizer'), |
|
68 | + 'banner_breadcrumb_text_selected_color' => esc_html__('Breadcrumb Text (selected)', 'lsx-customizer'), |
|
69 | + |
|
70 | + 'background_color' => esc_html__('Background', 'lsx-customizer'), |
|
71 | + 'body_line_color' => esc_html__('Line', 'lsx-customizer'), |
|
72 | + 'body_text_heading_color' => esc_html__('Text (heading)', 'lsx-customizer'), |
|
73 | + 'body_text_small_color' => esc_html__('Text (small)', 'lsx-customizer'), |
|
74 | + 'body_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
75 | + 'body_link_color' => esc_html__('Link', 'lsx-customizer'), |
|
76 | + 'body_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'), |
|
77 | + 'body_section_full_background_color' => esc_html__('Section full (background)', 'lsx-customizer'), |
|
78 | + 'body_section_full_text_color' => esc_html__('Section full (text)', 'lsx-customizer'), |
|
79 | + 'body_section_full_link_color' => esc_html__('Section full (link)', 'lsx-customizer'), |
|
80 | + 'body_section_full_link_hover_color' => esc_html__('Section full (link hover)', 'lsx-customizer'), |
|
81 | + 'body_section_full_cta_background_color' => esc_html__('Section full CTA (background)', 'lsx-customizer'), |
|
82 | + 'body_section_full_cta_text_color' => esc_html__('Section full CTA (text)', 'lsx-customizer'), |
|
83 | + 'body_section_full_cta_link_color' => esc_html__('Section full CTA (link)', 'lsx-customizer'), |
|
84 | + 'body_section_full_cta_link_hover_color' => esc_html__('Section full CTA (link hover)', 'lsx-customizer'), |
|
85 | + |
|
86 | + 'footer_cta_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
87 | + 'footer_cta_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
88 | + 'footer_cta_link_color' => esc_html__('Link', 'lsx-customizer'), |
|
89 | + 'footer_cta_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'), |
|
90 | + |
|
91 | + 'footer_widgets_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
92 | + 'footer_widgets_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
93 | + 'footer_widgets_link_color' => esc_html__('Link', 'lsx-customizer'), |
|
94 | + 'footer_widgets_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'), |
|
95 | + |
|
96 | + 'footer_background_color' => esc_html__('Background', 'lsx-customizer'), |
|
97 | + 'footer_text_color' => esc_html__('Text', 'lsx-customizer'), |
|
98 | + 'footer_link_color' => esc_html__('Link', 'lsx-customizer'), |
|
99 | + 'footer_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'), |
|
100 | +)); |
|
101 | + |
|
102 | +$customizer_colour_choices = apply_filters('lsx_customizer_colour_choices', array( |
|
103 | 103 | 'default' => array( |
104 | - 'label' => __( 'Default', 'lsx-customizer' ), |
|
105 | - 'colors' => apply_filters( 'lsx_customizer_colour_choices_default', array( |
|
104 | + 'label' => __('Default', 'lsx-customizer'), |
|
105 | + 'colors' => apply_filters('lsx_customizer_colour_choices_default', array( |
|
106 | 106 | 'button_background_color' => '#418AD0', |
107 | 107 | 'button_background_hover_color' => '#367DC0', |
108 | 108 | 'button_text_color' => '#FFFFFF', |
@@ -187,11 +187,11 @@ discard block |
||
187 | 187 | 'footer_text_color' => '#ffffff', |
188 | 188 | 'footer_link_color' => '#F7AE00', |
189 | 189 | 'footer_link_hover_color' => '#CE9100', |
190 | - ) ), |
|
190 | + )), |
|
191 | 191 | ), |
192 | 192 | 'red' => array( |
193 | - 'label' => __( 'Red', 'lsx-customizer' ), |
|
194 | - 'colors' => apply_filters( 'lsx_customizer_colour_choices_red', array( |
|
193 | + 'label' => __('Red', 'lsx-customizer'), |
|
194 | + 'colors' => apply_filters('lsx_customizer_colour_choices_red', array( |
|
195 | 195 | 'button_background_color' => '#b64d3f', |
196 | 196 | 'button_background_hover_color' => '#87291c', |
197 | 197 | 'button_text_color' => '#ffffff', |
@@ -276,11 +276,11 @@ discard block |
||
276 | 276 | 'footer_text_color' => '#ffffff', |
277 | 277 | 'footer_link_color' => '#b64d3f', |
278 | 278 | 'footer_link_hover_color' => '#969696', |
279 | - ) ), |
|
279 | + )), |
|
280 | 280 | ), |
281 | 281 | 'orange' => array( |
282 | - 'label' => __( 'Orange', 'lsx-customizer' ), |
|
283 | - 'colors' => apply_filters( 'lsx_customizer_colour_choices_orange', array( |
|
282 | + 'label' => __('Orange', 'lsx-customizer'), |
|
283 | + 'colors' => apply_filters('lsx_customizer_colour_choices_orange', array( |
|
284 | 284 | 'button_background_color' => '#fbaf3f', |
285 | 285 | 'button_background_hover_color' => '#e49435', |
286 | 286 | 'button_text_color' => '#260e03', |
@@ -365,11 +365,11 @@ discard block |
||
365 | 365 | 'footer_text_color' => '#ffffff', |
366 | 366 | 'footer_link_color' => '#e4701e', |
367 | 367 | 'footer_link_hover_color' => '#969696', |
368 | - ) ), |
|
368 | + )), |
|
369 | 369 | ), |
370 | 370 | 'green' => array( |
371 | - 'label' => __( 'Green', 'lsx-customizer' ), |
|
372 | - 'colors' => apply_filters( 'lsx_customizer_colour_choices_green', array( |
|
371 | + 'label' => __('Green', 'lsx-customizer'), |
|
372 | + 'colors' => apply_filters('lsx_customizer_colour_choices_green', array( |
|
373 | 373 | 'button_background_color' => '#596b46', |
374 | 374 | 'button_background_hover_color' => '#3d4a30', |
375 | 375 | 'button_text_color' => '#ffffff', |
@@ -454,11 +454,11 @@ discard block |
||
454 | 454 | 'footer_text_color' => '#ffffff', |
455 | 455 | 'footer_link_color' => '#596b46', |
456 | 456 | 'footer_link_hover_color' => '#969696', |
457 | - ) ), |
|
457 | + )), |
|
458 | 458 | ), |
459 | 459 | 'brown' => array( |
460 | - 'label' => __( 'Brown', 'lsx-customizer' ), |
|
461 | - 'colors' => apply_filters( 'lsx_customizer_colour_choices_brown', array( |
|
460 | + 'label' => __('Brown', 'lsx-customizer'), |
|
461 | + 'colors' => apply_filters('lsx_customizer_colour_choices_brown', array( |
|
462 | 462 | 'button_background_color' => '#8c6a45', |
463 | 463 | 'button_background_hover_color' => '#5b452e', |
464 | 464 | 'button_text_color' => '#ffffff', |
@@ -543,6 +543,6 @@ discard block |
||
543 | 543 | 'footer_text_color' => '#ffffff', |
544 | 544 | 'footer_link_color' => '#8c6a45', |
545 | 545 | 'footer_link_hover_color' => '#969696', |
546 | - ) ), |
|
546 | + )), |
|
547 | 547 | ), |
548 | -) ); |
|
548 | +)); |
@@ -5,72 +5,72 @@ discard block |
||
5 | 5 | * |
6 | 6 | * Add two new colors (test) in main array of colors |
7 | 7 | */ |
8 | -function test_lsx_customizer_colour_names( $array ) { |
|
9 | - $array['test_text_color'] = esc_html__( 'TEST: Text', 'lsx-customizer' ); |
|
10 | - $array['test_text_color_hover'] = esc_html__( 'TEST: Text (hover)', 'lsx-customizer' ); |
|
8 | +function test_lsx_customizer_colour_names($array) { |
|
9 | + $array['test_text_color'] = esc_html__('TEST: Text', 'lsx-customizer'); |
|
10 | + $array['test_text_color_hover'] = esc_html__('TEST: Text (hover)', 'lsx-customizer'); |
|
11 | 11 | return $array; |
12 | 12 | } |
13 | -add_filter( 'lsx_customizer_colour_names', 'test_lsx_customizer_colour_names' ); |
|
13 | +add_filter('lsx_customizer_colour_names', 'test_lsx_customizer_colour_names'); |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Filter: lsx_customizer_colour_choices_default |
17 | 17 | * |
18 | 18 | * Add the new colors (test) in default scheme |
19 | 19 | */ |
20 | -function test_lsx_customizer_colour_choices_default( $array ) { |
|
20 | +function test_lsx_customizer_colour_choices_default($array) { |
|
21 | 21 | $array['test_text_color'] = '#ddddd1'; |
22 | 22 | $array['test_text_color_hover'] = '#eeeee1'; |
23 | 23 | return $array; |
24 | 24 | } |
25 | -add_filter( 'lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default' ); |
|
25 | +add_filter('lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default'); |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Filter: lsx_customizer_colour_choices_red |
29 | 29 | * |
30 | 30 | * Add the new colors (test) in red scheme |
31 | 31 | */ |
32 | -function test_lsx_customizer_colour_choices_red( $array ) { |
|
32 | +function test_lsx_customizer_colour_choices_red($array) { |
|
33 | 33 | $array['test_text_color'] = '#ddddd2'; |
34 | 34 | $array['test_text_color_hover'] = '#eeeee2'; |
35 | 35 | return $array; |
36 | 36 | } |
37 | -add_filter( 'lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red' ); |
|
37 | +add_filter('lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red'); |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Filter: lsx_customizer_colour_choices_orange |
41 | 41 | * |
42 | 42 | * Add the new colors (test) in orange scheme |
43 | 43 | */ |
44 | -function test_lsx_customizer_colour_choices_orange( $array ) { |
|
44 | +function test_lsx_customizer_colour_choices_orange($array) { |
|
45 | 45 | $array['test_text_color'] = '#ddddd3'; |
46 | 46 | $array['test_text_color_hover'] = '#eeeee3'; |
47 | 47 | return $array; |
48 | 48 | } |
49 | -add_filter( 'lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange' ); |
|
49 | +add_filter('lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange'); |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Filter: lsx_customizer_colour_choices_green |
53 | 53 | * |
54 | 54 | * Add the new colors (test) in green scheme |
55 | 55 | */ |
56 | -function test_lsx_customizer_colour_choices_green( $array ) { |
|
56 | +function test_lsx_customizer_colour_choices_green($array) { |
|
57 | 57 | $array['test_text_color'] = '#ddddd4'; |
58 | 58 | $array['test_text_color_hover'] = '#eeeee4'; |
59 | 59 | return $array; |
60 | 60 | } |
61 | -add_filter( 'lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green' ); |
|
61 | +add_filter('lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green'); |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Filter: lsx_customizer_colour_choices_brown |
65 | 65 | * |
66 | 66 | * Add the new colors (test) in brown scheme |
67 | 67 | */ |
68 | -function test_lsx_customizer_colour_choices_brown( $array ) { |
|
68 | +function test_lsx_customizer_colour_choices_brown($array) { |
|
69 | 69 | $array['test_text_color'] = '#ddddd5'; |
70 | 70 | $array['test_text_color_hover'] = '#eeeee5'; |
71 | 71 | return $array; |
72 | 72 | } |
73 | -add_filter( 'lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown' ); |
|
73 | +add_filter('lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown'); |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Filter: lsx_customizer_colour_choices |
@@ -78,9 +78,9 @@ discard block |
||
78 | 78 | * Add a new scheme |
79 | 79 | * Also add the new colors (test) in new scheme |
80 | 80 | */ |
81 | -function test_lsx_customizer_colour_choices( $array ) { |
|
81 | +function test_lsx_customizer_colour_choices($array) { |
|
82 | 82 | $array['test'] = array( |
83 | - 'label' => esc_html__( 'Test', 'lsx-customizer' ), |
|
83 | + 'label' => esc_html__('Test', 'lsx-customizer'), |
|
84 | 84 | 'colors' => array( |
85 | 85 | 'button_background_color' => '#428bca', |
86 | 86 | 'button_background_hover_color' => '#2a6496', |
@@ -162,14 +162,14 @@ discard block |
||
162 | 162 | |
163 | 163 | return $array; |
164 | 164 | } |
165 | -add_filter( 'lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices' ); |
|
165 | +add_filter('lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices'); |
|
166 | 166 | |
167 | 167 | /** |
168 | 168 | * Filter: lsx_customizer_colour_selectors_button |
169 | 169 | * |
170 | 170 | * Add new selectors in "button" group of colours |
171 | 171 | */ |
172 | -function test_lsx_customizer_colour_selectors_button( $css, $colors ) { |
|
172 | +function test_lsx_customizer_colour_selectors_button($css, $colors) { |
|
173 | 173 | $css .= <<<CSS |
174 | 174 | |
175 | 175 | /* Button TEST */ |
@@ -185,14 +185,14 @@ discard block |
||
185 | 185 | |
186 | 186 | return $css; |
187 | 187 | } |
188 | -add_filter( 'lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2 ); |
|
188 | +add_filter('lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2); |
|
189 | 189 | |
190 | 190 | /** |
191 | 191 | * Filter: lsx_customizer_colour_selectors_button_cta |
192 | 192 | * |
193 | 193 | * Add new selectors in "button cta" group of colours |
194 | 194 | */ |
195 | -function test_lsx_customizer_colour_selectors_button_cta( $css, $colors ) { |
|
195 | +function test_lsx_customizer_colour_selectors_button_cta($css, $colors) { |
|
196 | 196 | $css .= <<<CSS |
197 | 197 | |
198 | 198 | /* Button CTA TEST */ |
@@ -208,14 +208,14 @@ discard block |
||
208 | 208 | |
209 | 209 | return $css; |
210 | 210 | } |
211 | -add_filter( 'lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2 ); |
|
211 | +add_filter('lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2); |
|
212 | 212 | |
213 | 213 | /** |
214 | 214 | * Filter: lsx_customizer_colour_selectors_top_menu |
215 | 215 | * |
216 | 216 | * Add new selectors in "top menu" group of colours |
217 | 217 | */ |
218 | -function test_lsx_customizer_colour_selectors_top_menu( $css, $colors ) { |
|
218 | +function test_lsx_customizer_colour_selectors_top_menu($css, $colors) { |
|
219 | 219 | $css .= <<<CSS |
220 | 220 | |
221 | 221 | /* Top Menu TEST */ |
@@ -235,14 +235,14 @@ discard block |
||
235 | 235 | |
236 | 236 | return $css; |
237 | 237 | } |
238 | -add_filter( 'lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2 ); |
|
238 | +add_filter('lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2); |
|
239 | 239 | |
240 | 240 | /** |
241 | 241 | * Filter: lsx_customizer_colour_selectors_header |
242 | 242 | * |
243 | 243 | * Add new selectors in "header" group of colours |
244 | 244 | */ |
245 | -function test_lsx_customizer_colour_selectors_header( $css, $colors ) { |
|
245 | +function test_lsx_customizer_colour_selectors_header($css, $colors) { |
|
246 | 246 | $css .= <<<CSS |
247 | 247 | |
248 | 248 | /* Header TEST */ |
@@ -257,14 +257,14 @@ discard block |
||
257 | 257 | |
258 | 258 | return $css; |
259 | 259 | } |
260 | -add_filter( 'lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2 ); |
|
260 | +add_filter('lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2); |
|
261 | 261 | |
262 | 262 | /** |
263 | 263 | * Filter: lsx_customizer_colour_selectors_main_menu |
264 | 264 | * |
265 | 265 | * Add new selectors in "main meun" group of colours |
266 | 266 | */ |
267 | -function test_lsx_customizer_colour_selectors_main_menu( $css, $colors ) { |
|
267 | +function test_lsx_customizer_colour_selectors_main_menu($css, $colors) { |
|
268 | 268 | $css .= <<<CSS |
269 | 269 | |
270 | 270 | /* Main Menu TEST */ |
@@ -282,14 +282,14 @@ discard block |
||
282 | 282 | |
283 | 283 | return $css; |
284 | 284 | } |
285 | -add_filter( 'lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2 ); |
|
285 | +add_filter('lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2); |
|
286 | 286 | |
287 | 287 | /** |
288 | 288 | * Filter: lsx_customizer_colour_selectors_banner |
289 | 289 | * |
290 | 290 | * Add new selectors in "banner" group of colours |
291 | 291 | */ |
292 | -function test_lsx_customizer_colour_selectors_banner( $css, $colors ) { |
|
292 | +function test_lsx_customizer_colour_selectors_banner($css, $colors) { |
|
293 | 293 | $css .= <<<CSS |
294 | 294 | |
295 | 295 | /* Banner TEST */ |
@@ -306,14 +306,14 @@ discard block |
||
306 | 306 | |
307 | 307 | return $css; |
308 | 308 | } |
309 | -add_filter( 'lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2 ); |
|
309 | +add_filter('lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2); |
|
310 | 310 | |
311 | 311 | /** |
312 | 312 | * Filter: lsx_customizer_colour_selectors_body |
313 | 313 | * |
314 | 314 | * Add new selectors in "body" group of colours |
315 | 315 | */ |
316 | -function test_lsx_customizer_colour_selectors_body( $css, $colors ) { |
|
316 | +function test_lsx_customizer_colour_selectors_body($css, $colors) { |
|
317 | 317 | $css .= <<<CSS |
318 | 318 | |
319 | 319 | /* Body TEST */ |
@@ -340,14 +340,14 @@ discard block |
||
340 | 340 | |
341 | 341 | return $css; |
342 | 342 | } |
343 | -add_filter( 'lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2 ); |
|
343 | +add_filter('lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2); |
|
344 | 344 | |
345 | 345 | /** |
346 | 346 | * Filter: lsx_customizer_colour_selectors_footer_cta |
347 | 347 | * |
348 | 348 | * Add new selectors in "footer cta" group of colours |
349 | 349 | */ |
350 | -function test_lsx_customizer_colour_selectors_footer_cta( $css, $colors ) { |
|
350 | +function test_lsx_customizer_colour_selectors_footer_cta($css, $colors) { |
|
351 | 351 | $css .= <<<CSS |
352 | 352 | |
353 | 353 | /* Footer CTA TEST */ |
@@ -362,14 +362,14 @@ discard block |
||
362 | 362 | |
363 | 363 | return $css; |
364 | 364 | } |
365 | -add_filter( 'lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2 ); |
|
365 | +add_filter('lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2); |
|
366 | 366 | |
367 | 367 | /** |
368 | 368 | * Filter: lsx_customizer_colour_selectors_footer_widgets |
369 | 369 | * |
370 | 370 | * Add new selectors in "footer widgets" group of colours |
371 | 371 | */ |
372 | -function test_lsx_customizer_colour_selectors_footer_widgets( $css, $colors ) { |
|
372 | +function test_lsx_customizer_colour_selectors_footer_widgets($css, $colors) { |
|
373 | 373 | $css .= <<<CSS |
374 | 374 | |
375 | 375 | /* Footer Widgets TEST */ |
@@ -384,14 +384,14 @@ discard block |
||
384 | 384 | |
385 | 385 | return $css; |
386 | 386 | } |
387 | -add_filter( 'lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2 ); |
|
387 | +add_filter('lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2); |
|
388 | 388 | |
389 | 389 | /** |
390 | 390 | * Filter: lsx_customizer_colour_selectors_footer |
391 | 391 | * |
392 | 392 | * Add new selectors in "footer" group of colours |
393 | 393 | */ |
394 | -function test_lsx_customizer_colour_selectors_footer( $css, $colors ) { |
|
394 | +function test_lsx_customizer_colour_selectors_footer($css, $colors) { |
|
395 | 395 | $css .= <<<CSS |
396 | 396 | |
397 | 397 | /* Footer TEST */ |
@@ -406,4 +406,4 @@ discard block |
||
406 | 406 | |
407 | 407 | return $css; |
408 | 408 | } |
409 | -add_filter( 'lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2 ); |
|
409 | +add_filter('lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2); |