Completed
Push — master ( 125c3a...b7c677 )
by
unknown
03:45
created
inc/customizer-colour-options.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -1,71 +1,71 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 global $customizer_colour_names;
5 5
 global $customizer_colour_choices;
6 6
 
7
-$customizer_colour_names = apply_filters( 'lsx_customizer_colour_names', array(
8
-	'button_background_color'           => esc_html__( 'BUTTON: Background', 'lsx' ),
9
-	'button_background_hover_color'     => esc_html__( 'BUTTON: Background (hover)', 'lsx' ),
10
-	'button_text_color'                 => esc_html__( 'BUTTON: Text', 'lsx' ),
11
-	'button_text_color_hover'           => esc_html__( 'BUTTON: Text (hover)', 'lsx' ),
7
+$customizer_colour_names = apply_filters('lsx_customizer_colour_names', array(
8
+	'button_background_color'           => esc_html__('BUTTON: Background', 'lsx'),
9
+	'button_background_hover_color'     => esc_html__('BUTTON: Background (hover)', 'lsx'),
10
+	'button_text_color'                 => esc_html__('BUTTON: Text', 'lsx'),
11
+	'button_text_color_hover'           => esc_html__('BUTTON: Text (hover)', 'lsx'),
12 12
 
13
-	'button_cta_background_color'       => esc_html__( 'BUTTON CTA: Background', 'lsx' ),
14
-	'button_cta_background_hover_color' => esc_html__( 'BUTTON CTA: Background (hover)', 'lsx' ),
15
-	'button_cta_text_color'             => esc_html__( 'BUTTON CTA: Text', 'lsx' ),
16
-	'button_cta_text_color_hover'       => esc_html__( 'BUTTON CTA: Text (hover)', 'lsx' ),
13
+	'button_cta_background_color'       => esc_html__('BUTTON CTA: Background', 'lsx'),
14
+	'button_cta_background_hover_color' => esc_html__('BUTTON CTA: Background (hover)', 'lsx'),
15
+	'button_cta_text_color'             => esc_html__('BUTTON CTA: Text', 'lsx'),
16
+	'button_cta_text_color_hover'       => esc_html__('BUTTON CTA: Text (hover)', 'lsx'),
17 17
 
18
-	'top_menu_background_color'         => esc_html__( 'TOP MENU: Background', 'lsx' ),
19
-	'top_menu_text_color'               => esc_html__( 'TOP MENU: Text', 'lsx' ),
20
-	'top_menu_text_hover_color'         => esc_html__( 'TOP MENU: Text (hover)', 'lsx' ),
18
+	'top_menu_background_color'         => esc_html__('TOP MENU: Background', 'lsx'),
19
+	'top_menu_text_color'               => esc_html__('TOP MENU: Text', 'lsx'),
20
+	'top_menu_text_hover_color'         => esc_html__('TOP MENU: Text (hover)', 'lsx'),
21 21
 
22
-	'header_background_color'           => esc_html__( 'HEADER: Background', 'lsx' ),
23
-	'header_title_color'                => esc_html__( 'HEADER: Title', 'lsx' ),
24
-	'header_title_hover_color'          => esc_html__( 'HEADER: Title (hover)', 'lsx' ),
25
-	'header_description_color'          => esc_html__( 'HEADER: Description', 'lsx' ),
22
+	'header_background_color'           => esc_html__('HEADER: Background', 'lsx'),
23
+	'header_title_color'                => esc_html__('HEADER: Title', 'lsx'),
24
+	'header_title_hover_color'          => esc_html__('HEADER: Title (hover)', 'lsx'),
25
+	'header_description_color'          => esc_html__('HEADER: Description', 'lsx'),
26 26
 
27
-	'main_menu_background_hover1_color' => esc_html__( 'MENU: Background (L1 hover)', 'lsx' ),
28
-	'main_menu_background_hover2_color' => esc_html__( 'MENU: Background (L2 hover)', 'lsx' ),
29
-	'main_menu_text_color'              => esc_html__( 'MENU: Text (L1)', 'lsx' ),
30
-	'main_menu_text_hover1_color'       => esc_html__( 'MENU: Text (L1 hover)', 'lsx' ),
31
-	'main_menu_text_hover2_color'       => esc_html__( 'MENU: Text (L2 hover)', 'lsx' ),
27
+	'main_menu_background_hover1_color' => esc_html__('MENU: Background (L1 hover)', 'lsx'),
28
+	'main_menu_background_hover2_color' => esc_html__('MENU: Background (L2 hover)', 'lsx'),
29
+	'main_menu_text_color'              => esc_html__('MENU: Text (L1)', 'lsx'),
30
+	'main_menu_text_hover1_color'       => esc_html__('MENU: Text (L1 hover)', 'lsx'),
31
+	'main_menu_text_hover2_color'       => esc_html__('MENU: Text (L2 hover)', 'lsx'),
32 32
 
33
-	'banner_background_color'           => esc_html__( 'BANNER: Background', 'lsx' ),
34
-	'banner_text_color'                 => esc_html__( 'BANNER: Text', 'lsx' ),
35
-	'banner_text_image_color'           => esc_html__( 'BANNER: Text (over image)', 'lsx' ),
33
+	'banner_background_color'           => esc_html__('BANNER: Background', 'lsx'),
34
+	'banner_text_color'                 => esc_html__('BANNER: Text', 'lsx'),
35
+	'banner_text_image_color'           => esc_html__('BANNER: Text (over image)', 'lsx'),
36 36
 
37
-	'body_background_color'             => esc_html__( 'BODY: Background', 'lsx' ),
38
-	'body_line_color'                   => esc_html__( 'BODY: Line', 'lsx' ),
39
-	'body_text_heading_color'           => esc_html__( 'BODY: Text (heading)', 'lsx' ),
40
-	'body_text_color'                   => esc_html__( 'BODY: Text', 'lsx' ),
41
-	'body_link_color'                   => esc_html__( 'BODY: Link', 'lsx' ),
42
-	'body_link_hover_color'             => esc_html__( 'BODY: Link (hover)', 'lsx' ),
37
+	'body_background_color'             => esc_html__('BODY: Background', 'lsx'),
38
+	'body_line_color'                   => esc_html__('BODY: Line', 'lsx'),
39
+	'body_text_heading_color'           => esc_html__('BODY: Text (heading)', 'lsx'),
40
+	'body_text_color'                   => esc_html__('BODY: Text', 'lsx'),
41
+	'body_link_color'                   => esc_html__('BODY: Link', 'lsx'),
42
+	'body_link_hover_color'             => esc_html__('BODY: Link (hover)', 'lsx'),
43 43
 
44
-	'footer_cta_background_color'       => esc_html__( 'FOOTER CTA: Background', 'lsx' ),
45
-	'footer_cta_text_color'             => esc_html__( 'FOOTER CTA: Text', 'lsx' ),
46
-	'footer_cta_link_color'             => esc_html__( 'FOOTER CTA: Link', 'lsx' ),
47
-	'footer_cta_link_hover_color'       => esc_html__( 'FOOTER CTA: Link (hover)', 'lsx' ),
44
+	'footer_cta_background_color'       => esc_html__('FOOTER CTA: Background', 'lsx'),
45
+	'footer_cta_text_color'             => esc_html__('FOOTER CTA: Text', 'lsx'),
46
+	'footer_cta_link_color'             => esc_html__('FOOTER CTA: Link', 'lsx'),
47
+	'footer_cta_link_hover_color'       => esc_html__('FOOTER CTA: Link (hover)', 'lsx'),
48 48
 
49
-	'footer_widgets_background_color'   => esc_html__( 'FOOTER WIDGETS: Background', 'lsx' ),
50
-	'footer_widgets_text_color'         => esc_html__( 'FOOTER WIDGETS: Text', 'lsx' ),
51
-	'footer_widgets_link_color'         => esc_html__( 'FOOTER WIDGETS: Link', 'lsx' ),
52
-	'footer_widgets_link_hover_color'   => esc_html__( 'FOOTER WIDGETS: Link (hover)', 'lsx' ),
49
+	'footer_widgets_background_color'   => esc_html__('FOOTER WIDGETS: Background', 'lsx'),
50
+	'footer_widgets_text_color'         => esc_html__('FOOTER WIDGETS: Text', 'lsx'),
51
+	'footer_widgets_link_color'         => esc_html__('FOOTER WIDGETS: Link', 'lsx'),
52
+	'footer_widgets_link_hover_color'   => esc_html__('FOOTER WIDGETS: Link (hover)', 'lsx'),
53 53
 
54
-	'footer_background_color'           => esc_html__( 'FOOTER: Background', 'lsx' ),
55
-	'footer_text_color'                 => esc_html__( 'FOOTER: Text', 'lsx' ),
56
-	'footer_link_color'                 => esc_html__( 'FOOTER: Link', 'lsx' ),
57
-	'footer_link_hover_color'           => esc_html__( 'FOOTER: Link (hover)', 'lsx' ),
54
+	'footer_background_color'           => esc_html__('FOOTER: Background', 'lsx'),
55
+	'footer_text_color'                 => esc_html__('FOOTER: Text', 'lsx'),
56
+	'footer_link_color'                 => esc_html__('FOOTER: Link', 'lsx'),
57
+	'footer_link_hover_color'           => esc_html__('FOOTER: Link (hover)', 'lsx'),
58 58
 
59
-	'body_section_full_background_color'     => esc_html__( 'BODY: Section full (background)', 'lsx' ),
60
-	'body_section_full_text_color'           => esc_html__( 'BODY: Section full (text)', 'lsx' ),
61
-	'body_section_full_cta_background_color' => esc_html__( 'BODY: Section full CTA (background)', 'lsx' ),
62
-	'body_section_full_cta_text_color'       => esc_html__( 'BODY: Section full CTA (text)', 'lsx' ),
63
-) );
59
+	'body_section_full_background_color'     => esc_html__('BODY: Section full (background)', 'lsx'),
60
+	'body_section_full_text_color'           => esc_html__('BODY: Section full (text)', 'lsx'),
61
+	'body_section_full_cta_background_color' => esc_html__('BODY: Section full CTA (background)', 'lsx'),
62
+	'body_section_full_cta_text_color'       => esc_html__('BODY: Section full CTA (text)', 'lsx'),
63
+));
64 64
 
