Passed
Push — master ( 49ecd4...a3ffed )
by Warwick
05:35 queued 39s
created
classes/class-lsx-customizer-frontend.php 2 patches
Indentation   +174 added lines, -174 removed lines patch added patch discarded remove patch
@@ -1,63 +1,63 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if ( ! class_exists( 'LSX_Customizer_Frontend' ) ) {
3 3
 
4
-	/**
5
-	 * LSX Customizer Frontend Class
6
-	 *
7
-	 * @package   LSX Customizer
8
-	 * @author    LightSpeed
9
-	 * @license   GPL3
10
-	 * @link
11
-	 * @copyright 2016 LightSpeed
12
-	 */
13
-	class LSX_Customizer_Frontend extends LSX_Customizer {
14
-
15
-		/**
16
-		 * Constructor.
17
-		 *
18
-		 * @since 1.0.0
19
-		 */
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 );
27
-		}
28
-
29
-		/**
30
-		 * Enques the assets.
31
-		 *
32
-		 * @since 1.0.0
33
-		 */
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 );
36
-
37
-			$params = apply_filters( 'lsx_customizer_js_params', array(
38
-				'ajax_url' => admin_url( 'admin-ajax.php' ),
39
-			));
40
-
41
-			wp_localize_script( 'lsx-customizer', 'lsx_customizer_params', $params );
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' );
45
-
46
-			$two_step_checkout = get_theme_mod( 'lsx_two_step_checkout', false );
47
-			if ( function_exists( 'is_checkout' ) && is_checkout() && ! empty( $two_step_checkout ) ) {
48
-
49
-				wp_enqueue_script( 'flexslider', LSX_CUSTOMIZER_URL . 'assets/js/jquery.flexslider.min.js', array( 'jquery' ), '2.5.0' );
50
-			}
51
-
52
-		}
53
-
54
-		/**
55
-		 * Enqueues front-end colour palette CSS.
56
-		 *
57
-		 * @since 1.0.0
58
-		 */
59
-		public function lsx_customizer_color_palette_css() {
60
-			$styles = '
4
+     /**
5
+      * LSX Customizer Frontend Class
6
+      *
7
+      * @package   LSX Customizer
8
+      * @author    LightSpeed
9
+      * @license   GPL3
10
+      * @link
11
+      * @copyright 2016 LightSpeed
12
+      */
13
+     class LSX_Customizer_Frontend extends LSX_Customizer {
14
+
15
+          /**
16
+           * Constructor.
17
+           *
18
+           * @since 1.0.0
19
+           */
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 );
27
+          }
28
+
29
+          /**
30
+           * Enques the assets.
31
+           *
32
+           * @since 1.0.0
33
+           */
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 );
36
+
37
+               $params = apply_filters( 'lsx_customizer_js_params', array(
38
+                    'ajax_url' => admin_url( 'admin-ajax.php' ),
39
+               ));
40
+
41
+               wp_localize_script( 'lsx-customizer', 'lsx_customizer_params', $params );
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' );
45
+
46
+               $two_step_checkout = get_theme_mod( 'lsx_two_step_checkout', false );
47
+               if ( function_exists( 'is_checkout' ) && is_checkout() && ! empty( $two_step_checkout ) ) {
48
+
49
+                    wp_enqueue_script( 'flexslider', LSX_CUSTOMIZER_URL . 'assets/js/jquery.flexslider.min.js', array( 'jquery' ), '2.5.0' );
50
+               }
51
+
52
+          }
53
+
54
+          /**
55
+           * Enqueues front-end colour palette CSS.
56
+           *
57
+           * @since 1.0.0
58
+           */
59
+          public function lsx_customizer_color_palette_css() {
60
+               $styles = '
61 61
 			.container #primary.content-area .has-primary-color-background-color {
62 62
 				background-color:' . get_theme_mod( 'primary_color', '#428bca' ) . ';
63 63
 			}
@@ -136,122 +136,122 @@  discard block
 block discarded – undo
136 136
 			}
137 137
 
138 138
 			';
