Issues (1724)

examples/lsx-customizer-colour.php (58 issues)

1
<?php
2
3
/**
4
 * Filter: lsx_customizer_colour_names
5
 *
6
 * Add two new colors (test) in main array of colors
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' );
11
	return $array;
12
}
13
add_filter( 'lsx_customizer_colour_names', 'test_lsx_customizer_colour_names' );
14
15
/**
16
 * Filter: lsx_customizer_colour_choices_default
17
 *
18
 * Add the new colors (test) in default scheme
19
 */
20
function test_lsx_customizer_colour_choices_default( $array ) {
21
	$array['test_text_color']       = '#ddddd1';
22
	$array['test_text_color_hover'] = '#eeeee1';
23
	return $array;
24
}
25
add_filter( 'lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default' );
26
27
/**
28
 * Filter: lsx_customizer_colour_choices_red
29
 *
30
 * Add the new colors (test) in red scheme
31
 */
32
function test_lsx_customizer_colour_choices_red( $array ) {
33
	$array['test_text_color']       = '#ddddd2';
34
	$array['test_text_color_hover'] = '#eeeee2';
35
	return $array;
36
}
37
add_filter( 'lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red' );
38
39
/**
40
 * Filter: lsx_customizer_colour_choices_orange
41
 *
42
 * Add the new colors (test) in orange scheme
43
 */
44
function test_lsx_customizer_colour_choices_orange( $array ) {
45
	$array['test_text_color']       = '#ddddd3';
46
	$array['test_text_color_hover'] = '#eeeee3';
47
	return $array;
48
}
49
add_filter( 'lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange' );
50
51
/**
52
 * Filter: lsx_customizer_colour_choices_green
53
 *
54
 * Add the new colors (test) in green scheme
55
 */
56
function test_lsx_customizer_colour_choices_green( $array ) {
57
	$array['test_text_color']       = '#ddddd4';
58
	$array['test_text_color_hover'] = '#eeeee4';
59
	return $array;
60
}
61
add_filter( 'lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green' );
62
63
/**
64
 * Filter: lsx_customizer_colour_choices_brown
65
 *
66
 * Add the new colors (test) in brown scheme
67
 */
68
function test_lsx_customizer_colour_choices_brown( $array ) {
69
	$array['test_text_color']       = '#ddddd5';
70
	$array['test_text_color_hover'] = '#eeeee5';
71
	return $array;
72
}
73
add_filter( 'lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown' );
74
75
/**
76
 * Filter: lsx_customizer_colour_choices
77
 *
78
 * Add a new scheme
79
 * Also add the new colors (test) in new scheme
80
 */
