@@ 122-137 (lines=16) @@ | ||
119 | /** |
|
120 | * Enqueues front-end CSS for the button. |
|
121 | */ |
|
122 | function lsx_customizer_colour__button_css() { |
|
123 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__button_theme_mod' ); |
|
124 | ||
125 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
126 | $theme_mods = lsx_customizer_colour__button_get_theme_mods(); |
|
127 | $styles = lsx_customizer_colour__button_get_css( $theme_mods ); |
|
128 | ||
129 | if ( false === $styles_from_theme_mod ) { |
|
130 | set_theme_mod( 'lsx_customizer_colour__button_theme_mod', $styles ); |
|
131 | } |
|
132 | } else { |
|
133 | $styles = $styles_from_theme_mod; |
|
134 | } |
|
135 | ||
136 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
137 | } |
|
138 | add_action( 'wp_footer', 'lsx_customizer_colour__button_css', 12 ); |
|
139 | ||
140 | /** |
|
@@ 396-411 (lines=16) @@ | ||
393 | /** |
|
394 | * Enqueues front-end CSS for the button cta. |
|
395 | */ |
|
396 | function lsx_customizer_colour__button_cta_css() { |
|
397 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__button_cta_theme_mod' ); |
|
398 | ||
399 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
400 | $theme_mods = lsx_customizer_colour__button_cta_get_theme_mods(); |
|
401 | $styles = lsx_customizer_colour__button_cta_get_css( $theme_mods ); |
|
402 | ||
403 | if ( false === $styles_from_theme_mod ) { |
|
404 | set_theme_mod( 'lsx_customizer_colour__button_cta_theme_mod', $styles ); |
|
405 | } |
|
406 | } else { |
|
407 | $styles = $styles_from_theme_mod; |
|
408 | } |
|
409 | ||
410 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
411 | } |
|
412 | add_action( 'wp_footer', 'lsx_customizer_colour__button_cta_css', 12 ); |
|
413 | ||
414 | /** |
|
@@ 568-583 (lines=16) @@ | ||
565 | /** |
|
566 | * Enqueues front-end CSS for the top menu. |
|
567 | */ |
|
568 | function lsx_customizer_colour__top_menu_css() { |
|
569 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__top_menu_theme_mod' ); |
|
570 | ||
571 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
572 | $theme_mods = lsx_customizer_colour__top_menu_get_theme_mods(); |
|
573 | $styles = lsx_customizer_colour__top_menu_get_css( $theme_mods ); |
|
574 | ||
575 | if ( false === $styles_from_theme_mod ) { |
|
576 | set_theme_mod( 'lsx_customizer_colour__top_menu_theme_mod', $styles ); |
|
577 | } |
|
578 | } else { |
|
579 | $styles = $styles_from_theme_mod; |
|
580 | } |
|
581 | ||
582 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
583 | } |
|
584 | add_action( 'wp_footer', 'lsx_customizer_colour__top_menu_css', 12 ); |
|
585 | ||
586 | /** |
|
@@ 684-699 (lines=16) @@ | ||
681 | /** |
|
682 | * Enqueues front-end CSS for the header. |
|
683 | */ |
|
684 | function lsx_customizer_colour__header_css() { |
|
685 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__header_theme_mod' ); |
|
686 | ||
687 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
688 | $theme_mods = lsx_customizer_colour__header_get_theme_mods(); |
|
689 | $styles = lsx_customizer_colour__header_get_css( $theme_mods ); |
|
690 | ||
691 | if ( false === $styles_from_theme_mod ) { |
|
692 | set_theme_mod( 'lsx_customizer_colour__header_theme_mod', $styles ); |
|
693 | } |
|
694 | } else { |
|
695 | $styles = $styles_from_theme_mod; |
|
696 | } |
|
697 | ||
698 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
699 | } |
|
700 | add_action( 'wp_footer', 'lsx_customizer_colour__header_css', 12 ); |
|
701 | ||
702 | /** |
|
@@ 798-813 (lines=16) @@ | ||
795 | /** |
|
796 | * Enqueues front-end CSS for the main menu. |
|
797 | */ |
|
798 | function lsx_customizer_colour__main_menu_css() { |
|
799 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__main_menu_theme_mod' ); |
|
800 | ||
801 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
802 | $theme_mods = lsx_customizer_colour__main_menu_get_theme_mods(); |
|
803 | $styles = lsx_customizer_colour__main_menu_get_css( $theme_mods ); |
|
804 | ||
805 | if ( false === $styles_from_theme_mod ) { |
|
806 | set_theme_mod( 'lsx_customizer_colour__main_menu_theme_mod', $styles ); |
|
807 | } |
|
808 | } else { |
|
809 | $styles = $styles_from_theme_mod; |
|
810 | } |
|
811 | ||
812 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
813 | } |
|
814 | add_action( 'wp_footer', 'lsx_customizer_colour__main_menu_css', 12 ); |
|
815 | ||
816 | /** |
|
@@ 989-1004 (lines=16) @@ | ||
986 | /** |
|
987 | * Enqueues front-end CSS for the banner. |
|
988 | */ |
|
989 | function lsx_customizer_colour__banner_css() { |
|
990 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__banner_theme_mod' ); |
|
991 | ||
992 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
993 | $theme_mods = lsx_customizer_colour__banner_get_theme_mods(); |
|
994 | $styles = lsx_customizer_colour__banner_get_css( $theme_mods ); |
|
995 | ||
996 | if ( false === $styles_from_theme_mod ) { |
|
997 | set_theme_mod( 'lsx_customizer_colour__banner_theme_mod', $styles ); |
|
998 | } |
|
999 | } else { |
|
1000 | $styles = $styles_from_theme_mod; |
|
1001 | } |
|
1002 | ||
1003 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
1004 | } |
|
1005 | add_action( 'wp_footer', 'lsx_customizer_colour__banner_css', 12 ); |
|
1006 | ||
1007 | /** |
|
@@ 1094-1109 (lines=16) @@ | ||
1091 | /** |
|
1092 | * Enqueues front-end CSS for the body. |
|
1093 | */ |
|
1094 | function lsx_customizer_colour__body_css() { |
|
1095 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__body_theme_mod' ); |
|
1096 | ||
1097 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
1098 | $theme_mods = lsx_customizer_colour__body_get_theme_mods(); |
|
1099 | $styles = lsx_customizer_colour__body_get_css( $theme_mods ); |
|
1100 | ||
1101 | if ( false === $styles_from_theme_mod ) { |
|
1102 | set_theme_mod( 'lsx_customizer_colour__body_theme_mod', $styles ); |
|
1103 | } |
|
1104 | } else { |
|
1105 | $styles = $styles_from_theme_mod; |
|
1106 | } |
|
1107 | ||
1108 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
1109 | } |
|
1110 | add_action( 'wp_footer', 'lsx_customizer_colour__body_css', 12 ); |
|
1111 | ||
1112 | /** |
|
@@ 1445-1460 (lines=16) @@ | ||
1442 | /** |
|
1443 | * Enqueues front-end CSS for the footer cta. |
|
1444 | */ |
|
1445 | function lsx_customizer_colour__footer_cta_css() { |
|
1446 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__footer_cta_theme_mod' ); |
|
1447 | ||
1448 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
1449 | $theme_mods = lsx_customizer_colour__footer_cta_get_theme_mods(); |
|
1450 | $styles = lsx_customizer_colour__footer_cta_get_css( $theme_mods ); |
|
1451 | ||
1452 | if ( false === $styles_from_theme_mod ) { |
|
1453 | set_theme_mod( 'lsx_customizer_colour__footer_cta_theme_mod', $styles ); |
|
1454 | } |
|
1455 | } else { |
|
1456 | $styles = $styles_from_theme_mod; |
|
1457 | } |
|
1458 | ||
1459 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
1460 | } |
|
1461 | add_action( 'wp_footer', 'lsx_customizer_colour__footer_cta_css', 12 ); |
|
1462 | ||
1463 | /** |
|
@@ 1556-1571 (lines=16) @@ | ||
1553 | /** |
|
1554 | * Enqueues front-end CSS for the footer widgets. |
|
1555 | */ |
|
1556 | function lsx_customizer_colour__footer_widgets_css() { |
|
1557 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__footer_widgets_theme_mod' ); |
|
1558 | ||
1559 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
1560 | $theme_mods = lsx_customizer_colour__footer_widgets_get_theme_mods(); |
|
1561 | $styles = lsx_customizer_colour__footer_widgets_get_css( $theme_mods ); |
|
1562 | ||
1563 | if ( false === $styles_from_theme_mod ) { |
|
1564 | set_theme_mod( 'lsx_customizer_colour__footer_widgets_theme_mod', $styles ); |
|
1565 | } |
|
1566 | } else { |
|
1567 | $styles = $styles_from_theme_mod; |
|
1568 | } |
|
1569 | ||
1570 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
1571 | } |
|
1572 | add_action( 'wp_footer', 'lsx_customizer_colour__footer_widgets_css', 12 ); |
|
1573 | ||
1574 | /** |
|
@@ 1671-1686 (lines=16) @@ | ||
1668 | /** |
|
1669 | * Enqueues front-end CSS for the footer. |
|
1670 | */ |
|
1671 | function lsx_customizer_colour__footer_css() { |
|
1672 | $styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__footer_theme_mod' ); |
|
1673 | ||
1674 | if ( is_customize_preview() || false === $styles_from_theme_mod ) { |
|
1675 | $theme_mods = lsx_customizer_colour__footer_get_theme_mods(); |
|
1676 | $styles = lsx_customizer_colour__footer_get_css( $theme_mods ); |
|
1677 | ||
1678 | if ( false === $styles_from_theme_mod ) { |
|
1679 | set_theme_mod( 'lsx_customizer_colour__footer_theme_mod', $styles ); |
|
1680 | } |
|
1681 | } else { |
|
1682 | $styles = $styles_from_theme_mod; |
|
1683 | } |
|
1684 | ||
1685 | wp_add_inline_style( 'lsx_customizer_colour', $styles ); |
|
1686 | } |
|
1687 | add_action( 'wp_footer', 'lsx_customizer_colour__footer_css', 12 ); |
|
1688 | ||
1689 | /** |