139
-			wp_add_inline_style( 'lsx-customizer', $styles );
140
-		}
141
-
142
-		/**
143
-		 * Layout.
144
-		 *
145
-		 * @since 1.0.0
146
-		 */
147
-		public function layout() {
148
-			$theme_credit = get_theme_mod( 'lsx_theme_credit_status', true );
149
-
150
-			if ( false == $theme_credit ) {
151
-				add_filter( 'lsx_credit_link', '__return_false' );
152
-			}
153
-		}
154
-
155
-		/**
156
-		 * Create the distraction free checkout.
157
-		 *
158
-		 * @since 1.0.0
159
-		 * @return  void
160
-		 */
161
-		public function lsx_distraction_free_checkout() {
162
-
163
-			$distraction_free = get_theme_mod( 'lsx_distraction_free_checkout', false );
164
-
165
-			if ( function_exists( 'is_checkout' ) && is_checkout() && ! empty( $distraction_free ) ) {
166
-				remove_action( 'lsx_body_bottom', 'lsx_wc_footer_bar', 15 );
167
-
168
-			}
169
-		}
170
-
171
-		/**
172
-		 * Create the two step checkout.
173
-		 *
174
-		 * @since   1.0.0
175
-		 * @return  void
176
-		 */
177
-		public function lsx_customizer_two_step_checkout() {
178
-			$two_step_checkout = get_theme_mod( 'lsx_two_step_checkout', false );
179
-
180
-			if ( 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
-			}
191
-		}
192
-
193
-		/**
194
-		 * Editor color palette.
195
-		 *
196
-		 * @return void
197
-		 */
198
-		public function lsx_customizer_color_palette_setup() {
199
-			add_theme_support( 'editor-color-palette', array(
200
-				array(
201
-					'name'  => esc_html__( 'Primary Color', 'lsx-customizer' ),
202
-					'slug'  => 'primary-color',
203
-					'color' => get_theme_mod( 'primary_color', '#428bca' ),
204
-				),
205
-				array(
206
-					'name'  => esc_html__( 'Strong Primary Color', 'lsx-customizer' ),
207
-					'slug'  => 'strong-primary-color',
208
-					'color' => get_theme_mod( 'strong_primary_color', '#2a6496' ),
209
-				),
210
-				array(
211
-					'name'  => esc_html__( 'CTA Color', 'lsx-customizer' ),
212
-					'slug'  => 'cta-color',
213
-					'color' => get_theme_mod( 'call_to_action_color', '#f7941d' ),
214
-				),
215
-				array(
216
-					'name'  => esc_html__( 'Strong CTA Color', 'lsx-customizer' ),
217
-					'slug'  => 'strong-cta-color',
218
-					'color' => get_theme_mod( 'strong_cta_color', '#f7741d' ),
219
-				),
220
-				array(
221
-					'name'  => esc_html__( 'Secondary Color', 'lsx-customizer' ),
222
-					'slug'  => 'secondary-color',
223
-					'color' => get_theme_mod( 'secondary_color', '#eaeaea' ),
224
-				),
225
-				array(
226
-					'name'  => esc_html__( 'Strong Secondary Color', 'lsx-customizer' ),
227
-					'slug'  => 'strong-secondary-color',
228
-					'color' => get_theme_mod( 'strong_secondary_color', '#c4c4c4' ),
229
-				),
230
-				array(
231
-					'name'  => esc_html__( 'Tertiary Color', 'lsx-customizer' ),
232
-					'slug'  => 'tertiary-color',
233
-					'color' => get_theme_mod( 'tertiary_color', '#6BA913' ),
234
-				),
235
-				array(
236
-					'name'  => esc_html__( 'Strong Tertiary Color', 'lsx-customizer' ),
237
-					'slug'  => 'strong-tertiary-color',
238
-					'color' => get_theme_mod( 'strong_tertiary_color', '#3F640B' ),
239
-				),
240
-				array(
241
-					'name'  => esc_html__( 'White', 'lsx-customizer' ),
242
-					'slug'  => 'white',
243
-					'color' => '#ffffff',
244
-				),
245
-				array(
246
-					'name'  => esc_html__( 'Black', 'lsx-customizer' ),
247
-					'slug'  => 'black',
248
-					'color' => '#000000',
249
-				),
250
-			));
251
-		}
252
-
253
-	}
254
-
255
-	new LSX_Customizer_Frontend();
139
+               wp_add_inline_style( 'lsx-customizer', $styles );
140
+          }
141
+
142
+          /**
143
+           * Layout.
144
+           *
145
+           * @since 1.0.0
146
+           */
147
+          public function layout() {
148
+               $theme_credit = get_theme_mod( 'lsx_theme_credit_status', true );
149
+
150
+               if ( false == $theme_credit ) {
151
+                    add_filter( 'lsx_credit_link', '__return_false' );
152
+               }
153
+          }
154
+
155
+          /**
156
+           * Create the distraction free checkout.
157
+           *
158
+           * @since 1.0.0
159
+           * @return  void
160
+           */
161
+          public function lsx_distraction_free_checkout() {
162
+
163
+               $distraction_free = get_theme_mod( 'lsx_distraction_free_checkout', false );
164
+
165
+               if ( function_exists( 'is_checkout' ) && is_checkout() && ! empty( $distraction_free ) ) {
166
+                    remove_action( 'lsx_body_bottom', 'lsx_wc_footer_bar', 15 );
167
+
168
+               }
169
+          }
170
+
171
+          /**
172
+           * Create the two step checkout.
173
+           *
174
+           * @since   1.0.0
175
+           * @return  void
176
+           */
177
+          public function lsx_customizer_two_step_checkout() {
178
+               $two_step_checkout = get_theme_mod( 'lsx_two_step_checkout', false );
179
+
180
+               if ( 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
+               }
191
+          }
192
+
193
+          /**
194
+           * Editor color palette.
195
+           *
196
+           * @return void
197
+           */
198
+          public function lsx_customizer_color_palette_setup() {
199
+               add_theme_support( 'editor-color-palette', array(
200
+                    array(
201
+                         'name'  => esc_html__( 'Primary Color', 'lsx-customizer' ),
202
+                         'slug'  => 'primary-color',
203
+                         'color' => get_theme_mod( 'primary_color', '#428bca' ),
204
+                    ),
205
+                    array(
206
+                         'name'  => esc_html__( 'Strong Primary Color', 'lsx-customizer' ),
207
+                         'slug'  => 'strong-primary-color',
208
+                         'color' => get_theme_mod( 'strong_primary_color', '#2a6496' ),
209
+                    ),
210
+                    array(
211
+                         'name'  => esc_html__( 'CTA Color', 'lsx-customizer' ),
212
+                         'slug'  => 'cta-color',
213
+                         'color' => get_theme_mod( 'call_to_action_color', '#f7941d' ),
214
+                    ),
215
+                    array(
216
+                         'name'  => esc_html__( 'Strong CTA Color', 'lsx-customizer' ),
217
+                         'slug'  => 'strong-cta-color',
218
+                         'color' => get_theme_mod( 'strong_cta_color', '#f7741d' ),
219
+                    ),
220
+                    array(
221
+                         'name'  => esc_html__( 'Secondary Color', 'lsx-customizer' ),
222
+                         'slug'  => 'secondary-color',
223
+                         'color' => get_theme_mod( 'secondary_color', '#eaeaea' ),
224
+                    ),
225
+                    array(
226
+                         'name'  => esc_html__( 'Strong Secondary Color', 'lsx-customizer' ),
227
+                         'slug'  => 'strong-secondary-color',
228
+                         'color' => get_theme_mod( 'strong_secondary_color', '#c4c4c4' ),
229
+                    ),
230
+                    array(
231
+                         'name'  => esc_html__( 'Tertiary Color', 'lsx-customizer' ),
232
+                         'slug'  => 'tertiary-color',
233
+                         'color' => get_theme_mod( 'tertiary_color', '#6BA913' ),
234
+                    ),
235
+                    array(
236
+                         'name'  => esc_html__( 'Strong Tertiary Color', 'lsx-customizer' ),
237
+                         'slug'  => 'strong-tertiary-color',
238
+                         'color' => get_theme_mod( 'strong_tertiary_color', '#3F640B' ),
239
+                    ),
240
+                    array(
241
+                         'name'  => esc_html__( 'White', 'lsx-customizer' ),
242
+                         'slug'  => 'white',
243
+                         'color' => '#ffffff',
244
+                    ),
245
+                    array(
246
+                         'name'  => esc_html__( 'Black', 'lsx-customizer' ),
247
+                         'slug'  => 'black',
248
+                         'color' => '#000000',
249
+                    ),
250
+               ));
251
+          }
252
+
253
+     }
254
+
255
+     new LSX_Customizer_Frontend();
256 256
 