81
function test_lsx_customizer_colour_choices( $array ) {
82
	$array['test'] = array(
83
		'label'  => esc_html__( 'Test', 'lsx-customizer' ),
84
		'colors' => array(
85
			'button_background_color'       => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'button_background_color'" and double arrow, but found 7.
Loading history...
86
			'button_background_hover_color' => '#2a6496',
0 ignored issues
show
Array double arrow not aligned correctly; expected 13 space(s) between "'button_background_hover_color'" and double arrow, but found 1.
Loading history...
87
			'button_text_color'             => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 25 space(s) between "'button_text_color'" and double arrow, but found 13.
Loading history...
88
			'button_text_color_hover'       => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'button_text_color_hover'" and double arrow, but found 7.
Loading history...
89
			'button_shadow'                 => '#2a6496',
0 ignored issues
show
Array double arrow not aligned correctly; expected 29 space(s) between "'button_shadow'" and double arrow, but found 17.
Loading history...
90
91
			'button_cta_background_color'       => '#f7941d',
0 ignored issues
show
Array double arrow not aligned correctly; expected 15 space(s) between "'button_cta_background_color'" and double arrow, but found 7.
Loading history...
92
			'button_cta_background_hover_color' => '#f7741d',
0 ignored issues
show
Array double arrow not aligned correctly; expected 9 space(s) between "'button_cta_background_hover_color'" and double arrow, but found 1.
Loading history...
93
			'button_cta_text_color'             => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 21 space(s) between "'button_cta_text_color'" and double arrow, but found 13.
Loading history...
94
			'button_cta_text_color_hover'       => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 15 space(s) between "'button_cta_text_color_hover'" and double arrow, but found 7.
Loading history...
95
			'button_cta_shadow'                 => '#f7741d',
0 ignored issues
show
Array double arrow not aligned correctly; expected 25 space(s) between "'button_cta_shadow'" and double arrow, but found 17.
Loading history...
96
97
			'top_menu_background_color'          => '#333333',
0 ignored issues
show
Array double arrow not aligned correctly; expected 17 space(s) between "'top_menu_background_color'" and double arrow, but found 10.
Loading history...
98
			'top_menu_link_color'                => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 23 space(s) between "'top_menu_link_color'" and double arrow, but found 16.
Loading history...
99
			'top_menu_link_hover_color'          => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 17 space(s) between "'top_menu_link_hover_color'" and double arrow, but found 10.
Loading history...
100
			'top_menu_icon_color'                => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 23 space(s) between "'top_menu_icon_color'" and double arrow, but found 16.
Loading history...
101
			'top_menu_icon_hover_color'          => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 17 space(s) between "'top_menu_icon_hover_color'" and double arrow, but found 10.
Loading history...
102
			'top_menu_dropdown_color'            => '#333333',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'top_menu_dropdown_color'" and double arrow, but found 12.
Loading history...
103
			'top_menu_dropdown_hover_color'      => '#444444',
0 ignored issues
show
Array double arrow not aligned correctly; expected 13 space(s) between "'top_menu_dropdown_hover_color'" and double arrow, but found 6.
Loading history...
104
			'top_menu_dropdown_link_color'       => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 14 space(s) between "'top_menu_dropdown_link_color'" and double arrow, but found 7.
Loading history...
105
			'top_menu_dropdown_link_hover_color' => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 8 space(s) between "'top_menu_dropdown_link_hover_color'" and double arrow, but found 1.
Loading history...
106
107
			'header_background_color'  => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'header_background_color'" and double arrow, but found 2.
Loading history...
108
			'header_link_color'        => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 25 space(s) between "'header_link_color'" and double arrow, but found 8.
Loading history...
109
			'header_link_hover_color'  => '#1072c9',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'header_link_hover_color'" and double arrow, but found 2.
Loading history...
110
			'header_description_color' => '#555555',
0 ignored issues
show
Array double arrow not aligned correctly; expected 18 space(s) between "'header_description_color'" and double arrow, but found 1.
Loading history...
111
112
			'main_menu_background_color'                => '#ffffff',
113
			'main_menu_link_color'                      => '#555555',
114
			'main_menu_link_hover_color'                => '#ffffff',
115
			'main_menu_dropdown_background_color'       => '#428bca',
116
			'main_menu_dropdown_background_hover_color' => '#1072c9',
117
			'main_menu_dropdown_link_color'             => '#ffffff',
118
			'main_menu_dropdown_link_hover_color'       => '#dddddd',
119
120
			'banner_background_color'               => '#2a6496',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'banner_background_color'" and double arrow, but found 15.
Loading history...
121
			'banner_text_color'                     => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 25 space(s) between "'banner_text_color'" and double arrow, but found 21.
Loading history...
122
			'banner_text_image_color'               => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'banner_text_image_color'" and double arrow, but found 15.
Loading history...
123
			'banner_breadcrumb_background_color'    => '#374750',
0 ignored issues
show
Array double arrow not aligned correctly; expected 8 space(s) between "'banner_breadcrumb_background_color'" and double arrow, but found 4.
Loading history...
124
			'banner_breadcrumb_text_color'          => '#919191',
0 ignored issues
show
Array double arrow not aligned correctly; expected 14 space(s) between "'banner_breadcrumb_text_color'" and double arrow, but found 10.
Loading history...
125
			'banner_breadcrumb_text_selected_color' => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 5 space(s) between "'banner_breadcrumb_text_selected_color'" and double arrow, but found 1.
Loading history...
126
127
			'background_color'                       => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 26 space(s) between "'background_color'" and double arrow, but found 23.
Loading history...
128
			'body_line_color'                        => '#dddddd',
0 ignored issues
show
Array double arrow not aligned correctly; expected 27 space(s) between "'body_line_color'" and double arrow, but found 24.
Loading history...
129
			'body_text_heading_color'                => '#333333',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'body_text_heading_color'" and double arrow, but found 16.
Loading history...
130
			'body_text_small_color'                  => '#919191',
0 ignored issues
show
Array double arrow not aligned correctly; expected 21 space(s) between "'body_text_small_color'" and double arrow, but found 18.
Loading history...
131
			'body_text_color'                        => '#333333',
0 ignored issues
show
Array double arrow not aligned correctly; expected 27 space(s) between "'body_text_color'" and double arrow, but found 24.
Loading history...
132
			'body_link_color'                        => '#596b46',
0 ignored issues
show
Array double arrow not aligned correctly; expected 27 space(s) between "'body_link_color'" and double arrow, but found 24.
Loading history...
133
			'body_link_hover_color'                  => '#3d4a30',
0 ignored issues
show
Array double arrow not aligned correctly; expected 21 space(s) between "'body_link_hover_color'" and double arrow, but found 18.
Loading history...
134
			'body_section_full_background_color'     => '#596b46',
0 ignored issues
show
Array double arrow not aligned correctly; expected 8 space(s) between "'body_section_full_background_color'" and double arrow, but found 5.
Loading history...
135
			'body_section_full_text_color'           => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 14 space(s) between "'body_section_full_text_color'" and double arrow, but found 11.
Loading history...
136
			'body_section_full_link_color'           => '#eeeeee',
0 ignored issues
show
Array double arrow not aligned correctly; expected 14 space(s) between "'body_section_full_link_color'" and double arrow, but found 11.
Loading history...
137
			'body_section_full_link_hover_color'     => '#dddddd',
0 ignored issues
show
Array double arrow not aligned correctly; expected 8 space(s) between "'body_section_full_link_hover_color'" and double arrow, but found 5.
Loading history...
138
			'body_section_full_cta_background_color' => '#333333',
0 ignored issues
show
Array double arrow not aligned correctly; expected 4 space(s) between "'body_section_full_cta_background_color'" and double arrow, but found 1.
Loading history...
139
			'body_section_full_cta_text_color'       => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 10 space(s) between "'body_section_full_cta_text_color'" and double arrow, but found 7.
Loading history...
140
			'body_section_full_cta_link_color'       => '#eeeeee',
0 ignored issues
show
Array double arrow not aligned correctly; expected 10 space(s) between "'body_section_full_cta_link_color'" and double arrow, but found 7.
Loading history...
141
			'body_section_full_cta_link_hover_color' => '#dddddd',
0 ignored issues
show
Array double arrow not aligned correctly; expected 4 space(s) between "'body_section_full_cta_link_hover_color'" and double arrow, but found 1.
Loading history...
142
143
			'footer_cta_background_color' => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 15 space(s) between "'footer_cta_background_color'" and double arrow, but found 1.
Loading history...
144
			'footer_cta_text_color'       => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 21 space(s) between "'footer_cta_text_color'" and double arrow, but found 7.
Loading history...
145
			'footer_cta_link_color'       => '#dddddd',
0 ignored issues
show
Array double arrow not aligned correctly; expected 21 space(s) between "'footer_cta_link_color'" and double arrow, but found 7.
Loading history...
146
			'footer_cta_link_hover_color' => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 15 space(s) between "'footer_cta_link_hover_color'" and double arrow, but found 1.
Loading history...
147
148
			'footer_widgets_background_color' => '#333333',
0 ignored issues
show
Array double arrow not aligned correctly; expected 11 space(s) between "'footer_widgets_background_color'" and double arrow, but found 1.
Loading history...
149
			'footer_widgets_text_color'       => '#eeeeee',
0 ignored issues
show
Array double arrow not aligned correctly; expected 17 space(s) between "'footer_widgets_text_color'" and double arrow, but found 7.
Loading history...
150
			'footer_widgets_link_color'       => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 17 space(s) between "'footer_widgets_link_color'" and double arrow, but found 7.
Loading history...
151
			'footer_widgets_link_hover_color' => '#1072c9',
0 ignored issues
show
Array double arrow not aligned correctly; expected 11 space(s) between "'footer_widgets_link_hover_color'" and double arrow, but found 1.
Loading history...
152
153
			'footer_background_color' => '#232222',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'footer_background_color'" and double arrow, but found 1.
Loading history...
154
			'footer_text_color'       => '#ffffff',
0 ignored issues
show
Array double arrow not aligned correctly; expected 25 space(s) between "'footer_text_color'" and double arrow, but found 7.
Loading history...
155
			'footer_link_color'       => '#428bca',
0 ignored issues
show
Array double arrow not aligned correctly; expected 25 space(s) between "'footer_link_color'" and double arrow, but found 7.
Loading history...
156
			'footer_link_hover_color' => '#1072c9',
0 ignored issues
show
Array double arrow not aligned correctly; expected 19 space(s) between "'footer_link_hover_color'" and double arrow, but found 1.
Loading history...
157
158
			'test_text_color'       => '#ddddd6',
0 ignored issues
show
Array double arrow not aligned correctly; expected 27 space(s) between "'test_text_color'" and double arrow, but found 7.
Loading history...
159
			'test_text_color_hover' => '#eeeee6',
0 ignored issues
show
Array double arrow not aligned correctly; expected 21 space(s) between "'test_text_color_hover'" and double arrow, but found 1.
Loading history...
160
		),
161
	);
162
163
	return $array;
164
}
165
add_filter( 'lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices' );
166
167
/**
168
 * Filter: lsx_customizer_colour_selectors_button
169
 *
170
 * Add new selectors in "button" group of colours
171
 */