65
-$customizer_colour_choices = apply_filters( 'lsx_customizer_colour_choices', array(
65
+$customizer_colour_choices = apply_filters('lsx_customizer_colour_choices', array(
66 66
 	'default' => array(
67
-		'label'  => __( 'Default', 'lsx' ),
68
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_default', array(
67
+		'label'  => __('Default', 'lsx'),
68
+		'colors' => apply_filters('lsx_customizer_colour_choices_default', array(
69 69
 			// Button
70 70
 			'#428bca', '#2a6496', '#ffffff', '#ffffff',
71 71
 			// Button CTA
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 			'#232222', '#ffffff', '#337ab7', '#969696',
89 89
 			// Body section full
90 90
 			'#428bca', '#ffffff', '#333333', '#ffffff'
91
-		) )
91
+		))
92 92
 	),
93 93
 	'red' => array(
94
-		'label'  => __( 'Red', 'lsx' ),
95
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_red', array(
94
+		'label'  => __('Red', 'lsx'),
95
+		'colors' => apply_filters('lsx_customizer_colour_choices_red', array(
96 96
 			// Button
97 97
 			'#b64d3f', '#87291c', '#ffffff', '#ffffff',
98 98
 			// Button CTA
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
 			'#232222', '#ffffff', '#b64d3f', '#969696',
116 116
 			// Body section full
117 117
 			'#b64d3f', '#ffffff', '#333333', '#ffffff'
118
-		) )
118
+		))
119 119
 	),
