PluginProbe
Customify / 2.10.9
Customify v2.10.9
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.10.9, at includes/customify_theme_root.php

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