172
function test_lsx_customizer_colour_selectors_button( $css, $colors ) {
173
	$css .= <<<CSS
174
175
	/* Button TEST */
176
177
	.selector-test-button {
178
		attr1: {$colors['button_background_color']};
179
		attr2: {$colors['button_background_hover_color']};
180
		attr3: {$colors['button_text_color']};
181
		attr4: {$colors['button_text_color_hover']};
182
		attr5: {$colors['button_shadow']};
183
	}
184
CSS;
185
186
	return $css;
187
}
188
add_filter( 'lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2 );
189
190
/**
191
 * Filter: lsx_customizer_colour_selectors_button_cta
192
 *
193
 * Add new selectors in "button cta" group of colours
194
 */
195
function test_lsx_customizer_colour_selectors_button_cta( $css, $colors ) {
196
	$css .= <<<CSS
197
198
	/* Button CTA TEST */
199
200
	.selector-test-button-cta {
201
		attr1: {$colors['button_cta_background_color']};
202
		attr2: {$colors['button_cta_background_hover_color']};
203
		attr3: {$colors['button_cta_text_color']};
204
		attr4: {$colors['button_cta_text_color_hover']};
205
		attr5: {$colors['button_cta_shadow']};
206
	}
207
CSS;
208
209
	return $css;
210
}
211
add_filter( 'lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2 );
212
213
/**
214
 * Filter: lsx_customizer_colour_selectors_top_menu
215
 *
216
 * Add new selectors in "top menu" group of colours
217
 */
218
function test_lsx_customizer_colour_selectors_top_menu( $css, $colors ) {
219
	$css .= <<<CSS
220
221
	/* Top Menu TEST */
222
223
	.selector-test-top-menu {
224
		attr1: {$colors['top_menu_background_color']};
225
		attr2: {$colors['top_menu_link_color']};
226
		attr3: {$colors['top_menu_link_hover_color']};
227
		attr3: {$colors['top_menu_icon_color']};
228
		attr3: {$colors['top_menu_icon_hover_color']};
229
		attr3: {$colors['top_menu_dropdown_color']};
230
		attr3: {$colors['top_menu_dropdown_hover_color']};
231
		attr3: {$colors['top_menu_dropdown_link_color']};
232
		attr3: {$colors['top_menu_dropdown_link_hover_color']};
233
	}
234
CSS;
235
236
	return $css;
237
}
238
add_filter( 'lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2 );
239
240
/**
241
 * Filter: lsx_customizer_colour_selectors_header
242
 *
243
 * Add new selectors in "header" group of colours
244
 */
245
function test_lsx_customizer_colour_selectors_header( $css, $colors ) {
246
	$css .= <<<CSS
247
248
	/* Header TEST */
249
250
	.selector-test-header {
251
		attr1: {$colors['header_background_color']};
252
		attr2: {$colors['header_link_color']};
253
		attr3: {$colors['header_link_hover_color']};
254
		attr4: {$colors['header_description_color']};
255
	}
256
CSS;
257
258
	return $css;
259
}
260
add_filter( 'lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2 );
261
262
/**
263
 * Filter: lsx_customizer_colour_selectors_main_menu
264
 *
265
 * Add new selectors in "main meun" group of colours
266
 */
267
function test_lsx_customizer_colour_selectors_main_menu( $css, $colors ) {
268
	$css .= <<<CSS
269
270
	/* Main Menu TEST */
271
272
	.selector-test-main-menu {
273
		attr1: {$colors['main_menu_background_color']};
274
		attr2: {$colors['main_menu_link_color']};
275
		attr3: {$colors['main_menu_link_hover_color']};
276
		attr4: {$colors['main_menu_dropdown_background_color']};
277
		attr5: {$colors['main_menu_dropdown_background_hover_color']};
278
		attr6: {$colors['main_menu_dropdown_link_color']};
279
		attr7: {$colors['main_menu_dropdown_link_hover_color']};
280
	}
281
CSS;
282
283
	return $css;
284
}
285
add_filter( 'lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2 );
286
287
/**
288
 * Filter: lsx_customizer_colour_selectors_banner
289
 *
290
 * Add new selectors in "banner" group of colours
291
 */
292
function test_lsx_customizer_colour_selectors_banner( $css, $colors ) {
293
	$css .= <<<CSS
294
295
	/* Banner TEST */
296
297
	.selector-test-banner {
298
		attr1: {$colors['banner_background_color']};
299
		attr2: {$colors['banner_text_color']};
300
		attr3: {$colors['banner_text_image_color']};
301
		attr4: {$colors['banner_breadcrumb_background_color']};
302
		attr5: {$colors['banner_breadcrumb_text_color']};
303
		attr6: {$colors['banner_breadcrumb_text_selected_color']};
304
	}
305
CSS;
306
307
	return $css;
308
}
309
add_filter( 'lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2 );
310
311
/**
312
 * Filter: lsx_customizer_colour_selectors_body
313
 *
314
 * Add new selectors in "body" group of colours
315
 */
316
function test_lsx_customizer_colour_selectors_body( $css, $colors ) {
317
	$css .= <<<CSS
318
319
	/* Body TEST */
320
321
	.selector-test-body {
322
		attr1: {$colors['background_color']};
323
		attr2: {$colors['body_line_color']};
324
		attr3: {$colors['body_text_heading_color']};
325
		attr4: {$colors['body_text_small_color']};
326
		attr5: {$colors['body_text_color']};
327
		attr6: {$colors['body_link_color']};
328
		attr7: {$colors['body_link_hover_color']};
329
		attr8: {$colors['body_section_full_background_color']};
330
		attr9: {$colors['body_section_full_text_color']};
331
		attr10: {$colors['body_section_full_link_color']};
332
		attr11: {$colors['body_section_full_link_hover_color']};
333
		attr12: {$colors['body_section_full_cta_background_color']};
334
		attr13: {$colors['body_section_full_cta_text_color']};
335
		attr14: {$colors['body_section_full_cta_link_color']};
336
		attr15: {$colors['body_section_full_cta_link_hover_color']};
337
	}
338
CSS;
339
340
	return $css;
341
}
342
add_filter( 'lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2 );
343
344
/**
345
 * Filter: lsx_customizer_colour_selectors_footer_cta
346
 *
347
 * Add new selectors in "footer cta" group of colours
348
 */
349
function test_lsx_customizer_colour_selectors_footer_cta( $css, $colors ) {
350
	$css .= <<<CSS
351
352
	/* Footer CTA TEST */
353
354
	.selector-test-footer-cta {
355
		attr1: {$colors['footer_cta_background_color']};
356
		attr2: {$colors['footer_cta_text_color']};
357
		attr3: {$colors['footer_cta_link_color']};
358
		attr4: {$colors['footer_cta_link_hover_color']};
359
	}
360
CSS;
361
362
	return $css;
363
}
364
add_filter( 'lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2 );
365
366
/**
367
 * Filter: lsx_customizer_colour_selectors_footer_widgets
368
 *
369
 * Add new selectors in "footer widgets" group of colours
370
 */
371
function test_lsx_customizer_colour_selectors_footer_widgets( $css, $colors ) {
372
	$css .= <<<CSS
373
374
	/* Footer Widgets TEST */
375
376
	.selector-test-footer-widgets {
377
		attr1: {$colors['footer_widgets_background_color']};
378
		attr2: {$colors['footer_widgets_text_color']};
379
		attr3: {$colors['footer_widgets_link_color']};
380
		attr4: {$colors['footer_widgets_link_hover_color']};
381
	}
382
CSS;
383
384
	return $css;
385
}
386
add_filter( 'lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2 );
387
388
/**
389
 * Filter: lsx_customizer_colour_selectors_footer
390
 *
391
 * Add new selectors in "footer" group of colours
392
 */
393
function test_lsx_customizer_colour_selectors_footer( $css, $colors ) {
394
	$css .= <<<CSS
395
396
	/* Footer TEST */
397
398
	.selector-test-footer {
399
		attr1: {$colors['footer_background_color']};
400
		attr2: {$colors['footer_text_color']};
401
		attr3: {$colors['footer_link_color']};
402
		attr4: {$colors['footer_link_hover_color']};
403
	}
404
CSS;
405
406
	return $css;
407
}
408
add_filter( 'lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2 );
409