120 120
 	'orange' => array(
121
-		'label'  => __( 'Orange', 'lsx' ),
122
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_orange', array(
121
+		'label'  => __('Orange', 'lsx'),
122
+		'colors' => apply_filters('lsx_customizer_colour_choices_orange', array(
123 123
 			// Button
124 124
 			'#fbaf3f', '#e49435', '#260e03', '#260e03',
125 125
 			// Button CTA
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
 			'#232222', '#ffffff', '#e4701e', '#969696',
143 143
 			// Body section full
144 144
 			'#fbaf3f', '#ffffff', '#333333', '#ffffff'
145
-		) )
145
+		))
146 146
 	),
147 147
 	'green' => array(
148
-		'label'  => __( 'Green', 'lsx' ),
149
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_green', array(
148
+		'label'  => __('Green', 'lsx'),
149
+		'colors' => apply_filters('lsx_customizer_colour_choices_green', array(
150 150
 			// Button
151 151
 			'#596b46', '#3d4a30', '#ffffff', '#ffffff',
152 152
 			// Button CTA
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
 			'#232222', '#ffffff', '#596b46', '#969696',
170 170
 			// Body section full
171 171
 			'#596b46', '#ffffff', '#333333', '#ffffff'
172
-		) )
172
+		))
173 173
 	),
174 174
 	'brown' => array(
175
-		'label'  => __( 'Brown', 'lsx' ),
176
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_brown', array(
175
+		'label'  => __('Brown', 'lsx'),
176
+		'colors' => apply_filters('lsx_customizer_colour_choices_brown', array(
177 177
 			// Button
178 178
 			'#8c6a45', '#5b452e', '#ffffff', '#ffffff',
179 179
 			// Button CTA
@@ -196,6 +196,6 @@  discard block
 block discarded – undo
196 196
 			'#232222', '#ffffff', '#8c6a45', '#969696',
197 197
 			// Body section full
198 198
 			'#8c6a45', '#ffffff', '#333333', '#ffffff'
199
-		) )
199
+		))
200 200
 	)
201
-) );
201
+));
Please login to merge, or discard this patch.