257 257
 }
Please login to merge, or discard this 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 ( function_exists( 'is_checkout' ) && is_checkout() && ! empty( $two_step_checkout ) ) {
46
+			$two_step_checkout = get_theme_mod('lsx_two_step_checkout', false);
47
+			if (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 ( function_exists( 'is_checkout' ) && is_checkout() && ! empty( $distraction_free ) ) {
166
-				remove_action( 'lsx_body_bottom', 'lsx_wc_footer_bar', 15 );
165
+			if (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 ( 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 (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 Color', 'lsx-customizer' ),
201
+					'name'  => esc_html__('Primary Color', '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 Color', 'lsx-customizer' ),
206
+					'name'  => esc_html__('Strong Primary Color', '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 Color', 'lsx-customizer' ),
211
+					'name'  => esc_html__('CTA Color', '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 Color', 'lsx-customizer' ),
216
+					'name'  => esc_html__('Strong CTA Color', '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 Color', 'lsx-customizer' ),
221
+					'name'  => esc_html__('Secondary Color', '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 Color', 'lsx-customizer' ),
226
+					'name'  => esc_html__('Strong Secondary Color', '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 Color', 'lsx-customizer' ),
231
+					'name'  => esc_html__('Tertiary Color', '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 Color', 'lsx-customizer' ),
236
+					'name'  => esc_html__('Strong Tertiary Color', '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.