PluginProbe
Customify / 2.5.6
Customify v2.5.6
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / includes / customify_theme_root.php

customify_theme_root.php in Customify 2.5.6, at includes/customify_theme_root.php

1,332 lines 38.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This is the PHP file that allows you to play with the Customify config that would normally come from Pixelgrade Cloud.
4 *
5 * This is file is automatically detected by Customify and loaded when the CUSTOMIFY_SM_LOAD_THEME_ROOT_CONFIG constant is true.
6 *
7 * Keep the name of this file like you've received it from Pixelgrade Cloud.
8 */
9
10 // This is where the final config should reside.
11 // Start with some sane default. We expect to have a sections entry.
12 $config = [
13 'sections' => [],
14 ];
15
16 define( 'SM_HEADINGS_FONT', 'Source Sans Pro' );
17 define( 'SM_SECONDARY_FONT', 'Source Sans Pro' );
18 define( 'SM_ACCENT_FONT', 'Source Sans Pro' );
19 define( 'SM_BODY_FONT', 'Source Sans Pro' );
20 define( 'SM_LOGO_FONT', 'Source Sans Pro' );
21
22 // Recommended Fonts List - Headings
23 $recommended_fonts = array(
24 'Oswald',
25 'Roboto',
26 'Playfair Display',
27 'Lato',
28 'Open Sans',
29 'Exo',
30 'PT Sans',
31 'Ubuntu',
32 'Vollkorn',
33 'Lora',
34 'Arvo',
35 'Josefin Slab',
36 'Crete Round',
37 'Kreon',
38 'Bubblegum Sans',
39 'The Girl Next Door',
40 'Pacifico',
41 'Handlee',
42 'Satify',
43 'Pompiere'
44 );
45
46 // Body
47 $recommended_body_fonts = apply_filters(
48 'customify_theme_recommended_body_fonts',
49 array(
50 'Roboto',
51 'Playfair Display',
52 'Oswald',
53 'Lato',
54 'Open Sans',
55 'Exo',
56 'PT Sans',
57 'Ubuntu',
58 'Vollkorn',
59 'Lora',
60 'Arvo',
61 'Josefin Slab',
62 'Crete Round',
63 'Kreon',
64 'Bubblegum Sans',
65 'The Girl Next Door',
66 'Pacifico',
67 'Handlee',
68 'Satify',
69 'Pompiere',
70 )
71 );
72
73 $config['sections'] = [
74
75 /**
76 * Fonts - This section will handle all elements fonts (eg. links, headings)
77 */
78 'fonts_section' => [
79 'title' => esc_html__( 'Fonts', 'customify' ),
80 'priority' => 3, // This will put this section right after Colors section that has a priority of 2.
81 'options' => [
82 /**
83 * Header Section
84 */
85 'header_section' => [
86 'type' => 'html',
87 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Header', 'customify' ) . '</span>',
88 ],
89 'header_site_title_font' => array(
90 'type' => 'font',
91 'label' => esc_html__( 'Site Title Font', 'customify' ),
92 'selector' => '.page-template-template-homepage .entry-header h1',
93 'callback' => 'typeline_font_cb',
94
95 'default' => array(
96 'font-family' => SM_HEADINGS_FONT,
97 'font-weight' => '700',
98 'font-size' => 32,
99 'line-height' => 1.214,
100 'letter-spacing' => -0.02,
101 'text-transform' => 'none',
102 ),
103
104 // Sub Fields Configuration
105 'fields' => array(
106 'font-size' => array(
107 'min' => 8,
108 'max' => 90,
109 'step' => 1,
110 'unit' => 'px',
111 ),
112 'line-height' => array( 0, 2, 0.1, '' ),
113 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
114 'text-align' => false,
115 'text-transform' => true,
116 'text-decoration' => false,
117 ),
118 ),
119 'header_navigation_font' => array(
120 'type' => 'font',
121 'label' => esc_html__( 'Navigation Text', 'customify' ),
122 'selector' => '.storefront-primary-navigation',
123 'callback' => 'typeline_font_cb',
124
125 'default' => array(
126 'font-family' => SM_HEADINGS_FONT,
127 'font-weight' => '400',
128 'font-size' => 16,
129 'line-height' => 1.618,
130 'letter-spacing' => 0,
131 'text-transform' => 'none',
132 ),
133
134 // Sub Fields Configuration
135 'fields' => array(
136 'font-size' => array(
137 'min' => 8,
138 'max' => 90,
139 'step' => 1,
140 'unit' => 'px',
141 ),
142 'line-height' => array( 0, 2, 0.1, '' ),
143 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
144 'text-align' => false,
145 'text-transform' => true,
146 'text-decoration' => false,
147 ),
148 ),
149
150 /**
151 * Main Content Section
152 */
153 'main_content' => [
154 'type' => 'html',
155 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Main Content', 'customify' ) . '</span>',
156 ],
157 'main_content_page_title_font' => array(
158 'type' => 'font',
159 'label' => esc_html__( 'Page Title Font', 'customify' ),
160 'selector' => '.page-template-template-homepage .entry-header h1',
161 'callback' => 'typeline_font_cb',
162
163 'default' => array(
164 'font-family' => SM_HEADINGS_FONT,
165 'font-weight' => '300',
166 'font-size' => 59,
167 'line-height' => 1.214,
168 'letter-spacing' => -0.02,
169 'text-transform' => 'none',
170 ),
171
172 // Sub Fields Configuration
173 'fields' => array(
174 'font-size' => array(
175 'min' => 8,
176 'max' => 90,
177 'step' => 1,
178 'unit' => 'px',
179 ),
180 'line-height' => array( 0, 2, 0.1, '' ),
181 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
182 'text-align' => false,
183 'text-transform' => true,
184 'text-decoration' => false,
185 ),
186 ),
187 'main_content_body_text_font' => array(
188 'type' => 'font',
189 'label' => esc_html__( 'Body Text Font', 'customify' ),
190 'selector' => 'body',
191 'callback' => 'typeline_body_font_cb',
192
193 'default' => array(
194 'font-family' => SM_BODY_FONT,
195 'font-weight' => '400',
196 'font-size' => 16,
197 'line-height' => 1.618,
198 'letter-spacing' => 0,
199 'text-transform' => 'none',
200 ),
201
202 // Sub Fields Configuration
203 'fields' => array(
204 'font-size' => array(
205 'min' => 8,
206 'max' => 90,
207 'step' => 1,
208 'unit' => 'px',
209 ),
210 'line-height' => array( 0, 2, 0.1, '' ),
211 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
212 'text-align' => false,
213 'text-transform' => true,
214 'text-decoration' => false,
215 ),
216 ),
217 'main_content_quote_block_font' => array(
218 'type' => 'font',
219 'label' => esc_html__( 'Quote Block Font', 'customify' ),
220 'selector' => 'blockquote',
221 'callback' => 'typeline_font_cb',
222 'default' => array(
223 'font-family' => SM_ACCENT_FONT,
224 'font-weight' => 'italic',
225 'font-size' => 18,
226 'line-height' => 1.67,
227 'letter-spacing' => 0,
228 'text-transform' => 'none',
229 ),
230
231 // Sub Fields Configuration
232 'fields' => array(
233 'font-size' => array(
234 'min' => 8,
235 'max' => 90,
236 'step' => 1,
237 'unit' => 'px',
238 ),
239 'line-height' => array( 0, 2, 0.1, '' ),
240 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
241 'text-align' => false,
242 'text-transform' => true,
243 'text-decoration' => false,
244 ),
245 ),
246
247 'main_content_heading_1_font' => [
248 'type' => 'font',
249 'label' => esc_html__( 'Heading 1', 'customify' ),
250 'desc' => esc_html__( '', 'customify' ),
251 'selector' => '.alpha, h1',
252
253 'default' => array(
254 'font-family' => SM_HEADINGS_FONT,
255 'font-weight' => '300',
256 'font-size' => 42,
257 'line-height' => 1.214,
258 'letter-spacing' => -0.02,
259 'text-transform' => 'none',
260 ),
261
262 // Sub Fields Configuration
263 'fields' => array(
264 'font-size' => array(
265 'min' => 8,
266 'max' => 90,
267 'step' => 1,
268 'unit' => 'px',
269 ),
270 'line-height' => array( 0, 2, 0.1, '' ),
271 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
272 'text-align' => false,
273 'text-transform' => true,
274 'text-decoration' => false,
275 ),
276 ],
277
278 'main_content_heading_2_font' => [
279 'type' => 'font',
280 'label' => esc_html__( 'Heading 2', 'customify' ),
281 'desc' => esc_html__( '', 'customify' ),
282 'selector' => '.beta, h2',
283
284 'default' => array(
285 'font-family' => SM_HEADINGS_FONT,
286 'font-weight' => '300',
287 'font-size' => 32,
288 'line-height' => 1.214,
289 'letter-spacing' => 0,
290 'text-transform' => 'none',
291 ),
292
293 // Sub Fields Configuration
294 'fields' => array(
295 'font-size' => array(
296 'min' => 8,
297 'max' => 90,
298 'step' => 1,
299 'unit' => 'px',
300 ),
301 'line-height' => array( 0, 2, 0.1, '' ),
302 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
303 'text-align' => false,
304 'text-transform' => true,
305 'text-decoration' => false,
306 ),
307 ],
308
309 'main_content_heading_4_font' => [
310 'type' => 'font',
311 'label' => esc_html__( 'Heading 4', 'customify' ),
312 'desc' => esc_html__( '', 'customify' ),
313 'selector' => '.delta, h4',
314
315 'default' => array(
316 'font-family' => SM_HEADINGS_FONT,
317 'font-weight' => '300',
318 'font-size' => 23,
319 'line-height' => 1.6,
320 'letter-spacing' => 0,
321 'text-transform' => 'none',
322 ),
323
324 // Sub Fields Configuration
325 'fields' => array(
326 'font-size' => array(
327 'min' => 8,
328 'max' => 90,
329 'step' => 1,
330 'unit' => 'px',
331 ),
332 'line-height' => array( 0, 2, 0.1, '' ),
333 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
334 'text-align' => false,
335 'text-transform' => true,
336 'text-decoration' => false,
337 ),
338 ],
339
340 'main_content_heading_5_font' => [
341 'type' => 'font',
342 'label' => esc_html__( 'Heading 5', 'customify' ),
343 'desc' => esc_html__( '', 'customify' ),
344 'selector' => 'h5',
345
346 'default' => array(
347 'font-family' => SM_HEADINGS_FONT,
348 'font-weight' => '300',
349 'font-size' => 14,
350 'line-height' => 1.6,
351 'letter-spacing' => 0,
352 'text-transform' => 'none',
353 ),
354
355 // Sub Fields Configuration
356 'fields' => array(
357 'font-size' => array(
358 'min' => 8,
359 'max' => 90,
360 'step' => 1,
361 'unit' => 'px',
362 ),
363 'line-height' => array( 0, 2, 0.1, '' ),
364 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
365 'text-align' => false,
366 'text-transform' => true,
367 'text-decoration' => false,
368 ),
369 ],
370
371 'main_content_heading_6_font' => [
372 'type' => 'font',
373 'label' => esc_html__( 'Heading 6', 'customify' ),
374 'desc' => esc_html__( '', 'customify' ),
375 'selector' => 'h6',
376
377 'default' => array(
378 'font-family' => SM_HEADINGS_FONT,
379 'font-weight' => '300',
380 'font-size' => 11,
381 'line-height' => 1.6,
382 'letter-spacing' => 0,
383 'text-transform' => 'none',
384 ),
385
386 // Sub Fields Configuration
387 'fields' => array(
388 'font-size' => array(
389 'min' => 8,
390 'max' => 90,
391 'step' => 1,
392 'unit' => 'px',
393 ),
394 'line-height' => array( 0, 2, 0.1, '' ),
395 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
396 'text-align' => false,
397 'text-transform' => true,
398 'text-decoration' => false,
399 ),
400 ],
401
402 'main_content_heading_3_font' => [
403 'type' => 'font',
404 'label' => esc_html__( 'Heading 3', 'customify' ),
405 'desc' => esc_html__( '', 'customify' ),
406 'selector' => '.gamma, h3',
407
408 'default' => array(
409 'font-family' => SM_HEADINGS_FONT,
410 'font-weight' => '300',
411 'font-size' => 26,
412 'line-height' => 1.6,
413 'letter-spacing' => 0,
414 'text-transform' => 'none',
415 ),
416
417 // Sub Fields Configuration
418 'fields' => array(
419 'font-size' => array(
420 'min' => 8,
421 'max' => 90,
422 'step' => 1,
423 'unit' => 'px',
424 ),
425 'line-height' => array( 0, 2, 0.1, '' ),
426 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
427 'text-align' => false,
428 'text-transform' => true,
429 'text-decoration' => false,
430 ),
431 ],
432
433 /**
434 * Buttons Section
435 */
436 'buttons_content' => [
437 'type' => 'html',
438 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Buttons', 'customify' ) . '</span>',
439 ],
440 'buttons_font' => [
441 'type' => 'font',
442 'label' => esc_html__( 'Buttons', 'customify' ),
443 'desc' => esc_html__( '', 'customify' ),
444 'selector' => '.added_to_cart, .button, button, input[type=button], input[type=reset], input[type=submit]',
445
446 'default' => array(
447 'font-family' => SM_SECONDARY_FONT,
448 'font-weight' => '600',
449 'font-size' => 14,
450 'line-height' => 1.618,
451 'letter-spacing' => 0,
452 'text-transform' => 'none',
453 ),
454
455 // Sub Fields Configuration
456 'fields' => array(
457 'font-size' => array(
458 'min' => 8,
459 'max' => 90,
460 'step' => 1,
461 'unit' => 'px',
462 ),
463 'line-height' => array( 0, 2, 0.1, '' ),
464 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
465 'text-align' => false,
466 'text-transform' => true,
467 'text-decoration' => false,
468 ),
469 ],
470
471
472 /**
473 * Cards Section
474 */
475 'cards_content' => [
476 'type' => 'html',
477 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Cards', 'customify' ) . '</span>',
478 ],
479
480 'cards_price_font' => [
481 'type' => 'font',
482 'label' => esc_html__( 'Price', 'customify' ),
483 'desc' => esc_html__( '', 'customify' ),
484 'selector' => 'ul.products li.product .price',
485
486 'default' => array(
487 'font-family' => SM_BODY_FONT,
488 'font-weight' => '400',
489 'font-size' => 14,
490 'line-height' => 1.7,
491 'letter-spacing' => 0,
492 'text-transform' => 'none',
493 ),
494
495 // Sub Fields Configuration
496 'fields' => array(
497 'font-size' => array(
498 'min' => 8,
499 'max' => 90,
500 'step' => 1,
501 'unit' => 'px',
502 ),
503 'line-height' => array( 0, 2, 0.1, '' ),
504 'letter-spacing' => array( - 1, 2, 0.01, 'em' ),
505 'text-align' => false,
506 'text-transform' => true,
507 'text-decoration' => false,
508 ),
509 ],
510
511 ],
512 ],
513
514 /**
515 * COLORS - This section will handle all elements colors (eg. links, headings)
516 */
517 'colors_section' => [
518 'title' => esc_html__( 'Colors', 'customify' ),
519 'priority' => 3, // This will put this section right after Style Manager that has a priority of 1.
520 'options' => [
521 /**
522 * Header Section
523 */
524 'header_section' => [
525 'type' => 'html',
526 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Header', 'storefront' ) . '</span>',
527 ],
528 'header_navigation_text_color' => [
529 'type' => 'color',
530 'label' => esc_html__( 'Header Text Color', 'customify' ),
531 'live' => true,
532 'default' => '#404040',
533 'css' => [
534 [
535 'property' => 'color',
536 'selector' => 'p.site-description,
537 .site-header,
538 .storefront-handheld-footer-bar',
539 ],
540 [
541 'media' => 'screen and ( min-width: 768px )',
542 'property' => 'color',
543 'selector' => '.secondary-navigation ul.menu a:hover',
544 'filter_value_cb' => [
545 'callback' => 'pixcloud_adjust_color_brightness',
546 'args' => [
547 - 25,
548 ],
549 ],
550 ],
551 [
552 'media' => 'screen and ( min-width: 768px )',
553 'property' => 'color',
554 'selector' => '.secondary-navigation ul.menu a,
555 .site-header-cart .widget_shopping_cart,
556 .site-header .product_list_widget li .quantity',
557 ],
558 ],
559 ],
560 'header_navigation_links_color' => [
561 'type' => 'color',
562 'label' => esc_html__( 'Navigation Links Color', 'customify' ),
563 'live' => true,
564 'default' => '#333333',
565 'css' => [
566 [
567 'property' => 'color',
568 'selector' => '.main-navigation ul li a,
569 .site-title a,
570 ul.menu li a,
571 .site-branding h1 a,
572 .site-footer .storefront-handheld-footer-bar a:not(.button],
573 button.menu-toggle,
574 button.menu-toggle:hover,
575
576 .storefront-sticky-add-to-cart a:not(.button],
577 a.cart-contents,
578 .site-header-cart .widget_shopping_cart a',
579 ],
580 [
581 'property' => 'border-color',
582 'selector' => 'button.menu-toggle,
583 button.menu-toggle:hover',
584 ],
585 [
586 'property' => 'background-color',
587 'selector' => '.storefront-handheld-footer-bar ul li.cart .count,
588 button.menu-toggle:after,
589 button.menu-toggle:before,
590 button.menu-toggle span:before',
591 ],
592 ],
593 ],
594 'header_navigation_links_active_color' => [
595 'type' => 'color',
596 'label' => esc_html__( 'Links Active Color', 'customify' ),
597 'live' => true,
598 'default' => '#282828',
599 'css' => [
600 [
601 'property' => 'color',
602 'selector' => '.main-navigation ul li a:hover,
603 .main-navigation ul li:hover > a,
604 .site-title a:hover,
605 a.cart-contents:hover,
606 .site-header-cart .widget_shopping_cart a:hover,
607 .site-header-cart:hover > li > a,
608 .site-header ul.menu li.current-menu-item > a',
609 ],
610 ],
611 ],
612 'header_background_color' => [
613 'type' => 'color',
614 'label' => esc_html__( 'Header Background', 'customify' ),
615 'live' => true,
616 'default' => '#ffffff',
617 'css' => [
618 [
619 'property' => 'background-color',
620 'selector' => '.site-header,
621 .secondary-navigation ul ul,
622 .main-navigation ul.menu > li.menu-item-has-children:after,
623 .secondary-navigation ul.menu ul,
624 .storefront-handheld-footer-bar,
625 .storefront-handheld-footer-bar ul li > a,
626 .storefront-handheld-footer-bar ul li.search .site-search,
627 button.menu-toggle,
628 button.menu-toggle:hover',
629 ],
630 [
631 'property' => 'color',
632 'selector' => '.storefront-handheld-footer-bar ul li.cart .count',
633 ],
634 [
635 'property' => 'border-color',
636 'selector' => '.storefront-handheld-footer-bar ul li.cart .count',
637 ],
638 [
639 'media' => 'screen and ( min-width: 768px )',
640 'property' => 'background-color',
641 'selector' => '.site-header-cart .widget_shopping_cart,
642 .main-navigation ul.menu ul.sub-menu,
643 .main-navigation ul.nav-menu ul.children',
644 'filter_value_cb' => [
645 'callback' => 'pixcloud_adjust_color_brightness',
646 'args' => [
647 - 15,
648 ],
649 ],
650 ],
651 [
652 'media' => 'screen and ( min-width: 768px )',
653 'property' => 'background-color',
654 'selector' => '.site-header-cart .widget_shopping_cart .buttons,
655 .site-header-cart .widget_shopping_cart .total',
656 'filter_value_cb' => [
657 'callback' => 'pixcloud_adjust_color_brightness',
658 'args' => [
659 - 10,
660 ],
661 ],
662 ],
663 [
664 'media' => 'screen and ( min-width: 768px )',
665 'property' => 'border-bottom-color',
666 'selector' => '.site-header',
667 'filter_value_cb' => [
668 'callback' => 'pixcloud_adjust_color_brightness',
669 'args' => [
670 - 15,
671 ],
672 ],
673 ],
674 ],
675 ],
676
677
678 /**
679 * Main Content
680 */
681 'main_content_section' => [
682 'type' => 'html',
683 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Main Content', 'storefront' ) . '</span>',
684 ],
685 'page_title_color' => [
686 'type' => 'color',
687 'label' => esc_html__( 'Page Title Color', 'customify' ),
688 'live' => true,
689 'default' => '#282828',
690 'css' => [
691 [
692 'property' => 'color',
693 'selector' => '.entry-title,
694 .page-template-template-homepage.has-post-thumbnail .type-page.has-post-thumbnail .entry-title',
695 ],
696 ],
697 ],
698 'body_text_color' => [
699 'type' => 'color',
700 'label' => esc_html__( 'Body Text Color', 'customify' ),
701 'live' => true,
702 'default' => '#6d6d6d',
703 'css' => [
704 [
705 'property' => 'color',
706 'selector' => 'button,input,textarea,
707 .input-text,input[type=email],input[type=password],input[type=search],input[type=text],input[type=url],textarea,
708 .pagination .page-numbers li .page-numbers,.woocommerce-pagination .page-numbers li .page-numbers,
709 ul.menu li.current-menu-item>a,
710
711 body,
712 .secondary-navigation a,
713 .onsale,
714 .pagination .page-numbers li .page-numbers:not(.current], .woocommerce-pagination .page-numbers li .page-numbers:not(.current)
715
716 .page-template-template-homepage.has-post-thumbnail .type-page.has-post-thumbnail .entry-content,
717
718 p.stars a:before,
719 p.stars a:hover~a:before,
720 p.stars.selected a.active~a:before,
721
722 .storefront-product-pagination a,
723 .storefront-sticky-add-to-cart,
724
725 .woocommerce-tabs ul.tabs li.active a,
726 ul.products li.product .price,
727 .onsale,
728 .widget_search form:before,
729 .widget_product_search form:before,
730
731 mark',
732 ],
733 [
734 'property' => 'color',
735 'selector' => '.widget-area .widget a,
736 .hentry .entry-header .posted-on a,
737 .hentry .entry-header .byline a,
738
739 .woocommerce-breadcrumb a,
740 a.woocommerce-review-link,
741 .product_meta a',
742 'filter_value_cb' => [
743 'callback' => 'pixcloud_adjust_color_brightness',
744 'args' => [
745 5,
746 ],
747 ],
748 ],
749 [
750 'property' => 'color',
751 'selector' => '.pagination .page-numbers li .page-numbers.current, .woocommerce-pagination .page-numbers li .page-numbers.current',
752 'filter_value_cb' => [
753 'callback' => 'pixcloud_adjust_color_brightness',
754 'args' => [
755 10,
756 ],
757 ],
758 ],
759 [
760 'property' => 'border-color',
761 'selector' => '.onsale',
762 ],
763 ],
764 ],
765 'body_link_color' => [
766 'type' => 'color',
767 'label' => esc_html__( 'Body Link Color', 'customify' ),
768 'live' => true,
769 'default' => '#96588A',
770 'css' => [
771 [
772 'property' => 'color',
773 'selector' => 'a,
774 .star-rating span:before,
775 .quantity .plus, .quantity .minus,
776 p.stars a:hover:after,
777 p.stars a:after,
778 .star-rating span:before,
779 #payment .payment_methods li input[type=radio]:first-child:checked+label:before,
780
781 p.stars.selected a.active:before,
782 p.stars:hover a:before,
783 p.stars.selected a:not(.active):before,
784 p.stars.selected a.active:before',
785 ],
786 [
787 'property' => 'outline-color',
788 'selector' => 'a:focus,
789 .button:focus,
790 .button.alt:focus,
791 .button.added_to_cart:focus,
792 .button.wc-forward:focus,
793 button:focus,
794 input[type="button"]:focus,
795 input[type="reset"]:focus,
796 input[type="submit"]:focus',
797 ],
798 [
799 'property' => 'background-color',
800 'selector' => '.widget_price_filter .ui-slider .ui-slider-range,
801 .widget_price_filter .ui-slider .ui-slider-handle',
802 ],
803 ],
804 ],
805 'body_link_active_color' => [
806 'type' => 'color',
807 'label' => esc_html__( 'Body Link Active Color', 'customify' ),
808 'live' => true,
809 'default' => '#282828',
810 'css' => [
811 [
812 'property' => 'color',
813 'selector' => 'a:hover',
814 ],
815 ],
816 ],
817
818 // [Sub Section] Headings Colors
819 'main_content_title_headings_color_section' => [
820 'type' => 'html',
821 'html' => '<span class="separator sub-section label">' . esc_html__( 'Headings Color', 'patch' ) . '</span>',
822 ],
823 'main_content_heading_1_color' => [
824 'type' => 'color',
825 'label' => esc_html__( 'Heading 1', 'patch' ),
826 'live' => true,
827 'default' => '#131315',
828 'css' => [
829 [
830 'property' => 'color',
831 'selector' => 'h1, .site-title a',
832 ],
833 ],
834 ],
835 'main_content_heading_2_color' => [
836 'type' => 'color',
837 'label' => esc_html__( 'Heading 2', 'patch' ),
838 'live' => true,
839 'default' => '#131315',
840 'css' => [
841 [
842 'property' => 'color',
843 'selector' => 'h2, blockquote',
844 ],
845 ],
846 ],
847 'main_content_heading_3_color' => [
848 'type' => 'color',
849 'label' => esc_html__( 'Heading 3', 'patch' ),
850 'live' => true,
851 'default' => '#131315',
852 'css' => [
853 [
854 'property' => 'color',
855 'selector' => 'h3',
856 ],
857 ],
858 ],
859 'main_content_heading_4_color' => [
860 'type' => 'color',
861 'label' => esc_html__( 'Heading 4', 'patch' ),
862 'live' => true,
863 'default' => '#131315',
864 'css' => [
865 [
866 'property' => 'color',
867 'selector' => 'h4',
868 ],
869 ],
870 ],
871 'main_content_heading_5_color' => [
872 'type' => 'color',
873 'label' => esc_html__( 'Heading 5', 'patch' ),
874 'live' => true,
875 'default' => '#131315',
876 'css' => [
877 [
878 'property' => 'color',
879 'selector' => 'h5',
880 ],
881 ],
882 ],
883 'main_content_heading_6_color' => [
884 'type' => 'color',
885 'label' => esc_html__( 'Heading 6', 'patch' ),
886 'live' => true,
887 'default' => '#131315',
888 'css' => [
889 [
890 'property' => 'color',
891 'selector' => 'h6',
892 ],
893 ],
894 ],
895
896 // [Sub Section] Backgrounds
897 'main_content_title_backgrounds_color_section' => [
898 'type' => 'html',
899 'html' => '<span class="separator sub-section label">' . esc_html__( 'Backgrounds', 'patch' ) . '</span>',
900 ],
901
902 'main_content_content_background_color' => [
903 'type' => 'color',
904 'label' => esc_html__( 'Content Background Color', 'patch' ),
905 'live' => true,
906 'default' => '#ffffff',
907 'css' => [
908 [
909 'property' => 'background-color',
910 'selector' => 'body,
911 #order_review,
912 .storefront-product-pagination a,
913 .storefront-sticky-add-to-cart',
914 ],
915 [
916 'property' => 'background-color',
917 'selector' => 'table th,
918 #comments .comment-list .comment-content .comment-text,
919 .order_details',
920 'filter_value_cb' => [
921 'callback' => 'pixcloud_adjust_color_brightness',
922 'args' => [
923 - 7,
924 ],
925 ],
926 ],
927 [
928 'property' => 'background-color',
929 'selector' => 'table tbody td ',
930 'filter_value_cb' => [
931 'callback' => 'pixcloud_adjust_color_brightness',
932 'args' => [
933 - 2,
934 ],
935 ],
936 ],
937 [
938 'property' => 'background-color',
939 'selector' => 'table tbody tr:nth-child(2n) td,
940 fieldset,
941 fieldset legend',
942 'filter_value_cb' => [
943 'callback' => 'pixcloud_adjust_color_brightness',
944 'args' => [
945 - 4,
946 ],
947 ],
948 ],
949 [
950 'property' => 'background-color',
951 'selector' => '#payment .payment_methods > li .payment_box,
952 #payment .place-order,
953
954 .input-text, input[type=email], input[type=password], input[type=search], input[type=text], input[type=url], textarea',
955 'filter_value_cb' => [
956 'callback' => 'pixcloud_adjust_color_brightness',
957 'args' => [
958 - 5,
959 ],
960 ],
961 ],
962 [
963 'property' => 'background-color',
964 'selector' => '#payment .payment_methods > li:not(.woocommerce-notice)',
965 'filter_value_cb' => [
966 'callback' => 'pixcloud_adjust_color_brightness',
967 'args' => [
968 - 10,
969 ],
970 ],
971 ],
972 [
973 'property' => 'background-color',
974 'selector' => '#payment .payment_methods > li:not(.woocommerce-notice):hover',
975 'filter_value_cb' => [
976 'callback' => 'pixcloud_adjust_color_brightness',
977 'args' => [
978 - 15,
979 ],
980 ],
981 ],
982 [
983 'property' => 'background-color',
984 'selector' => '.pagination .page-numbers li .page-numbers.current, .woocommerce-pagination .page-numbers li .page-numbers.current',
985 'filter_value_cb' => [
986 'callback' => 'pixcloud_adjust_color_brightness',
987 'args' => [
988 - 25,
989 ],
990 ],
991 ],
992 [
993 'property' => 'border-bottom-color',
994 'selector' => '.order_details > li',
995 'filter_value_cb' => [
996 'callback' => 'pixcloud_adjust_color_brightness',
997 'args' => [
998 - 28,
999 ],
1000 ],
1001 ],
1002 [
1003 'property' => 'border-top-color',
1004 'selector' => 'table.cart td.product-remove,
1005 table.cart td.actions',
1006 ],
1007 [
1008 'property' => 'background',
1009 'selector' => '.order_details:before,
1010 .order_details:after',
1011 // 'callback_filter' => 'gradient()'
1012 ],
1013 [
1014 'property' => 'color',
1015 'selector' => '.woocommerce-info, .woocommerce-message, .woocommerce-noreviews, p.no-comments,
1016
1017 .woocommerce-info a ,.woocommerce-message a, .woocommerce-noreviews a, p.no-comments a,
1018 .woocommerce-info a:hover, .woocommerce-message a:hover, .woocommerce-noreviews a:hover, p.no-comments a:hover',
1019 ],
1020 ],
1021 ],
1022
1023
1024 /**
1025 * Buttons
1026 */
1027 'buttons_section' => [
1028 'type' => 'html',
1029 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Buttons', 'storefront' ) . '</span>',
1030 ],
1031 'buttons_text_color' => [
1032 'type' => 'color',
1033 'label' => esc_html__( 'Text Color', 'customify' ),
1034 'live' => true,
1035 'default' => '#333333',
1036 'css' => [
1037 [
1038 'property' => 'color',
1039 'selector' => 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart, .widget a.button, .site-header-cart .widget_shopping_cart a.button,
1040
1041 button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover, .widget a.button:hover, .site-header-cart .widget_shopping_cart a.button:hover,
1042
1043 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger,
1044
1045 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover,
1046
1047 .button.loading:after ',
1048 ],
1049 ],
1050 ],
1051 'buttons_background_color' => [
1052 'type' => 'color',
1053 'label' => esc_html__( 'Background Color', 'customify' ),
1054 'live' => true,
1055 'default' => '#eeeeee',
1056 'css' => [
1057 [
1058 'property' => 'background-color',
1059 'selector' => 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart, .widget a.button, .site-header-cart .widget_shopping_cart a.button,
1060
1061 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger',
1062 ],
1063 [
1064 'property' => 'border-color',
1065 'selector' => 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart, .widget a.button, .site-header-cart .widget_shopping_cart a.button',
1066 ],
1067 // Hover
1068 [
1069 'property' => 'background-color',
1070 'selector' => 'button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover, .widget a.button:hover, .site-header-cart .widget_shopping_cart a.button:hover,
1071
1072 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover',
1073 'filter_value_cb' => [
1074 'callback' => 'pixcloud_adjust_color_brightness',
1075 'args' => [
1076 - 25,
1077 ],
1078 ],
1079 ],
1080 [
1081 'property' => 'border-color',
1082 'selector' => 'button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover, .widget a.button:hover, .site-header-cart .widget_shopping_cart a.button:hover,
1083
1084 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover',
1085 'filter_value_cb' => [
1086 'callback' => 'pixcloud_adjust_color_brightness',
1087 'args' => [
1088 - 25,
1089 ],
1090 ],
1091 ],
1092 ],
1093 ],
1094 'buttons_alt_text_color' => [
1095 'type' => 'color',
1096 'label' => esc_html__( 'Alternate Text Color', 'customify' ),
1097 'live' => true,
1098 'default' => '#ffffff',
1099 'css' => [
1100 [
1101 'property' => 'color',
1102 'selector' => 'button.alt, input[type="button"].alt, input[type="reset"].alt, input[type="submit"].alt, .button.alt, .added_to_cart.alt, .widget-area .widget a.button.alt, .added_to_cart, .widget a.button.checkout',
1103 ],
1104 ],
1105 ],
1106 'buttons_alt_background_color' => [
1107 'type' => 'color',
1108 'label' => esc_html__( 'Alternate Background Color', 'customify' ),
1109 'live' => true,
1110 'default' => '#333333',
1111 'css' => [
1112 [
1113 'property' => 'background-color',
1114 'selector' => 'button.alt, input[type="button"].alt, input[type="reset"].alt, input[type="submit"].alt, .button.alt, .added_to_cart.alt, .widget-area .widget a.button.alt, .added_to_cart, .widget a.button.checkout',
1115 ],
1116 [
1117 'property' => 'border-color',
1118 'selector' => 'button.alt, input[type="button"].alt, input[type="reset"].alt, input[type="submit"].alt, .button.alt, .added_to_cart.alt, .widget-area .widget a.button.alt, .added_to_cart, .widget a.button.checkout',
1119 ],
1120 // Hover
1121 [
1122 'property' => 'background-color',
1123 'selector' => 'button.alt:hover, input[type="button"].alt:hover, input[type="reset"].alt:hover, input[type="submit"].alt:hover, .button.alt:hover, .added_to_cart.alt:hover, .widget-area .widget a.button.alt:hover, .added_to_cart:hover, .widget a.button.checkout:hover',
1124 'filter_value_cb' => [
1125 'callback' => 'pixcloud_adjust_color_brightness',
1126 'args' => [
1127 - 25,
1128 ],
1129 ],
1130 ],
1131 [
1132 'property' => 'border-color',
1133 'selector' => 'button.alt:hover, input[type="button"].alt:hover, input[type="reset"].alt:hover, input[type="submit"].alt:hover, .button.alt:hover, .added_to_cart.alt:hover, .widget-area .widget a.button.alt:hover, .added_to_cart:hover, .widget a.button.checkout:hover',
1134 'filter_value_cb' => [
1135 'callback' => 'pixcloud_adjust_color_brightness',
1136 'args' => [
1137 - 25,
1138 ],
1139 ],
1140 ],
1141 ],
1142 ],
1143
1144
1145 /**
1146 * Footer
1147 */
1148 'footer_section' => [
1149 'type' => 'html',
1150 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Footer', 'storefront' ) . '</span>',
1151 ],
1152 'footer_text_color' => [
1153 'type' => 'color',
1154 'label' => esc_html__( 'Footer Text Color', 'customify' ),
1155 'live' => true,
1156 'default' => '#6d6d6d',
1157 'css' => [
1158 [
1159 'property' => 'color',
1160 'selector' => '.site-footer',
1161 ],
1162 ],
1163 ],
1164 'footer_links_color' => [
1165 'type' => 'color',
1166 'label' => esc_html__( 'Footer Links Color', 'customify' ),
1167 'live' => true,
1168 'default' => '#333333',
1169 'css' => [
1170 [
1171 'property' => 'color',
1172 'selector' => '.site-footer a:not(.button)',
1173 ],
1174 ],
1175 ],
1176 'footer_heading_color' => [
1177 'type' => 'color',
1178 'label' => esc_html__( 'Footer Headings Color', 'customify' ),
1179 'live' => true,
1180 'default' => '#333333',
1181 'css' => [
1182 [
1183 'property' => 'color',
1184 'selector' => '.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6',
1185 ],
1186 ],
1187 ],
1188 'footer_background_color' => [
1189 'type' => 'color',
1190 'label' => esc_html__( 'Footer Background', 'customify' ),
1191 'live' => true,
1192 'default' => '#f0f0f0',
1193 'css' => [
1194 [
1195 'property' => 'background-color',
1196 'selector' => '.site-footer',
1197 ],
1198 ],
1199 ],
1200
1201 /**
1202 * Miscellaneous
1203 */
1204 'misc_section' => [
1205 'type' => 'html',
1206 'html' => '<span id="section-title-blog-fonts" class="separator section label large">' . esc_html__( 'Miscellaneous', 'storefront' ) . '</span>',
1207 ],
1208
1209 'woocommerce_info_background_color' => [
1210 'type' => 'background-color',
1211 'label' => esc_html__( 'WooCommerce Info', 'customify' ),
1212 'live' => true,
1213 'default' => '#3d9cd2',
1214 'css' => [
1215 [
1216 'property' => 'background-color',
1217 'selector' => '.woocommerce-info, .woocommerce-message, .woocommerce-noreviews, p.no-comments',
1218 ],
1219 ],
1220 ],
1221 ],
1222 ],
1223 ];
1224
1225 /**
1226 * Add the Style Manager cross-theme Customizer section.
1227 */
1228 $config['sections']['style_manager_section'] = [
1229 'options' => [
1230 // Colors connected fields.
1231 'sm_color_primary' => [
1232 'connected_fields' => [
1233 'body_link_color',
1234 'main_content_heading_4_color',
1235 'main_content_heading_5_color',
1236 'header_navigation_links_active_color',
1237 'woocommerce_info_background_color',
1238 ],
1239 ],
1240 'sm_color_secondary' => [
1241 'connected_fields' => [
1242 'main_content_heading_6_color',
1243 'buttons_alt_background_color',
1244 ],
1245 ],
1246
1247 'sm_dark_primary' => [
1248 'connected_fields' => [
1249 'body_link_active_color',
1250 'page_title_color',
1251 'main_content_page_title_color',
1252 'main_content_heading_1_color',
1253 'main_content_heading_2_color',
1254 'main_content_heading_3_color',
1255 'header_navigation_links_color',
1256 'footer_links_color',
1257 'footer_heading_color',
1258
1259 'buttons_text_color',
1260 ],
1261 ],
1262 'sm_dark_secondary' => [
1263 'connected_fields' => [
1264 'body_text_color',
1265 'header_navigation_text_color',
1266 'footer_text_color',
1267 ],
1268 ],
1269 'sm_light_primary' => [
1270 'connected_fields' => [
1271 'main_content_content_background_color',
1272 'buttons_alt_text_color',
1273 ],
1274 ],
1275 'sm_light_secondary' => [
1276 'connected_fields' => [
1277 'header_background_color',
1278 'buttons_background_color',
1279 'footer_background_color',
1280 ],
1281 ],
1282 'sm_light_tertiary' => [
1283 'connected_fields' => [],
1284 ],
1285
1286 // Fonts connected fields.
1287 'sm_font_primary' => [
1288 'connected_fields' => [
1289 'main_content_page_title_font',
1290 'main_content_quote_block_font',
1291 'main_content_heading_1_font',
1292 'main_content_heading_2_font',
1293 'main_content_heading_3_font',
1294 ],
1295 ],
1296 'sm_font_secondary' => [
1297 'connected_fields' => [
1298 'main_content_heading_4_font',
1299 'main_content_heading_5_font',
1300 'main_content_heading_6_font',
1301 'buttons_font',
1302 'header_navigation_font'
1303 ],
1304 ],
1305 'sm_font_body' => [
1306 'connected_fields' => [
1307 'main_content_body_text_font',
1308 'cards_price_font'
1309 ],
1310 ],
1311 ],
1312 ];
1313
1314 /**
1315 * Add "instructions" to remove panels, sections, controls and/or settings.
1316 */
1317
1318 $config['remove_sections'] = [
1319 'storefront_footer',
1320 'storefront_typography',
1321 'storefront_buttons',
1322 ];
1323
1324 $config['remove_controls'] = [
1325 'storefront_header_background_color',
1326 'storefront_header_text_color',
1327 'storefront_header_link_color',
1328 'background_color',
1329 ];
1330
1331 // You don't need to return anything.
1332