Passed
Push — dependabot/github_actions/acti... ( 9e7387 )
by
unknown
12:53
created
classes/class-lsx-customizer-colour-control.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! class_exists( 'LSX_Customizer_Colour_Control' ) ) {
2
+if ( ! class_exists('LSX_Customizer_Colour_Control')) {
3 3
 
4 4
 	/**
5 5
 	 * LSX Customizer Colour Control Class
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 		 * @since 1.0.0
19 19
 		 */
20 20
 		public function enqueue() {
21
-			wp_enqueue_script( 'lsx_customizer_colour_admin', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer-colour-admin.min.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), LSX_CUSTOMIZER_VER, true );
21
+			wp_enqueue_script('lsx_customizer_colour_admin', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer-colour-admin.min.js', array('customize-controls', 'iris', 'underscore', 'wp-util'), LSX_CUSTOMIZER_VER, true);
22 22
 			//wp_localize_script( 'lsx_customizer_colour_admin', 'color_scheme', $this->choices );
23 23
 
24 24
 			global $customizer_colour_names;
25 25
 			$colors = array();
26
-			foreach ( $customizer_colour_names as $key => $value ) {
26
+			foreach ($customizer_colour_names as $key => $value) {
27 27
 				$colors[] = $key;
28 28
 			}
29
-			wp_localize_script( 'lsx_customizer_colour_admin', 'color_scheme_keys', $colors );
29
+			wp_localize_script('lsx_customizer_colour_admin', 'color_scheme_keys', $colors);
30 30
 		}
31 31
 
32 32
 		/**
@@ -35,24 +35,24 @@  discard block
 block discarded – undo
35 35
 		 * @since 1.0.0
36 36
 		 */
37 37
 		public function render_content() {
38
-			if ( empty( $this->choices ) ) {
38
+			if (empty($this->choices)) {
39 39
 				return;
40 40
 			}
41 41
 
42 42
 			?>
43 43
 			<label>
44
-				<?php if ( ! empty( $this->label ) ) { ?>
45
-					<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
44
+				<?php if ( ! empty($this->label)) { ?>
45
+					<span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
46 46
 				<?php
47 47
 }
48
-if ( ! empty( $this->description ) ) {
48
+if ( ! empty($this->description)) {
49 49
 					?>
50
-					<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
50
+					<span class="description customize-control-description"><?php echo esc_html($this->description); ?></span>
51 51
 				<?php } ?>
52 52
 				<select <?php $this->link(); ?>>
53 53
 					<?php
54
-					foreach ( $this->choices as $value => $label ) {
55
-							echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . esc_html( $label['label'] ) . '</option>';
54
+					foreach ($this->choices as $value => $label) {
55
+							echo '<option value="' . esc_attr($value) . '"' . selected($this->value(), $value, false) . '>' . esc_html($label['label']) . '</option>';
56 56
 					}
57 57
 					?>
58 58
 				</select>
Please login to merge, or discard this patch.
classes/class-lsx-customizer-admin.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! class_exists( 'LSX_Customizer_Admin' ) ) {
2
+if ( ! class_exists('LSX_Customizer_Admin')) {
3 3
 
4 4
 	/**
5 5
 	 * LSX Customizer Admin Class
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 		 * @since 1.0.0
19 19
 		 */
20 20
 		public function __construct() {
21
-			add_action( 'customize_preview_init', array( $this, 'assets' ), 9999 );
22
-			add_action( 'customize_controls_enqueue_scripts', array( $this, 'assets_wysiwyg_editor' ), 9999 );
21
+			add_action('customize_preview_init', array($this, 'assets'), 9999);
22
+			add_action('customize_controls_enqueue_scripts', array($this, 'assets_wysiwyg_editor'), 9999);
23 23
 
24
-			if ( is_admin() ) {
25
-				add_filter( 'lsx_customizer_colour_selectors_body', array( $this, 'customizer_body_colours_handler' ), 15, 2 );
24
+			if (is_admin()) {
25
+				add_filter('lsx_customizer_colour_selectors_body', array($this, 'customizer_body_colours_handler'), 15, 2);
26 26
 			}
27 27
 		}
28 28
 
@@ -32,15 +32,15 @@  discard block
 block discarded – undo
32 32
 		 * @since 1.0.0
33 33
 		 */
34 34
 		public function assets() {
35
-			wp_enqueue_script( 'lsx_customizer_admin', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer-admin.min.js', array( 'jquery' ), LSX_CUSTOMIZER_VER, true );
35
+			wp_enqueue_script('lsx_customizer_admin', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer-admin.min.js', array('jquery'), LSX_CUSTOMIZER_VER, true);
36 36
 
37
-			$params = apply_filters( 'lsx_customizer_admin_js_params', array(
38
-				'ajax_url' => admin_url( 'admin-ajax.php' ),
37
+			$params = apply_filters('lsx_customizer_admin_js_params', array(
38
+				'ajax_url' => admin_url('admin-ajax.php'),
39 39
 			));
40 40
 
41
-			wp_localize_script( 'lsx_customizer_admin', 'lsx_customizer_params', $params );
41
+			wp_localize_script('lsx_customizer_admin', 'lsx_customizer_params', $params);
42 42
 
43
-			wp_enqueue_style( 'lsx_customizer_admin', LSX_CUSTOMIZER_URL . 'assets/css/lsx-customizer-admin.css', array(), LSX_CUSTOMIZER_VER );
43
+			wp_enqueue_style('lsx_customizer_admin', LSX_CUSTOMIZER_URL . 'assets/css/lsx-customizer-admin.css', array(), LSX_CUSTOMIZER_VER);
44 44
 		}
45 45
 
46 46
 		/**
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
 		 * @since 1.1.1
50 50
 		 */
51 51
 		public function assets_wysiwyg_editor() {
52
-			wp_enqueue_script( 'lsx_customizer_editor', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer-editor.min.js', array( 'jquery' ), LSX_CUSTOMIZER_VER, true );
52
+			wp_enqueue_script('lsx_customizer_editor', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer-editor.min.js', array('jquery'), LSX_CUSTOMIZER_VER, true);
53 53
 		}
54 54
 
55 55
 		/**
56 56
 		 * Handle body colours that might be change by LSX Customizer.
57 57
 		 */
58
-		public function customizer_body_colours_handler( $css, $colors ) {
58
+		public function customizer_body_colours_handler($css, $colors) {
59 59
 			$css .= '
60 60
 				@import "' . LSX_CUSTOMIZER_PATH . '/assets/css/scss/customizer-customizer-body-colours";
61 61
 
Please login to merge, or discard this patch.
classes/class-lsx-customizer-frontend.php 1 patch
Spacing   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! class_exists( 'LSX_Customizer_Frontend' ) ) {
2
+if ( ! class_exists('LSX_Customizer_Frontend')) {
3 3
 
4 4
 	/**
5 5
 	 * LSX Customizer Frontend Class
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
 		 * @since 1.0.0
19 19
 		 */
20 20
 		public function __construct() {
21
-			add_action( 'wp_enqueue_scripts', array( $this, 'assets' ), 2999 );
22
-			add_action( 'wp_enqueue_scripts', array( $this, 'lsx_customizer_color_palette_css' ), 2999 );
23
-			add_action( 'wp', array( $this, 'layout' ), 2999 );
24
-			add_action( 'wp', array( $this, 'lsx_distraction_free_checkout' ), 2999 );
25
-			add_action( 'wp', array( $this, 'lsx_customizer_two_step_checkout' ) );
26
-			add_action( 'after_setup_theme', array( $this, 'lsx_customizer_color_palette_setup' ), 100 );
21
+			add_action('wp_enqueue_scripts', array($this, 'assets'), 2999);
22
+			add_action('wp_enqueue_scripts', array($this, 'lsx_customizer_color_palette_css'), 2999);
23
+			add_action('wp', array($this, 'layout'), 2999);
24
+			add_action('wp', array($this, 'lsx_distraction_free_checkout'), 2999);
25
+			add_action('wp', array($this, 'lsx_customizer_two_step_checkout'));
26
+			add_action('after_setup_theme', array($this, 'lsx_customizer_color_palette_setup'), 100);
27 27
 		}
28 28
 
29 29
 		/**
@@ -32,21 +32,21 @@  discard block
 block discarded – undo
32 32
 		 * @since 1.0.0
33 33
 		 */
34 34
 		public function assets() {
35
-			wp_enqueue_script( 'lsx-customizer', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer.min.js', array( 'jquery' ), LSX_CUSTOMIZER_VER, true );
35
+			wp_enqueue_script('lsx-customizer', LSX_CUSTOMIZER_URL . 'assets/js/lsx-customizer.min.js', array('jquery'), LSX_CUSTOMIZER_VER, true);
36 36
 
37
-			$params = apply_filters( 'lsx_customizer_js_params', array(
38
-				'ajax_url' => admin_url( 'admin-ajax.php' ),
37
+			$params = apply_filters('lsx_customizer_js_params', array(
38
+				'ajax_url' => admin_url('admin-ajax.php'),
39 39
 			));
40 40
 
41
-			wp_localize_script( 'lsx-customizer', 'lsx_customizer_params', $params );
41
+			wp_localize_script('lsx-customizer', 'lsx_customizer_params', $params);
42 42
 
43
-			wp_enqueue_style( 'lsx-customizer', LSX_CUSTOMIZER_URL . 'assets/css/lsx-customizer.css', array(), LSX_CUSTOMIZER_VER );
44
-			wp_style_add_data( 'lsx-customizer', 'rtl', 'replace' );
43
+			wp_enqueue_style('lsx-customizer', LSX_CUSTOMIZER_URL . 'assets/css/lsx-customizer.css', array(), LSX_CUSTOMIZER_VER);
44
+			wp_style_add_data('lsx-customizer', 'rtl', 'replace');
45 45
 
46
-			$two_step_checkout = get_theme_mod( 'lsx_two_step_checkout', false );
47
-			if ( class_exists( 'WooCommerce' ) && function_exists( 'is_checkout' ) && is_checkout() && ! empty( $two_step_checkout ) ) {
46
+			$two_step_checkout = get_theme_mod('lsx_two_step_checkout', false);
47
+			if (class_exists('WooCommerce') && function_exists('is_checkout') && is_checkout() && ! empty($two_step_checkout)) {
48 48
 
49
-				wp_enqueue_script( 'flexslider', LSX_CUSTOMIZER_URL . 'assets/js/jquery.flexslider.min.js', array( 'jquery' ), '2.5.0' );
49
+				wp_enqueue_script('flexslider', LSX_CUSTOMIZER_URL . 'assets/js/jquery.flexslider.min.js', array('jquery'), '2.5.0');
50 50
 			}
51 51
 
52 52
 		}
@@ -59,84 +59,84 @@  discard block
 block discarded – undo
59 59
 		public function lsx_customizer_color_palette_css() {
60 60
 			$styles = '
61 61
 			.container #primary.content-area .has-primary-color-background-color {
62
-				background-color:' . get_theme_mod( 'primary_color', '#428bca' ) . ';
62
+				background-color:' . get_theme_mod('primary_color', '#428bca') . ';
63 63
 			}
64 64
 			.container #primary.content-area .has-primary-color-color {
65
-				color: ' . get_theme_mod( 'primary_color', '#428bca' ) . ';
65
+				color: ' . get_theme_mod('primary_color', '#428bca') . ';
66 66
 			}
67 67
 
68 68
 			.container #primary.content-area .has-strong-primary-color-background-color {
69
-				background-color:' . get_theme_mod( 'strong_primary_color', '#2a6496' ) . ';
69
+				background-color:' . get_theme_mod('strong_primary_color', '#2a6496') . ';
70 70
 			}
71 71
 			.container #primary.content-area .has-strong-primary-color-color {
72
-				color: ' . get_theme_mod( 'strong_primary_color', '#2a6496' ) . ';
72
+				color: ' . get_theme_mod('strong_primary_color', '#2a6496') . ';
73 73
 			}
74 74
 
75 75
 			.container #primary.content-area .has-cta-color-background-color {
76
-				background-color:' . get_theme_mod( 'call_to_action_color', '#f7941d' ) . ';
76
+				background-color:' . get_theme_mod('call_to_action_color', '#f7941d') . ';
77 77
 			}
78 78
 			.container #primary.content-area .has-cta-color-color {
79
-				color: ' . get_theme_mod( 'call_to_action_color', '#f7941d' ) . ';
79
+				color: ' . get_theme_mod('call_to_action_color', '#f7941d') . ';
80 80
 			}
81 81
 
82 82
 			.container #primary.content-area .has-strong-cta-color-background-color {
83
-				background-color:' . get_theme_mod( 'strong_cta_color', '#f7741d' ) . ';
83
+				background-color:' . get_theme_mod('strong_cta_color', '#f7741d') . ';
84 84
 			}
85 85
 			.container #primary.content-area .has-strong-cta-color-color {
86
-				color: ' . get_theme_mod( 'strong_cta_color', '#f7741d' ) . ';
86
+				color: ' . get_theme_mod('strong_cta_color', '#f7741d') . ';
87 87
 			}
88 88
 
89 89
 			.container #primary.content-area .has-strong-cta-color-background-color {
90
-				background-color:' . get_theme_mod( 'strong_cta_color', '#f7741d' ) . ';
90
+				background-color:' . get_theme_mod('strong_cta_color', '#f7741d') . ';
91 91
 			}
92 92
 			.container #primary.content-area .has-strong-cta-color-color {
93
-				color: ' . get_theme_mod( 'strong_cta_color', '#f7741d' ) . ';
93
+				color: ' . get_theme_mod('strong_cta_color', '#f7741d') . ';
94 94
 			}
95 95
 
96 96
 			.container #primary.content-area .has-secondary-color-background-color {
97
-				background-color:' . get_theme_mod( 'secondary_color', '#eaeaea' ) . ';
97
+				background-color:' . get_theme_mod('secondary_color', '#eaeaea') . ';
98 98
 			}
99 99
 			.container #primary.content-area .has-secondary-color-color {
100
-				color: ' . get_theme_mod( 'secondary_color', '#eaeaea' ) . ';
100
+				color: ' . get_theme_mod('secondary_color', '#eaeaea') . ';
101 101
 			}
102 102
 
103 103
 			.container #primary.content-area .has-strong-secondary-color-background-color {
104
-				background-color:' . get_theme_mod( 'strong_secondary_color', '#c4c4c4' ) . ';
104
+				background-color:' . get_theme_mod('strong_secondary_color', '#c4c4c4') . ';
105 105
 			}
106 106
 			.container #primary.content-area .has-strong-secondary-color-color {
107
-				color: ' . get_theme_mod( 'strong_secondary_color', '#c4c4c4' ) . ';
107
+				color: ' . get_theme_mod('strong_secondary_color', '#c4c4c4') . ';
108 108
 			}
109 109
 
110 110
 			.container #primary.content-area .has-tertiary-color-background-color {
111
-				background-color:' . get_theme_mod( 'tertiary_color', '#6BA913' ) . ';
111
+				background-color:' . get_theme_mod('tertiary_color', '#6BA913') . ';
112 112
 			}
113 113
 			.container #primary.content-area .has-tertiary-color-color {
114
-				color: ' . get_theme_mod( 'tertiary_color', '#6BA913' ) . ';
114
+				color: ' . get_theme_mod('tertiary_color', '#6BA913') . ';
115 115
 			}
116 116
 
117 117
 			.container #primary.content-area .has-strong-tertiary-color-background-color {
118
-				background-color:' . get_theme_mod( 'strong_tertiary_color', '#3F640B' ) . ';
118
+				background-color:' . get_theme_mod('strong_tertiary_color', '#3F640B') . ';
119 119
 			}
120 120
 			.container #primary.content-area .has-strong-tertiary-color-color {
121
-				color: ' . get_theme_mod( 'strong_tertiary_color', '#3F640B' ) . ';
121
+				color: ' . get_theme_mod('strong_tertiary_color', '#3F640B') . ';
122 122
 			}
123 123
 
124 124
 			.container #primary.content-area .has-heading-color-background-color {
125
-				background-color:' . get_theme_mod( 'heading_color', '#4a4a4a' ) . ';
125
+				background-color:' . get_theme_mod('heading_color', '#4a4a4a') . ';
126 126
 			}
127 127
 			.container #primary.content-area .has-heading-color-color {
128
-				color: ' . get_theme_mod( 'heading_color', '#4a4a4a' ) . ';
128
+				color: ' . get_theme_mod('heading_color', '#4a4a4a') . ';
129 129
 			}
130 130
 
131 131
 			.container #primary.content-area .has-body-color-background-color {
132
-				background-color:' . get_theme_mod( 'body_text_color_color', '#444444' ) . ';
132
+				background-color:' . get_theme_mod('body_text_color_color', '#444444') . ';
133 133
 			}
134 134
 			.container #primary.content-area .has-body-color-color {
135
-				color: ' . get_theme_mod( 'body_text_color_color', '#444444' ) . ';
135
+				color: ' . get_theme_mod('body_text_color_color', '#444444') . ';
136 136
 			}
137 137
 
138 138
 			';
139
-			wp_add_inline_style( 'lsx-customizer', $styles );
139
+			wp_add_inline_style('lsx-customizer', $styles);
140 140
 		}
141 141
 
142 142
 		/**
@@ -145,10 +145,10 @@  discard block
 block discarded – undo
145 145
 		 * @since 1.0.0
146 146
 		 */
147 147
 		public function layout() {
148
-			$theme_credit = get_theme_mod( 'lsx_theme_credit_status', true );
148
+			$theme_credit = get_theme_mod('lsx_theme_credit_status', true);
149 149
 
150
-			if ( false == $theme_credit ) {
151
-				add_filter( 'lsx_credit_link', '__return_false' );
150
+			if (false == $theme_credit) {
151
+				add_filter('lsx_credit_link', '__return_false');
152 152
 			}
153 153
 		}
154 154
 
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
 		 */
161 161
 		public function lsx_distraction_free_checkout() {
162 162
 
163
-			$distraction_free = get_theme_mod( 'lsx_distraction_free_checkout', false );
163
+			$distraction_free = get_theme_mod('lsx_distraction_free_checkout', false);
164 164
 
165
-			if ( class_exists( 'WooCommerce' ) && function_exists( 'is_checkout' ) && is_checkout() && ! empty( $distraction_free ) ) {
166
-				remove_action( 'lsx_body_bottom', 'lsx_wc_footer_bar', 15 );
165
+			if (class_exists('WooCommerce') && function_exists('is_checkout') && is_checkout() && ! empty($distraction_free)) {
166
+				remove_action('lsx_body_bottom', 'lsx_wc_footer_bar', 15);
167 167
 
168 168
 			}
169 169
 		}
@@ -175,18 +175,18 @@  discard block
 block discarded – undo
175 175
 		 * @return  void
176 176
 		 */
177 177
 		public function lsx_customizer_two_step_checkout() {
178
-			$two_step_checkout = get_theme_mod( 'lsx_two_step_checkout', false );
179
-
180
-			if ( class_exists( 'WooCommerce' ) && function_exists( 'is_checkout' ) && is_checkout() && ! empty( $two_step_checkout ) ) {
181
-				add_action( 'woocommerce_checkout_before_customer_details', 'lsx_customizer_checkout_form_wrapper_div', 1 );
182
-				add_action( 'woocommerce_checkout_before_customer_details', 'lsx_customizer_checkout_form_wrapper', 2 );
183
-				add_action( 'woocommerce_checkout_order_review', 'lsx_customizer_close_div', 30 );
184
-				add_action( 'woocommerce_checkout_order_review', 'lsx_customizer_close_ul', 30 );
185
-				add_action( 'woocommerce_checkout_before_customer_details', 'lsx_customizer_address_wrapper', 5 );
186
-				add_action( 'woocommerce_checkout_after_customer_details', 'lsx_customizer_close_li' );
187
-				add_action( 'wp_footer', 'lsx_customizer_fire_flexslider' );
188
-				add_action( 'woocommerce_checkout_before_order_review', 'lsx_customizer_order_review_wrap', 1 );
189
-				add_action( 'woocommerce_checkout_after_order_review', 'lsx_customizer_close_li', 40 );
178
+			$two_step_checkout = get_theme_mod('lsx_two_step_checkout', false);
179
+
180
+			if (class_exists('WooCommerce') && function_exists('is_checkout') && is_checkout() && ! empty($two_step_checkout)) {
181
+				add_action('woocommerce_checkout_before_customer_details', 'lsx_customizer_checkout_form_wrapper_div', 1);
182
+				add_action('woocommerce_checkout_before_customer_details', 'lsx_customizer_checkout_form_wrapper', 2);
183
+				add_action('woocommerce_checkout_order_review', 'lsx_customizer_close_div', 30);
184
+				add_action('woocommerce_checkout_order_review', 'lsx_customizer_close_ul', 30);
185
+				add_action('woocommerce_checkout_before_customer_details', 'lsx_customizer_address_wrapper', 5);
186
+				add_action('woocommerce_checkout_after_customer_details', 'lsx_customizer_close_li');
187
+				add_action('wp_footer', 'lsx_customizer_fire_flexslider');
188
+				add_action('woocommerce_checkout_before_order_review', 'lsx_customizer_order_review_wrap', 1);
189
+				add_action('woocommerce_checkout_after_order_review', 'lsx_customizer_close_li', 40);
190 190
 			}
191 191
 		}
192 192
 
@@ -196,54 +196,54 @@  discard block
 block discarded – undo
196 196
 		 * @return void
197 197
 		 */
198 198
 		public function lsx_customizer_color_palette_setup() {
199
-			add_theme_support( 'editor-color-palette', array(
199
+			add_theme_support('editor-color-palette', array(
200 200
 				array(
201
-					'name'  => esc_html__( 'Primary Colour', 'lsx-customizer' ),
201
+					'name'  => esc_html__('Primary Colour', 'lsx-customizer'),
202 202
 					'slug'  => 'primary-color',
203
-					'color' => get_theme_mod( 'primary_color', '#428bca' ),
203
+					'color' => get_theme_mod('primary_color', '#428bca'),
204 204
 				),
205 205
 				array(
206
-					'name'  => esc_html__( 'Strong Primary Colour', 'lsx-customizer' ),
206
+					'name'  => esc_html__('Strong Primary Colour', 'lsx-customizer'),
207 207
 					'slug'  => 'strong-primary-color',
208
-					'color' => get_theme_mod( 'strong_primary_color', '#2a6496' ),
208
+					'color' => get_theme_mod('strong_primary_color', '#2a6496'),
209 209
 				),
210 210
 				array(
211
-					'name'  => esc_html__( 'CTA Colour', 'lsx-customizer' ),
211
+					'name'  => esc_html__('CTA Colour', 'lsx-customizer'),
212 212
 					'slug'  => 'cta-color',
213
-					'color' => get_theme_mod( 'call_to_action_color', '#f7941d' ),
213
+					'color' => get_theme_mod('call_to_action_color', '#f7941d'),
214 214
 				),
215 215
 				array(
216
-					'name'  => esc_html__( 'Strong CTA Colour', 'lsx-customizer' ),
216
+					'name'  => esc_html__('Strong CTA Colour', 'lsx-customizer'),
217 217
 					'slug'  => 'strong-cta-color',
218
-					'color' => get_theme_mod( 'strong_cta_color', '#f7741d' ),
218
+					'color' => get_theme_mod('strong_cta_color', '#f7741d'),
219 219
 				),
220 220
 				array(
221
-					'name'  => esc_html__( 'Secondary Colour', 'lsx-customizer' ),
221
+					'name'  => esc_html__('Secondary Colour', 'lsx-customizer'),
222 222
 					'slug'  => 'secondary-color',
223
-					'color' => get_theme_mod( 'secondary_color', '#eaeaea' ),
223
+					'color' => get_theme_mod('secondary_color', '#eaeaea'),
224 224
 				),
225 225
 				array(
226
-					'name'  => esc_html__( 'Strong Secondary Colour', 'lsx-customizer' ),
226
+					'name'  => esc_html__('Strong Secondary Colour', 'lsx-customizer'),
227 227
 					'slug'  => 'strong-secondary-color',
228
-					'color' => get_theme_mod( 'strong_secondary_color', '#c4c4c4' ),
228
+					'color' => get_theme_mod('strong_secondary_color', '#c4c4c4'),
229 229
 				),
230 230
 				array(
231
-					'name'  => esc_html__( 'Tertiary Colour', 'lsx-customizer' ),
231
+					'name'  => esc_html__('Tertiary Colour', 'lsx-customizer'),
232 232
 					'slug'  => 'tertiary-color',
233
-					'color' => get_theme_mod( 'tertiary_color', '#6BA913' ),
233
+					'color' => get_theme_mod('tertiary_color', '#6BA913'),
234 234
 				),
235 235
 				array(
236
-					'name'  => esc_html__( 'Strong Tertiary Colour', 'lsx-customizer' ),
236
+					'name'  => esc_html__('Strong Tertiary Colour', 'lsx-customizer'),
237 237
 					'slug'  => 'strong-tertiary-color',
238
-					'color' => get_theme_mod( 'strong_tertiary_color', '#3F640B' ),
238
+					'color' => get_theme_mod('strong_tertiary_color', '#3F640B'),
239 239
 				),
240 240
 				array(
241
-					'name'  => esc_html__( 'White', 'lsx-customizer' ),
241
+					'name'  => esc_html__('White', 'lsx-customizer'),
242 242
 					'slug'  => 'white',
243 243
 					'color' => '#ffffff',
244 244
 				),
245 245
 				array(
246
-					'name'  => esc_html__( 'Black', 'lsx-customizer' ),
246
+					'name'  => esc_html__('Black', 'lsx-customizer'),
247 247
 					'slug'  => 'black',
248 248
 					'color' => '#000000',
249 249
 				),
Please login to merge, or discard this patch.
classes/class-lsx-customizer-login.php 1 patch
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! class_exists( 'LSX_Customizer_Login' ) ) {
2
+if ( ! class_exists('LSX_Customizer_Login')) {
3 3
 
4 4
 	/**
5 5
 	 * LSX Customizer Login Class
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
 		 * @since 1.0.0
19 19
 		 */
20 20
 		public function __construct() {
21
-			add_action( 'customize_register', array( $this, 'register_general' ), 20 );
22
-			add_action( 'customize_register', array( $this, 'register_form' ), 30 );
23
-			add_action( 'customize_register', array( $this, 'register_background' ), 40 );
21
+			add_action('customize_register', array($this, 'register_general'), 20);
22
+			add_action('customize_register', array($this, 'register_form'), 30);
23
+			add_action('customize_register', array($this, 'register_background'), 40);
24 24
 
25
-			add_action( 'after_switch_theme', array( $this, 'set_theme_mod' ) );
26
-			add_action( 'customize_save_after', array( $this, 'set_theme_mod' ) );
27
-			add_action( 'login_enqueue_scripts', array( $this, 'enqueue_css' ), 2999 );
25
+			add_action('after_switch_theme', array($this, 'set_theme_mod'));
26
+			add_action('customize_save_after', array($this, 'set_theme_mod'));
27
+			add_action('login_enqueue_scripts', array($this, 'enqueue_css'), 2999);
28 28
 		}
29 29
 
30 30
 		/**
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 		 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
34 34
 		 * @since 1.0.0
35 35
 		 */
36
-		public function register_general( $wp_customize ) {
36
+		public function register_general($wp_customize) {
37 37
 			/**
38 38
 			 * Register the main panel
39 39
 			 */
40 40
 			$wp_customize->add_panel(
41 41
 				'login',
42 42
 				array(
43
-					'title'    => esc_html__( 'WP Login Screen', 'lsx-customizer' ),
43
+					'title'    => esc_html__('WP Login Screen', 'lsx-customizer'),
44 44
 					'priority' => 60,
45 45
 				)
46 46
 			);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 			$wp_customize->add_section(
52 52
 				'login-general',
53 53
 				array(
54
-					'title'    => esc_html__( 'General', 'lsx-customizer' ),
54
+					'title'    => esc_html__('General', 'lsx-customizer'),
55 55
 					'priority' => 1,
56 56
 					'panel'    => 'login',
57 57
 				)
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 					$wp_customize,
75 75
 					'lsx_login_logo',
76 76
 					array(
77
-						'label'    => __( 'Upload a logo', 'lsx-customizer' ),
77
+						'label'    => __('Upload a logo', 'lsx-customizer'),
78 78
 						'section'  => 'login-general',
79 79
 						'settings' => 'lsx_login_logo',
80 80
 					)
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 					$wp_customize,
98 98
 					'lsx_login_link_colour',
99 99
 					array(
100
-						'label'    => __( 'Link Colour', 'lsx-customizer' ),
100
+						'label'    => __('Link Colour', 'lsx-customizer'),
101 101
 						'section'  => 'login-general',
102 102
 						'settings' => 'lsx_login_link_colour',
103 103
 					)
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 					$wp_customize,
121 121
 					'lsx_login_link_hover_colour',
122 122
 					array(
123
-						'label'    => __( 'Link Hover Colour', 'lsx-customizer' ),
123
+						'label'    => __('Link Hover Colour', 'lsx-customizer'),
124 124
 						'section'  => 'login-general',
125 125
 						'settings' => 'lsx_login_link_hover_colour',
126 126
 					)
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 					$wp_customize,
144 144
 					'lsx_login_custom_css',
145 145
 					array(
146
-						'label'    => __( 'Custom CSS', 'lsx-customizer' ),
146
+						'label'    => __('Custom CSS', 'lsx-customizer'),
147 147
 						'section'  => 'login-general',
148 148
 						'settings' => 'lsx_login_custom_css',
149 149
 						'type'     => 'textarea',
@@ -158,14 +158,14 @@  discard block
 block discarded – undo
158 158
 		 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
159 159
 		 * @since 1.0.0
160 160
 		 */
161
-		public function register_form( $wp_customize ) {
161
+		public function register_form($wp_customize) {
162 162
 			/**
163 163
 			 * Reigster the Form section
164 164
 			 */
165 165
 			$wp_customize->add_section(
166 166
 				'login-form',
167 167
 				array(
168
-					'title'    => esc_html__( 'Form', 'lsx-customizer' ),
168
+					'title'    => esc_html__('Form', 'lsx-customizer'),
169 169
 					'priority' => 1,
170 170
 					'panel'    => 'login',
171 171
 				)
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 					$wp_customize,
188 188
 					'lsx_login_form_colour',
189 189
 					array(
190
-						'label'    => __( 'Form Background Colour', 'lsx-customizer' ),
190
+						'label'    => __('Form Background Colour', 'lsx-customizer'),
191 191
 						'section'  => 'login-form',
192 192
 						'settings' => 'lsx_login_form_colour',
193 193
 					)
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 					$wp_customize,
211 211
 					'lsx_login_form_label_colour',
212 212
 					array(
213
-						'label'    => __( 'Form Label Colour', 'lsx-customizer' ),
213
+						'label'    => __('Form Label Colour', 'lsx-customizer'),
214 214
 						'section'  => 'login-form',
215 215
 						'settings' => 'lsx_login_form_label_colour',
216 216
 					)
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 					$wp_customize,
234 234
 					'lsx_login_button_colour',
235 235
 					array(
236
-						'label'    => __( 'Button Colour', 'lsx-customizer' ),
236
+						'label'    => __('Button Colour', 'lsx-customizer'),
237 237
 						'section'  => 'login-form',
238 238
 						'settings' => 'lsx_login_button_colour',
239 239
 					)
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 					$wp_customize,
257 257
 					'lsx_login_button_shadow_colour',
258 258
 					array(
259
-						'label'    => __( 'Button Shadow Colour', 'lsx-customizer' ),
259
+						'label'    => __('Button Shadow Colour', 'lsx-customizer'),
260 260
 						'section'  => 'login-form',
261 261
 						'settings' => 'lsx_login_button_shadow_colour',
262 262
 					)
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 					$wp_customize,
280 280
 					'lsx_login_button_hover_colour',
281 281
 					array(
282
-						'label'    => __( 'Button Hover Colour', 'lsx-customizer' ),
282
+						'label'    => __('Button Hover Colour', 'lsx-customizer'),
283 283
 						'section'  => 'login-form',
284 284
 						'settings' => 'lsx_login_button_hover_colour',
285 285
 					)
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 					$wp_customize,
303 303
 					'lsx_login_button_text_colour',
304 304
 					array(
305
-						'label'    => __( 'Button Text Colour', 'lsx-customizer' ),
305
+						'label'    => __('Button Text Colour', 'lsx-customizer'),
306 306
 						'section'  => 'login-form',
307 307
 						'settings' => 'lsx_login_button_text_colour',
308 308
 					)
@@ -317,11 +317,11 @@  discard block
 block discarded – undo
317 317
 		 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
318 318
 		 * @since 1.0.0
319 319
 		 */
320
-		public function register_background( $wp_customize ) {
320
+		public function register_background($wp_customize) {
321 321
 			$wp_customize->add_section(
322 322
 				'login-background',
323 323
 				array(
324
-					'title'    => esc_html__( 'Background', 'lsx-customizer' ),
324
+					'title'    => esc_html__('Background', 'lsx-customizer'),
325 325
 					'priority' => 1,
326 326
 					'panel'    => 'login',
327 327
 				)
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 					$wp_customize,
343 343
 					'lsx_login_bg_colour',
344 344
 					array(
345
-						'label'    => __( 'Background Colour', 'lsx-customizer' ),
345
+						'label'    => __('Background Colour', 'lsx-customizer'),
346 346
 						'section'  => 'login-background',
347 347
 						'settings' => 'lsx_login_bg_colour',
348 348
 					)
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 					$wp_customize,
367 367
 					'lsx_login_bg_image',
368 368
 					array(
369
-						'label'    => __( 'Background Image', 'lsx-customizer' ),
369
+						'label'    => __('Background Image', 'lsx-customizer'),
370 370
 						'section'  => 'login-background',
371 371
 						'settings' => 'lsx_login_bg_image',
372 372
 					)
@@ -389,15 +389,15 @@  discard block
 block discarded – undo
389 389
 					$wp_customize,
390 390
 					'lsx_login_bg_repeat',
391 391
 					array(
392
-						'label'    => __( 'Background Repeat', 'lsx-customizer' ),
392
+						'label'    => __('Background Repeat', 'lsx-customizer'),
393 393
 						'section'  => 'login-background',
394 394
 						'settings' => 'lsx_login_bg_repeat',
395 395
 						'type'     => 'select',
396 396
 						'choices'  => array(
397
-							'no-repeat'  => __( 'No Repeat', 'lsx-customizer' ),
398
-							'repeat'  => __( 'Repeat', 'lsx-customizer' ),
399
-							'repeat-x' => __( 'Repeat Horizontally', 'lsx-customizer' ),
400
-							'repeat-y' => __( 'Repeat Vertically', 'lsx-customizer' ),
397
+							'no-repeat'  => __('No Repeat', 'lsx-customizer'),
398
+							'repeat'  => __('Repeat', 'lsx-customizer'),
399
+							'repeat-x' => __('Repeat Horizontally', 'lsx-customizer'),
400
+							'repeat-y' => __('Repeat Vertically', 'lsx-customizer'),
401 401
 						),
402 402
 					)
403 403
 				)
@@ -419,14 +419,14 @@  discard block
 block discarded – undo
419 419
 					$wp_customize,
420 420
 					'lsx_login_bg_size',
421 421
 					array(
422
-						'label'    => __( 'Background Size', 'lsx-customizer' ),
422
+						'label'    => __('Background Size', 'lsx-customizer'),
423 423
 						'section'  => 'login-background',
424 424
 						'settings' => 'lsx_login_bg_size',
425 425
 						'type'     => 'select',
426 426
 						'choices'  => array(
427
-							'initial'  => __( 'None', 'lsx-customizer' ),
428
-							'cover'  => __( 'Cover', 'lsx-customizer' ),
429
-							'contain' => __( 'Contain', 'lsx-customizer' ),
427
+							'initial'  => __('None', 'lsx-customizer'),
428
+							'cover'  => __('Cover', 'lsx-customizer'),
429
+							'contain' => __('Contain', 'lsx-customizer'),
430 430
 						),
431 431
 					)
432 432
 				)
@@ -440,9 +440,9 @@  discard block
 block discarded – undo
440 440
 		 */
441 441
 		public function set_theme_mod() {
442 442
 			$theme_mods = $this->get_theme_mods();
443
-			$styles     = $this->get_css( $theme_mods );
443
+			$styles     = $this->get_css($theme_mods);
444 444
 
445
-			set_theme_mod( 'lsx_customizer_login_styles', $styles );
445
+			set_theme_mod('lsx_customizer_login_styles', $styles);
446 446
 		}
447 447
 
448 448
 		/**
@@ -451,13 +451,13 @@  discard block
 block discarded – undo
451 451
 		 * @since 1.0.0
452 452
 		 */
453 453
 		public function enqueue_css() {
454
-			$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_login_styles' );
455
-			if ( is_customize_preview() || false === $styles_from_theme_mod ) {
454
+			$styles_from_theme_mod = get_theme_mod('lsx_customizer_login_styles');
455
+			if (is_customize_preview() || false === $styles_from_theme_mod) {
456 456
 				$theme_mods = $this->get_theme_mods();
457
-				$styles     = $this->get_css( $theme_mods );
457
+				$styles     = $this->get_css($theme_mods);
458 458
 
459
-				if ( false === $styles_from_theme_mod ) {
460
-					set_theme_mod( 'lsx_customizer_login_styles', $styles );
459
+				if (false === $styles_from_theme_mod) {
460
+					set_theme_mod('lsx_customizer_login_styles', $styles);
461 461
 				}
462 462
 			} else {
463 463
 				$styles = $styles_from_theme_mod;
@@ -479,20 +479,20 @@  discard block
 block discarded – undo
479 479
 			$mods = apply_filters(
480 480
 				'lsx_customizer_login_styles',
481 481
 				array(
482
-					'logo'                    => get_theme_mod( 'lsx_login_logo', '' ),
483
-					'link_colour'             => get_theme_mod( 'lsx_login_link_colour', '#0085ba' ),
484
-					'link_hover_colour'       => get_theme_mod( 'lsx_login_link_hover_colour', '#0085ba' ),
485
-					'button_colour'           => get_theme_mod( 'lsx_login_button_colour', '#0085ba' ),
486
-					'button_shadow_colour'    => get_theme_mod( 'lsx_login_button_shadow_colour', '#015d82' ),
487
-					'button_hover_colour'     => get_theme_mod( 'lsx_login_button_hover_colour', '#015d82' ),
488
-					'button_text_colour'      => get_theme_mod( 'lsx_login_button_text_colour', '#ffffff' ),
489
-					'login_form_colour'       => get_theme_mod( 'lsx_login_form_colour', '#ffffff' ),
490
-					'login_form_label_colour' => get_theme_mod( 'lsx_login_form_label_colour', '#333333' ),
491
-					'background_colour'       => get_theme_mod( 'lsx_login_bg_colour', '#f2f2f2' ),
492
-					'background_image'        => get_theme_mod( 'lsx_login_bg_image', '' ),
493
-					'background_repeat'       => get_theme_mod( 'lsx_login_bg_repeat', 'no-repeat' ),
494
-					'background_size'         => get_theme_mod( 'lsx_login_bg_size', 'initial' ),
495
-					'custom_css'              => get_theme_mod( 'lsx_login_custom_css', '' ),
482
+					'logo'                    => get_theme_mod('lsx_login_logo', ''),
483
+					'link_colour'             => get_theme_mod('lsx_login_link_colour', '#0085ba'),
484
+					'link_hover_colour'       => get_theme_mod('lsx_login_link_hover_colour', '#0085ba'),
485
+					'button_colour'           => get_theme_mod('lsx_login_button_colour', '#0085ba'),
486
+					'button_shadow_colour'    => get_theme_mod('lsx_login_button_shadow_colour', '#015d82'),
487
+					'button_hover_colour'     => get_theme_mod('lsx_login_button_hover_colour', '#015d82'),
488
+					'button_text_colour'      => get_theme_mod('lsx_login_button_text_colour', '#ffffff'),
489
+					'login_form_colour'       => get_theme_mod('lsx_login_form_colour', '#ffffff'),
490
+					'login_form_label_colour' => get_theme_mod('lsx_login_form_label_colour', '#333333'),
491
+					'background_colour'       => get_theme_mod('lsx_login_bg_colour', '#f2f2f2'),
492
+					'background_image'        => get_theme_mod('lsx_login_bg_image', ''),
493
+					'background_repeat'       => get_theme_mod('lsx_login_bg_repeat', 'no-repeat'),
494
+					'background_size'         => get_theme_mod('lsx_login_bg_size', 'initial'),
495
+					'custom_css'              => get_theme_mod('lsx_login_custom_css', ''),
496 496
 				)
497 497
 			);
498 498
 			return $mods;
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 		 *
504 504
 		 * @since 1.0.0
505 505
 		 */
506
-		public function get_css( $theme_mods ) {
506
+		public function get_css($theme_mods) {
507 507
 			$css = '<style>';
508 508
 
509 509
 			$css .= "body.login #backtoblog a, body.login #nav a { color: {$theme_mods['link_colour']}; }";
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
 			$css .= "body.login form { background: {$theme_mods['login_form_colour']}; }";
520 520
 			$css .= "body.login label { color: {$theme_mods['login_form_label_colour']}; }";
521 521
 
522
-			if ( isset( $theme_mods['logo'] ) && '' !== $theme_mods['logo'] ) {
522
+			if (isset($theme_mods['logo']) && '' !== $theme_mods['logo']) {
523 523
 				$css .= "
524 524
 					#login h1 a, .login h1 a {
525 525
 						background-image: url('" . $theme_mods['logo'] . "');
@@ -533,15 +533,15 @@  discard block
 block discarded – undo
533 533
 
534 534
 			// Add in the background image options.
535 535
 			$background_image = '';
536
-			if ( isset( $theme_mods['background_image'] ) && '' !== $theme_mods['background_image'] ) {
536
+			if (isset($theme_mods['background_image']) && '' !== $theme_mods['background_image']) {
537 537
 				$background_image = "background-image:url('{$theme_mods['background_image']}');";
538 538
 			}
539 539
 			$background_repeat = '';
540
-			if ( isset( $theme_mods['background_repeat'] ) && '' !== $theme_mods['background_repeat'] ) {
540
+			if (isset($theme_mods['background_repeat']) && '' !== $theme_mods['background_repeat']) {
541 541
 				$background_repeat = "background-repeat:{$theme_mods['background_repeat']};";
542 542
 			}
543 543
 			$background_size = '';
544
-			if ( isset( $theme_mods['background_size'] ) && '' !== $theme_mods['background_size'] ) {
544
+			if (isset($theme_mods['background_size']) && '' !== $theme_mods['background_size']) {
545 545
 				$background_size = "background-size:{$theme_mods['background_size']};";
546 546
 			}
547 547
 			$css .= "
@@ -556,12 +556,12 @@  discard block
 block discarded – undo
556 556
 				}";
557 557
 
558 558
 			// Add in the custom css
559
-			if ( isset( $theme_mods['custom_css'] ) && '' !== $theme_mods['custom_css'] ) {
559
+			if (isset($theme_mods['custom_css']) && '' !== $theme_mods['custom_css']) {
560 560
 				$css .= $theme_mods['custom_css'];
561 561
 			}
562 562
 
563 563
 			$css .= '</style>';
564
-			$css  = apply_filters( 'lsx_customizer_login_styles', $css );
564
+			$css  = apply_filters('lsx_customizer_login_styles', $css);
565 565
 			return $css;
566 566
 		}
567 567
 	}
Please login to merge, or discard this patch.
classes/class-lsx-customizer-colour.php 1 patch
Spacing   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! class_exists( 'LSX_Customizer_Colour' ) ) {
2
+if ( ! class_exists('LSX_Customizer_Colour')) {
3 3
 
4 4
 	/**
5 5
 	 * LSX Customizer Colour Class
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
 		 * @since 1.0.0
115 115
 		 */
116 116
 		public function __construct() {
117
-			add_action( 'after_setup_theme',                       array( $this, 'after_setup_theme' ), 20 );
118
-			add_action( 'customize_register',                      array( $this, 'customize_register' ), 20 );
119
-			add_action( 'customize_controls_print_footer_scripts', array( $this, 'colour_scheme_css_template' ) );
117
+			add_action('after_setup_theme', array($this, 'after_setup_theme'), 20);
118
+			add_action('customize_register', array($this, 'customize_register'), 20);
119
+			add_action('customize_controls_print_footer_scripts', array($this, 'colour_scheme_css_template'));
120 120
 		}
121 121
 
122 122
 		/**
@@ -126,44 +126,44 @@  discard block
 block discarded – undo
126 126
 		 * @since 1.0.0
127 127
 		 */
128 128
 		public function after_setup_theme() {
129
-			require_once( LSX_CUSTOMIZER_PATH . 'includes/lsx-customizer-colour-options.php' );
130
-			require_once( LSX_CUSTOMIZER_PATH . 'includes/lsx-customizer-colour-deprecated.php' );
131
-			require_once( LSX_CUSTOMIZER_PATH . 'includes/lsx-customizer-templates.php' );
129
+			require_once(LSX_CUSTOMIZER_PATH . 'includes/lsx-customizer-colour-options.php');
130
+			require_once(LSX_CUSTOMIZER_PATH . 'includes/lsx-customizer-colour-deprecated.php');
131
+			require_once(LSX_CUSTOMIZER_PATH . 'includes/lsx-customizer-templates.php');
132 132
 
133
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button.php' );
133
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button.php');
134 134
 			$this->button = new LSX_Customizer_Colour_Button();
135 135
 
136
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button-cta.php' );
136
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button-cta.php');
137 137
 			$this->button_cta = new LSX_Customizer_Colour_Button_CTA();
138 138
 
139
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button-secondary.php' );
139
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button-secondary.php');
140 140
 			$this->button_secondary = new LSX_Customizer_Colour_Button_Secondary();
141 141
 
142
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button-tertiary.php' );
142
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-button-tertiary.php');
143 143
 			$this->button_tertiary = new LSX_Customizer_Colour_Button_Tertiary();
144 144
 
145
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-top-menu.php' );
145
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-top-menu.php');
146 146
 			$this->top_menu = new LSX_Customizer_Colour_Top_Menu();
147 147
 
148
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-header.php' );
148
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-header.php');
149 149
 			$this->header = new LSX_Customizer_Colour_Header();
150 150
 
151
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-main-menu.php' );
151
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-main-menu.php');
152 152
 			$this->main_menu = new LSX_Customizer_Colour_Main_Menu();
153 153
 
154
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-banner.php' );
154
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-banner.php');
155 155
 			$this->banner = new LSX_Customizer_Colour_Banner();
156 156
 
157
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-body.php' );
157
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-body.php');
158 158
 			$this->body = new LSX_Customizer_Colour_Body();
159 159
 
160
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-footer-cta.php' );
160
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-footer-cta.php');
161 161
 			$this->footer_cta = new LSX_Customizer_Colour_Footer_CTA();
162 162
 
163
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-footer-widgets.php' );
163
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-footer-widgets.php');
164 164
 			$this->footer_widgets = new LSX_Customizer_Colour_Footer_Widgets();
165 165
 
166
-			require_once( LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-footer.php' );
166
+			require_once(LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer-colour-footer.php');
167 167
 			$this->footer = new LSX_Customizer_Colour_Footer();
168 168
 		}
169 169
 
@@ -173,96 +173,96 @@  discard block
 block discarded – undo
173 173
 		 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
174 174
 		 * @since 1.0.0
175 175
 		 */
176
-		public function customize_register( $wp_customize ) {
176
+		public function customize_register($wp_customize) {
177 177
 			global $customizer_colour_names;
178 178
 			global $customizer_colour_choices;
179 179
 
180 180
 			/**
181 181
 			 * Colors
182 182
 			 */
183
-			$wp_customize->add_panel( 'colors', array(
184
-				'title'             => esc_html__( 'Site Design', 'lsx-customizer' ),
183
+			$wp_customize->add_panel('colors', array(
184
+				'title'             => esc_html__('Site Design', 'lsx-customizer'),
185 185
 				'priority'          => 60,
186
-			) );
186
+			));
187 187
 
188
-			$wp_customize->add_section( 'colors-palette', array(
189
-				'title'             => esc_html__( 'Block Editor', 'lsx-customizer' ),
190
-				'description' => esc_html__( 'Define the block editor colour pallette.', 'lsx-customizer' ),
188
+			$wp_customize->add_section('colors-palette', array(
189
+				'title'             => esc_html__('Block Editor', 'lsx-customizer'),
190
+				'description' => esc_html__('Define the block editor colour pallette.', 'lsx-customizer'),
191 191
 				'priority'          => 2,
192 192
 				'panel'             => 'colors',
193
-			) );
193
+			));
194 194
 
195
-			$wp_customize->add_section( 'colors-button', array(
196
-				'title'             => esc_html__( 'Button', 'lsx-customizer' ),
195
+			$wp_customize->add_section('colors-button', array(
196
+				'title'             => esc_html__('Button', 'lsx-customizer'),
197 197
 				'priority'          => 3,
198 198
 				'panel'             => 'colors',
199
-			) );
199
+			));
200 200
 
201
-			$wp_customize->add_section( 'colors-button-cta', array(
202
-				'title'             => esc_html__( 'Button CTA', 'lsx-customizer' ),
201
+			$wp_customize->add_section('colors-button-cta', array(
202
+				'title'             => esc_html__('Button CTA', 'lsx-customizer'),
203 203
 				'priority'          => 4,
204 204
 				'panel'             => 'colors',
205
-			) );
205
+			));
206 206
 
207
-			$wp_customize->add_section( 'colors-button-secondary', array(
208
-				'title'             => esc_html__( 'Button Secondary', 'lsx-customizer' ),
207
+			$wp_customize->add_section('colors-button-secondary', array(
208
+				'title'             => esc_html__('Button Secondary', 'lsx-customizer'),
209 209
 				'priority'          => 5,
210 210
 				'panel'             => 'colors',
211
-			) );
211
+			));
212 212
 
213
-			$wp_customize->add_section( 'colors-button-tertiary', array(
214
-				'title'             => esc_html__( 'Button Tertiary', 'lsx-customizer' ),
213
+			$wp_customize->add_section('colors-button-tertiary', array(
214
+				'title'             => esc_html__('Button Tertiary', 'lsx-customizer'),
215 215
 				'priority'          => 6,
216 216
 				'panel'             => 'colors',
217
-			) );
217
+			));
218 218
 
219
-			$wp_customize->add_section( 'colors-top-menu', array(
220
-				'title'             => esc_html__( 'Top Menu', 'lsx-customizer' ),
219
+			$wp_customize->add_section('colors-top-menu', array(
220
+				'title'             => esc_html__('Top Menu', 'lsx-customizer'),
221 221
 				'priority'          => 7,
222 222
 				'panel'             => 'colors',
223
-			) );
223
+			));
224 224
 
225
-			$wp_customize->add_section( 'colors-header', array(
226
-				'title'             => esc_html__( 'Header', 'lsx-customizer' ),
225
+			$wp_customize->add_section('colors-header', array(
226
+				'title'             => esc_html__('Header', 'lsx-customizer'),
227 227
 				'priority'          => 8,
228 228
 				'panel'             => 'colors',
229
-			) );
229
+			));
230 230
 
231
-			$wp_customize->add_section( 'colors-main-menu', array(
232
-				'title'             => esc_html__( 'Main Menu', 'lsx-customizer' ),
231
+			$wp_customize->add_section('colors-main-menu', array(
232
+				'title'             => esc_html__('Main Menu', 'lsx-customizer'),
233 233
 				'priority'          => 9,
234 234
 				'panel'             => 'colors',
235
-			) );
235
+			));
236 236
 
237
-			$wp_customize->add_section( 'colors-banner', array(
238
-				'title'             => esc_html__( 'Banner', 'lsx-customizer' ),
237
+			$wp_customize->add_section('colors-banner', array(
238
+				'title'             => esc_html__('Banner', 'lsx-customizer'),
239 239
 				'priority'          => 10,
240 240
 				'panel'             => 'colors',
241
-			) );
241
+			));
242 242
 
243
-			$wp_customize->add_section( 'colors-body', array(
244
-				'title'             => esc_html__( 'Body', 'lsx-customizer' ),
243
+			$wp_customize->add_section('colors-body', array(
244
+				'title'             => esc_html__('Body', 'lsx-customizer'),
245 245
 				'priority'          => 11,
246 246
 				'panel'             => 'colors',
247
-			) );
247
+			));
248 248
 
249
-			$wp_customize->add_section( 'colors-footer-cta', array(
250
-				'title'             => esc_html__( 'Footer CTA', 'lsx-customizer' ),
249
+			$wp_customize->add_section('colors-footer-cta', array(
250
+				'title'             => esc_html__('Footer CTA', 'lsx-customizer'),
251 251
 				'priority'          => 12,
252 252
 				'panel'             => 'colors',
253
-			) );
253
+			));
254 254
 
255
-			$wp_customize->add_section( 'colors-footer-widgets', array(
256
-				'title'             => esc_html__( 'Footer Widgets', 'lsx-customizer' ),
255
+			$wp_customize->add_section('colors-footer-widgets', array(
256
+				'title'             => esc_html__('Footer Widgets', 'lsx-customizer'),
257 257
 				'priority'          => 13,
258 258
 				'panel'             => 'colors',
259
-			) );
259
+			));
260 260
 
261
-			$wp_customize->add_section( 'colors-footer', array(
262
-				'title'             => esc_html__( 'Footer', 'lsx-customizer' ),
261
+			$wp_customize->add_section('colors-footer', array(
262
+				'title'             => esc_html__('Footer', 'lsx-customizer'),
263 263
 				'priority'          => 14,
264 264
 				'panel'             => 'colors',
265
-			) );
265
+			));
266 266
 
267 267
 			/**
268 268
 			 * Colour Palette
@@ -270,26 +270,26 @@  discard block
 block discarded – undo
270 270
 			$colors = $this->get_color_scheme();
271 271
 
272 272
 			$customizer_colour_defaults = array(
273
-				__( 'Primary Colour', 'lsx-customizer' )   => get_theme_mod( 'button_background_color', $colors['button_background_color'] ),
274
-				__( 'Strong Primary Colour', 'lsx-button_shadow' ) => get_theme_mod( 'button_background_hover_color', $colors['button_background_hover_color'] ),
275
-				__( 'Call To Action Colour', 'lsx-customizer' ) => get_theme_mod( 'button_cta_background_color', $colors['button_cta_background_color'] ),
276
-				__( 'Strong CTA Colour', 'lsx-button_shadow' ) => get_theme_mod( 'button_cta_shadow', $colors['button_cta_shadow'] ),
277
-				__( 'Secondary Colour', 'lsx-customizer' ) => get_theme_mod( 'button_secondary_background_color', $colors['button_secondary_background_color'] ),
278
-				__( 'Strong Secondary Colour', 'lsx-button_shadow' ) => get_theme_mod( 'button_secondary_shadow', $colors['button_secondary_shadow'] ),
279
-				__( 'Tertiary Colour', 'lsx-customizer' )  => get_theme_mod( 'button_tertiary_background_color', $colors['button_tertiary_background_color'] ),
280
-				__( 'Strong Tertiary Colour', 'lsx-button_shadow' ) => get_theme_mod( 'button_tertiary_shadow', $colors['button_tertiary_shadow'] ),
273
+				__('Primary Colour', 'lsx-customizer')   => get_theme_mod('button_background_color', $colors['button_background_color']),
274
+				__('Strong Primary Colour', 'lsx-button_shadow') => get_theme_mod('button_background_hover_color', $colors['button_background_hover_color']),
275
+				__('Call To Action Colour', 'lsx-customizer') => get_theme_mod('button_cta_background_color', $colors['button_cta_background_color']),
276
+				__('Strong CTA Colour', 'lsx-button_shadow') => get_theme_mod('button_cta_shadow', $colors['button_cta_shadow']),
277
+				__('Secondary Colour', 'lsx-customizer') => get_theme_mod('button_secondary_background_color', $colors['button_secondary_background_color']),
278
+				__('Strong Secondary Colour', 'lsx-button_shadow') => get_theme_mod('button_secondary_shadow', $colors['button_secondary_shadow']),
279
+				__('Tertiary Colour', 'lsx-customizer')  => get_theme_mod('button_tertiary_background_color', $colors['button_tertiary_background_color']),
280
+				__('Strong Tertiary Colour', 'lsx-button_shadow') => get_theme_mod('button_tertiary_shadow', $colors['button_tertiary_shadow']),
281 281
 			);
282
-			foreach ( $customizer_colour_defaults as $key => $value ) {
282
+			foreach ($customizer_colour_defaults as $key => $value) {
283 283
 
284
-				$color_name = strtolower( str_replace( ' ', '_', $key ) );
284
+				$color_name = strtolower(str_replace(' ', '_', $key));
285 285
 				$color_name = $color_name;
286 286
 
287
-				$wp_customize->add_setting( $color_name, array(
287
+				$wp_customize->add_setting($color_name, array(
288 288
 					'default'           => $value,
289 289
 					'type'              => 'theme_mod',
290 290
 					'transport'         => 'postMessage',
291 291
 					'sanitize_callback' => 'sanitize_hex_color',
292
-				) );
292
+				));
293 293
 				$wp_customize->add_control(
294 294
 					new WP_Customize_Color_Control(
295 295
 						$wp_customize,
@@ -306,53 +306,53 @@  discard block
 block discarded – undo
306 306
 			/**
307 307
 			 * Colors
308 308
 			 */
309
-			foreach ( $customizer_colour_names as $key => $value ) {
309
+			foreach ($customizer_colour_names as $key => $value) {
310 310
 				$sanitize_callback = 'sanitize_hex_color';
311 311
 
312
-				if ( 'background_color' === $key ) {
312
+				if ('background_color' === $key) {
313 313
 					$sanitize_callback = 'sanitize_hex_color_no_hash';
314 314
 				}
315 315
 
316 316
 				$section = 'colors-core';
317 317
 
318
-				if ( preg_match( '/^button_cta_.*/', $key ) ) {
318
+				if (preg_match('/^button_cta_.*/', $key)) {
319 319
 					$section = 'colors-button-cta';
320
-				} elseif ( preg_match( '/^button_secondary_.*/', $key ) ) {
320
+				} elseif (preg_match('/^button_secondary_.*/', $key)) {
321 321
 					$section = 'colors-button-secondary';
322
-				} elseif ( preg_match( '/^button_tertiary_.*/', $key ) ) {
322
+				} elseif (preg_match('/^button_tertiary_.*/', $key)) {
323 323
 					$section = 'colors-button-tertiary';
324
-				} elseif ( preg_match( '/^button_.*/', $key ) ) {
324
+				} elseif (preg_match('/^button_.*/', $key)) {
325 325
 					$section = 'colors-button';
326
-				} elseif ( preg_match( '/^top_menu_.*/', $key ) ) {
326
+				} elseif (preg_match('/^top_menu_.*/', $key)) {
327 327
 					$section = 'colors-top-menu';
328
-				} elseif ( preg_match( '/^header_.*/', $key ) ) {
328
+				} elseif (preg_match('/^header_.*/', $key)) {
329 329
 					$section = 'colors-header';
330
-				} elseif ( preg_match( '/^main_menu_.*/', $key ) ) {
330
+				} elseif (preg_match('/^main_menu_.*/', $key)) {
331 331
 					$section = 'colors-main-menu';
332
-				} elseif ( preg_match( '/^banner_.*/', $key ) ) {
332
+				} elseif (preg_match('/^banner_.*/', $key)) {
333 333
 					$section = 'colors-banner';
334
-				} elseif ( preg_match( '/^body_.*/', $key ) || 'background_color' === $key ) {
334
+				} elseif (preg_match('/^body_.*/', $key) || 'background_color' === $key) {
335 335
 					$section = 'colors-body';
336
-				} elseif ( preg_match( '/^footer_cta_.*/', $key ) ) {
336
+				} elseif (preg_match('/^footer_cta_.*/', $key)) {
337 337
 					$section = 'colors-footer-cta';
338
-				} elseif ( preg_match( '/^footer_widgets_.*/', $key ) ) {
338
+				} elseif (preg_match('/^footer_widgets_.*/', $key)) {
339 339
 					$section = 'colors-footer-widgets';
340
-				} elseif ( preg_match( '/^footer_.*/', $key ) ) {
340
+				} elseif (preg_match('/^footer_.*/', $key)) {
341 341
 					$section = 'colors-footer';
342 342
 				}
343 343
 
344
-				$wp_customize->add_setting( $key, array(
345
-					'default'           => $customizer_colour_choices['default']['colors'][ $key ],
344
+				$wp_customize->add_setting($key, array(
345
+					'default'           => $customizer_colour_choices['default']['colors'][$key],
346 346
 					'type'              => 'theme_mod',
347 347
 					'transport'         => 'postMessage',
348 348
 					'sanitize_callback' => $sanitize_callback,
349
-				) );
349
+				));
350 350
 
351
-				$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $key, array(
351
+				$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, $key, array(
352 352
 					'label'             => $value,
353 353
 					'section'           => $section,
354 354
 					'settings'          => $key,
355
-				) ) );
355
+				)));
356 356
 			}
357 357
 		}
358 358
 
@@ -366,26 +366,26 @@  discard block
 block discarded – undo
366 366
 
367 367
 			$colors = array();
368 368
 
369
-			foreach ( $customizer_colour_names as $key => $value ) {
370
-				$colors[ $key ] = 'unquote("{{ data.' . $key . ' }}")';
369
+			foreach ($customizer_colour_names as $key => $value) {
370
+				$colors[$key] = 'unquote("{{ data.' . $key . ' }}")';
371 371
 			}
372 372
 			?>
373 373
 			<script type="text/html" id="tmpl-lsx-color-scheme">
374
-				<?php echo esc_attr( $this->top_menu->get_css( $colors ) ); ?>
375
-				<?php echo esc_attr( $this->header->get_css( $colors ) ); ?>
376
-				<?php echo esc_attr( $this->main_menu->get_css( $colors ) ); ?>
374
+				<?php echo esc_attr($this->top_menu->get_css($colors)); ?>
375
+				<?php echo esc_attr($this->header->get_css($colors)); ?>
376
+				<?php echo esc_attr($this->main_menu->get_css($colors)); ?>
377 377
 
378
-				<?php echo esc_attr( $this->banner->get_css( $colors ) ); ?>
379
-				<?php echo esc_attr( $this->body->get_css( $colors ) ); ?>
378
+				<?php echo esc_attr($this->banner->get_css($colors)); ?>
379
+				<?php echo esc_attr($this->body->get_css($colors)); ?>
380 380
 
381
-				<?php echo esc_attr( $this->footer_cta->get_css( $colors ) ); ?>
382
-				<?php echo esc_attr( $this->footer_widgets->get_css( $colors ) ); ?>
383
-				<?php echo esc_attr( $this->footer->get_css( $colors ) ); ?>
381
+				<?php echo esc_attr($this->footer_cta->get_css($colors)); ?>
382
+				<?php echo esc_attr($this->footer_widgets->get_css($colors)); ?>
383
+				<?php echo esc_attr($this->footer->get_css($colors)); ?>
384 384
 
385
-				<?php echo esc_attr( $this->button->get_css( $colors ) ); ?>
386
-				<?php echo esc_attr( $this->button_cta->get_css( $colors ) ); ?>
387
-				<?php echo esc_attr( $this->button_secondary->get_css( $colors ) ); ?>
388
-				<?php echo esc_attr( $this->button_tertiary->get_css( $colors ) ); ?>
385
+				<?php echo esc_attr($this->button->get_css($colors)); ?>
386
+				<?php echo esc_attr($this->button_cta->get_css($colors)); ?>
387
+				<?php echo esc_attr($this->button_secondary->get_css($colors)); ?>
388
+				<?php echo esc_attr($this->button_tertiary->get_css($colors)); ?>
389 389
 			</script>
390 390
 			<?php
391 391
 		}
@@ -395,16 +395,16 @@  discard block
 block discarded – undo
395 395
 		 *
396 396
 		 * @since 1.0.0
397 397
 		 */
398
-		public function scss_to_css( $scss ) {
398
+		public function scss_to_css($scss) {
399 399
 			$css                 = '';
400 400
 			$scss_php_file       = LSX_CUSTOMIZER_PATH . 'vendor/leafo/scssphp/scss.inc.php';
401 401
 			$lsx_theme_sass_file = get_template_directory() . '/assets/css/scss/lsx.scss';
402 402
 
403
-			if ( ! empty( $scss ) && file_exists( $scss_php_file ) && file_exists( $lsx_theme_sass_file ) ) {
403
+			if ( ! empty($scss) && file_exists($scss_php_file) && file_exists($lsx_theme_sass_file)) {
404 404
 				require_once $scss_php_file;
405 405
 
406 406
 				$compiler = new \Leafo\ScssPhp\Compiler();
407
-				$compiler->setFormatter( 'Leafo\ScssPhp\Formatter\Compact' );
407
+				$compiler->setFormatter('Leafo\ScssPhp\Formatter\Compact');
408 408
 
409 409
 				try {
410 410
 					$scss = '
@@ -414,8 +414,8 @@  discard block
 block discarded – undo
414 414
 						' . $scss . '
415 415
 					';
416 416
 
417
-					$css = $compiler->compile( $scss );
418
-				} catch ( \Exception $e ) {
417
+					$css = $compiler->compile($scss);
418
+				} catch (\Exception $e) {
419 419
 					$error = $e->getMessage();
420 420
 					return "/*\n\n\$error:\n\n{$error}\n\n\$scss:\n\n{$scss} */";
421 421
 				}
@@ -429,17 +429,17 @@  discard block
 block discarded – undo
429 429
 		 *
430 430
 		 * @since 1.0.0
431 431
 		 */
432
-		public static function hex2rgb( $color ) {
433
-			$color = trim( $color, '#' );
434
-
435
-			if ( strlen( $color ) === 3 ) {
436
-				$r = hexdec( substr( $color, 0, 1 ) . substr( $color, 0, 1 ) );
437
-				$g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) );
438
-				$b = hexdec( substr( $color, 2, 1 ) . substr( $color, 2, 1 ) );
439
-			} elseif ( strlen( $color ) === 6 ) {
440
-				$r = hexdec( substr( $color, 0, 2 ) );
441
-				$g = hexdec( substr( $color, 2, 2 ) );
442
-				$b = hexdec( substr( $color, 4, 2 ) );
432
+		public static function hex2rgb($color) {
433
+			$color = trim($color, '#');
434
+
435
+			if (strlen($color) === 3) {
436
+				$r = hexdec(substr($color, 0, 1) . substr($color, 0, 1));
437
+				$g = hexdec(substr($color, 1, 1) . substr($color, 1, 1));
438
+				$b = hexdec(substr($color, 2, 1) . substr($color, 2, 1));
439
+			} elseif (strlen($color) === 6) {
440
+				$r = hexdec(substr($color, 0, 2));
441
+				$g = hexdec(substr($color, 2, 2));
442
+				$b = hexdec(substr($color, 4, 2));
443 443
 			} else {
444 444
 				return array();
445 445
 			}
Please login to merge, or discard this patch.
lsx-customizer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
  */
16 16
 
17 17
 // If this file is called directly, abort.
18
-if ( ! defined( 'WPINC' ) ) {
18
+if ( ! defined('WPINC')) {
19 19
 	die;
20 20
 }
21 21
 
22
-define( 'LSX_CUSTOMIZER_PATH', plugin_dir_path( __FILE__ ) );
23
-define( 'LSX_CUSTOMIZER_CORE', __FILE__ );
24
-define( 'LSX_CUSTOMIZER_URL', plugin_dir_url( __FILE__ ) );
25
-define( 'LSX_CUSTOMIZER_VER', '1.4.1' );
22
+define('LSX_CUSTOMIZER_PATH', plugin_dir_path(__FILE__));
23
+define('LSX_CUSTOMIZER_CORE', __FILE__);
24
+define('LSX_CUSTOMIZER_URL', plugin_dir_url(__FILE__));
25
+define('LSX_CUSTOMIZER_VER', '1.4.1');
26 26
 
27 27
 
28 28
 /* ======================= Below is the Plugin Class init ========================= */
Please login to merge, or discard this patch.