Completed
Push — master ( 89dbde...4d3d4d )
by
unknown
04:36 queued 01:15
created
inc/example/customizer-colour-extended.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,77 +1,77 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 /**
5 5
  * Filter: lsx_customizer_colour_names
6 6
  *
7 7
  * Add two new colors (test) in main array of colors
8 8
  */
9
-function test_lsx_customizer_colour_names( $array ) {
10
-	$array['test_text_color'] = esc_html__( 'TEST: Text', 'lsx' );
11
-	$array['test_text_color_hover'] = esc_html__( 'TEST: Text (hover)', 'lsx' );
9
+function test_lsx_customizer_colour_names($array) {
10
+	$array['test_text_color'] = esc_html__('TEST: Text', 'lsx');
11
+	$array['test_text_color_hover'] = esc_html__('TEST: Text (hover)', 'lsx');
12 12
 	return $array;
13 13
 }
14
-add_filter( 'lsx_customizer_colour_names', 'test_lsx_customizer_colour_names' );
14
+add_filter('lsx_customizer_colour_names', 'test_lsx_customizer_colour_names');
15 15
 
16 16
 /**
17 17
  * Filter: lsx_customizer_colour_choices_default
18 18
  *
19 19
  * Add the new colors (test) in default scheme
20 20
  */
21
-function test_lsx_customizer_colour_choices_default( $array ) {
21
+function test_lsx_customizer_colour_choices_default($array) {
22 22
 	$array[] = '#ddddd1';
23 23
 	$array[] = '#eeeee1';
24 24
 	return $array;
25 25
 }
26
-add_filter( 'lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default' );
26
+add_filter('lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default');
27 27
 
28 28
 /**
29 29
  * Filter: lsx_customizer_colour_choices_red
30 30
  *
31 31
  * Add the new colors (test) in red scheme
32 32
  */
33
-function test_lsx_customizer_colour_choices_red( $array ) {
33
+function test_lsx_customizer_colour_choices_red($array) {
34 34
 	$array[] = '#ddddd2';
35 35
 	$array[] = '#eeeee2';
36 36
 	return $array;
37 37
 }
38
-add_filter( 'lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red' );
38
+add_filter('lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red');
39 39
 
40 40
 /**
41 41
  * Filter: lsx_customizer_colour_choices_orange
42 42
  *
43 43
  * Add the new colors (test) in orange scheme
44 44
  */
45
-function test_lsx_customizer_colour_choices_orange( $array ) {
45
+function test_lsx_customizer_colour_choices_orange($array) {
46 46
 	$array[] = '#ddddd3';
47 47
 	$array[] = '#eeeee3';
48 48
 	return $array;
49 49
 }
50
-add_filter( 'lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange' );
50
+add_filter('lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange');
51 51
 
52 52
 /**
53 53
  * Filter: lsx_customizer_colour_choices_green
54 54
  *
55 55
  * Add the new colors (test) in green scheme
56 56
  */
57
-function test_lsx_customizer_colour_choices_green( $array ) {
57
+function test_lsx_customizer_colour_choices_green($array) {
58 58
 	$array[] = '#ddddd4';
59 59
 	$array[] = '#eeeee4';
60 60
 	return $array;
61 61
 }
62
-add_filter( 'lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green' );
62
+add_filter('lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green');
63 63
 
64 64
 /**
65 65
  * Filter: lsx_customizer_colour_choices_brown
66 66
  *
67 67
  * Add the new colors (test) in brown scheme
68 68
  */
69
-function test_lsx_customizer_colour_choices_brown( $array ) {
69
+function test_lsx_customizer_colour_choices_brown($array) {
70 70
 	$array[] = '#ddddd5';
71 71
 	$array[] = '#eeeee5';
72 72
 	return $array;
73 73
 }
74
-add_filter( 'lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown' );
74
+add_filter('lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown');
75 75
 
76 76
 /**
77 77
  * Filter: lsx_customizer_colour_choices
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
  * Add a new scheme
80 80
  * Also add the new colors (test) in new scheme
81 81
  */
82
-function test_lsx_customizer_colour_choices( $array ) {
82
+function test_lsx_customizer_colour_choices($array) {
83 83
 	$array['test'] = array(
84
-		'label'  => __( 'Test', 'lsx' ),
84
+		'label'  => __('Test', 'lsx'),
85 85
 		'colors' => array(
86 86
 			// Button
87 87
 			'#428bca', '#2a6496', '#ffffff', '#ffffff',
@@ -110,14 +110,14 @@  discard block
 block discarded – undo
110 110
 
111 111
 	return $array;
112 112
 }
113
-add_filter( 'lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices' );
113
+add_filter('lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices');
114 114
 
115 115
 /**
116 116
  * Filter: lsx_customizer_colour_selectors_button
117 117
  *
118 118
  * Add new selectors in "button" group of colours
119 119
  */
120
-function test_lsx_customizer_colour_selectors_button( $css, $colors ) {
120
+function test_lsx_customizer_colour_selectors_button($css, $colors) {
121 121
 	$css .= <<<CSS
122 122
 	
123 123
 	/* Button TEST */
@@ -132,14 +132,14 @@  discard block
 block discarded – undo
132 132
 
133 133
 	return $css;
134 134
 }
135
-add_filter( 'lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2 );
135
+add_filter('lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2);
136 136
 
137 137
 /**
138 138
  * Filter: lsx_customizer_colour_selectors_button_cta
139 139
  *
140 140
  * Add new selectors in "button cta" group of colours
141 141
  */
142
-function test_lsx_customizer_colour_selectors_button_cta( $css, $colors ) {
142
+function test_lsx_customizer_colour_selectors_button_cta($css, $colors) {
143 143
 	$css .= <<<CSS
144 144
 	
145 145
 	/* Button CTA TEST */
@@ -154,14 +154,14 @@  discard block
 block discarded – undo
154 154
 
155 155
 	return $css;
156 156
 }
157
-add_filter( 'lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2 );
157
+add_filter('lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2);
158 158
 
159 159
 /**
160 160
  * Filter: lsx_customizer_colour_selectors_top_menu
161 161
  *
162 162
  * Add new selectors in "top menu" group of colours
163 163
  */
164
-function test_lsx_customizer_colour_selectors_top_menu( $css, $colors ) {
164
+function test_lsx_customizer_colour_selectors_top_menu($css, $colors) {
165 165
 	$css .= <<<CSS
166 166
 	
167 167
 	/* Top Menu TEST */
@@ -175,14 +175,14 @@  discard block
 block discarded – undo
175 175
 
176 176
 	return $css;
177 177
 }
178
-add_filter( 'lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2 );
178
+add_filter('lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2);
179 179
 
180 180
 /**
181 181
  * Filter: lsx_customizer_colour_selectors_header
182 182
  *
183 183
  * Add new selectors in "header" group of colours
184 184
  */
185
-function test_lsx_customizer_colour_selectors_header( $css, $colors ) {
185
+function test_lsx_customizer_colour_selectors_header($css, $colors) {
186 186
 	$css .= <<<CSS
187 187
 	
188 188
 	/* Header TEST */
@@ -197,14 +197,14 @@  discard block
 block discarded – undo
197 197
 
198 198
 	return $css;
199 199
 }
200
-add_filter( 'lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2 );
200
+add_filter('lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2);
201 201
 
202 202
 /**
203 203
  * Filter: lsx_customizer_colour_selectors_main_menu
204 204
  *
205 205
  * Add new selectors in "main meun" group of colours
206 206
  */
207
-function test_lsx_customizer_colour_selectors_main_menu( $css, $colors ) {
207
+function test_lsx_customizer_colour_selectors_main_menu($css, $colors) {
208 208
 	$css .= <<<CSS
209 209
 	
210 210
 	/* Main Menu TEST */
@@ -220,14 +220,14 @@  discard block
 block discarded – undo
220 220
 
221 221
 	return $css;
222 222
 }
223
-add_filter( 'lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2 );
223
+add_filter('lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2);
224 224
 
225 225
 /**
226 226
  * Filter: lsx_customizer_colour_selectors_banner
227 227
  *
228 228
  * Add new selectors in "banner" group of colours
229 229
  */
230
-function test_lsx_customizer_colour_selectors_banner( $css, $colors ) {
230
+function test_lsx_customizer_colour_selectors_banner($css, $colors) {
231 231
 	$css .= <<<CSS
232 232
 	
233 233
 	/* Banner TEST */
@@ -241,14 +241,14 @@  discard block
 block discarded – undo
241 241
 
242 242
 	return $css;
243 243
 }
244
-add_filter( 'lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2 );
244
+add_filter('lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2);
245 245
 
246 246
 /**
247 247
  * Filter: lsx_customizer_colour_selectors_body
248 248
  *
249 249
  * Add new selectors in "body" group of colours
250 250
  */
251
-function test_lsx_customizer_colour_selectors_body( $css, $colors ) {
251
+function test_lsx_customizer_colour_selectors_body($css, $colors) {
252 252
 	$css .= <<<CSS
253 253
 	
254 254
 	/* Body TEST */
@@ -265,14 +265,14 @@  discard block
 block discarded – undo
265 265
 
266 266
 	return $css;
267 267
 }
268
-add_filter( 'lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2 );
268
+add_filter('lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2);
269 269
 
270 270
 /**
271 271
  * Filter: lsx_customizer_colour_selectors_footer_cta
272 272
  *
273 273
  * Add new selectors in "footer cta" group of colours
274 274
  */
275
-function test_lsx_customizer_colour_selectors_footer_cta( $css, $colors ) {
275
+function test_lsx_customizer_colour_selectors_footer_cta($css, $colors) {
276 276
 	$css .= <<<CSS
277 277
 	
278 278
 	/* Footer CTA TEST */
@@ -287,14 +287,14 @@  discard block
 block discarded – undo
287 287
 
288 288
 	return $css;
289 289
 }
290
-add_filter( 'lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2 );
290
+add_filter('lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2);
291 291
 
292 292
 /**
293 293
  * Filter: lsx_customizer_colour_selectors_footer_widgets
294 294
  *
295 295
  * Add new selectors in "footer widgets" group of colours
296 296
  */
297
-function test_lsx_customizer_colour_selectors_footer_widgets( $css, $colors ) {
297
+function test_lsx_customizer_colour_selectors_footer_widgets($css, $colors) {
298 298
 	$css .= <<<CSS
299 299
 	
300 300
 	/* Footer Widgets TEST */
@@ -309,14 +309,14 @@  discard block
 block discarded – undo
309 309
 
310 310
 	return $css;
311 311
 }
312
-add_filter( 'lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2 );
312
+add_filter('lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2);
313 313
 
314 314
 /**
315 315
  * Filter: lsx_customizer_colour_selectors_footer
316 316
  *
317 317
  * Add new selectors in "footer" group of colours
318 318
  */
319
-function test_lsx_customizer_colour_selectors_footer( $css, $colors ) {
319
+function test_lsx_customizer_colour_selectors_footer($css, $colors) {
320 320
 	$css .= <<<CSS
321 321
 	
322 322
 	/* Footer TEST */
@@ -331,4 +331,4 @@  discard block
 block discarded – undo
331 331
 
332 332
 	return $css;
333 333
 }
334
-add_filter( 'lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2 );
334
+add_filter('lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2);
Please login to merge, or discard this patch.
inc/customizer-core.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 /**
5 5
  * Customize Swatch Control Class
6 6
  *
7 7
  * @since 1.0.0
8 8
  */
9
-if( !class_exists( 'WP_Customize_Control' ) ){
9
+if ( ! class_exists('WP_Customize_Control')) {
10 10
 	return;
11 11
 }
12 12
 class LSX_Customize_Core_Control extends WP_Customize_Control {
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
 	public function render_content() {
23 23
 		?> 
24 24
 		<label>
25
-			<?php if ( ! empty( $this->label ) ) { ?>
26
-				<span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span>
25
+			<?php if ( ! empty($this->label)) { ?>
26
+				<span class="customize-control-title"><?php echo esc_html($this->label) ?></span>
27 27
 			<?php }
28
-			if ( ! empty( $this->description ) ) { ?>
29
-				<span class="description customize-control-description"><?php echo esc_html( $this->description ) ?></span>
28
+			if ( ! empty($this->description)) { ?>
29
+				<span class="description customize-control-description"><?php echo esc_html($this->description) ?></span>
30 30
 			<?php } ?>
31
-			<input <?php $this->link() ?> type="checkbox" value="<?php echo esc_attr( $this->value() ) ?>" <?php $this->input_attrs() ?>>
31
+			<input <?php $this->link() ?> type="checkbox" value="<?php echo esc_attr($this->value()) ?>" <?php $this->input_attrs() ?>>
32 32
 		</label>
33 33
 	<?php
34 34
 	}
Please login to merge, or discard this patch.
inc/customizer-colour.php 1 patch
Spacing   +261 added lines, -261 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 /**
5 5
  * Transform SCSS to CSS
6 6
  */
7
-function lsx_customizer_colour__scss_to_css( $scss ) {
7
+function lsx_customizer_colour__scss_to_css($scss) {
8 8
 	$css = '';
9
-	$scssphp_file = get_template_directory() .'/vendor/leafo/scssphp/scss.inc.php';
9
+	$scssphp_file = get_template_directory() . '/vendor/leafo/scssphp/scss.inc.php';
10 10
 
11
-	if ( ! empty( $scss ) && file_exists( $scssphp_file ) ) {
11
+	if ( ! empty($scss) && file_exists($scssphp_file)) {
12 12
 		require_once $scssphp_file;
13 13
 
14 14
 		$compiler = new \Leafo\ScssPhp\Compiler();
15
-		$compiler->setFormatter( 'Leafo\ScssPhp\Formatter\Compact' );
15
+		$compiler->setFormatter('Leafo\ScssPhp\Formatter\Compact');
16 16
 
17 17
 		try {
18
-			$css = $compiler->compile( $scss );
19
-		} catch ( Exception $e ) {
18
+			$css = $compiler->compile($scss);
19
+		} catch (Exception $e) {
20 20
 			$error = $e->getMessage();
21 21
 			return "/*\n\n\$error:\n\n{$error}\n\n\$scss:\n\n{$scss} */";
22 22
 		}
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
  * 
30 30
  */
31 31
 function lsx_customizer_colour__add_footer_styles() {
32
-	wp_enqueue_style( 'lsx_customizer_colour', get_stylesheet_uri() );
32
+	wp_enqueue_style('lsx_customizer_colour', get_stylesheet_uri());
33 33
 }
34
-add_action( 'wp_footer', 'lsx_customizer_colour__add_footer_styles', 11 );
34
+add_action('wp_footer', 'lsx_customizer_colour__add_footer_styles', 11);
35 35
 
36 36
 /**
37 37
  * Outputs an Underscore template for generating CSS for the color scheme.
@@ -41,28 +41,28 @@  discard block
 block discarded – undo
41 41
 	
42 42
 	$colors = array();
43 43
 
44
-	foreach ( $customizer_colour_names as $key => $value ) {
45
-		$colors[$key] = 'unquote("{{ data.'.$key.' }}")';
44
+	foreach ($customizer_colour_names as $key => $value) {
45
+		$colors[$key] = 'unquote("{{ data.' . $key . ' }}")';
46 46
 	}
47 47
 	?>
48 48
 	<script type="text/html" id="tmpl-lsx-color-scheme">
49
-		<?php echo esc_html( lsx_customizer_colour__top_menu_get_css( $colors ) ) ?>
50
-		<?php echo esc_html( lsx_customizer_colour__header_get_css( $colors ) ) ?>
51
-		<?php echo esc_html( lsx_customizer_colour__main_menu_get_css( $colors ) ) ?>
49
+		<?php echo esc_html(lsx_customizer_colour__top_menu_get_css($colors)) ?>
50
+		<?php echo esc_html(lsx_customizer_colour__header_get_css($colors)) ?>
51
+		<?php echo esc_html(lsx_customizer_colour__main_menu_get_css($colors)) ?>
52 52
 
53
-		<?php echo esc_html( lsx_customizer_colour__banner_get_css( $colors ) ) ?>
54
-		<?php echo esc_html( lsx_customizer_colour__body_get_css( $colors ) ) ?>
53
+		<?php echo esc_html(lsx_customizer_colour__banner_get_css($colors)) ?>
54
+		<?php echo esc_html(lsx_customizer_colour__body_get_css($colors)) ?>
55 55
 
56
-		<?php echo esc_html( lsx_customizer_colour__footer_cta_get_css( $colors ) ) ?>
57
-		<?php echo esc_html( lsx_customizer_colour__footer_widgets_get_css( $colors ) ) ?>
58
-		<?php echo esc_html( lsx_customizer_colour__footer_get_css( $colors ) ) ?>
56
+		<?php echo esc_html(lsx_customizer_colour__footer_cta_get_css($colors)) ?>
57
+		<?php echo esc_html(lsx_customizer_colour__footer_widgets_get_css($colors)) ?>
58
+		<?php echo esc_html(lsx_customizer_colour__footer_get_css($colors)) ?>
59 59
 
60
-		<?php echo esc_html( lsx_customizer_colour__button_get_css( $colors ) ) ?>
61
-		<?php echo esc_html( lsx_customizer_colour__button_cta_get_css( $colors ) ) ?>
60
+		<?php echo esc_html(lsx_customizer_colour__button_get_css($colors)) ?>
61
+		<?php echo esc_html(lsx_customizer_colour__button_cta_get_css($colors)) ?>
62 62
 	</script>
63 63
 	<?php
64 64
 }
65
-add_action( 'customize_controls_print_footer_scripts', 'lsx_customizer_colour__color_scheme_css_template' );
65
+add_action('customize_controls_print_footer_scripts', 'lsx_customizer_colour__color_scheme_css_template');
66 66
 
67 67
 /**
68 68
  * Retrieves the current color scheme.
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
 function lsx_customizer_colour__get_color_scheme() {
71 71
 	global $customizer_colour_choices;
72 72
 
73
-	$color_scheme_option = get_theme_mod( 'color_scheme', 'default' );
73
+	$color_scheme_option = get_theme_mod('color_scheme', 'default');
74 74
 	$color_schemes = $customizer_colour_choices;
75 75
 
76
-	if ( array_key_exists( $color_scheme_option, $color_schemes ) ) {
77
-		return $color_schemes[ $color_scheme_option ]['colors'];
76
+	if (array_key_exists($color_scheme_option, $color_schemes)) {
77
+		return $color_schemes[$color_scheme_option]['colors'];
78 78
 	}
79 79
 
80 80
 	return $color_schemes['default']['colors'];
@@ -83,22 +83,22 @@  discard block
 block discarded – undo
83 83
 /**
84 84
  * Converts a HEX value to RGB.
85 85
  */
86
-function lsx_customizer_colour__hex2rgb( $color ) {
87
-	$color = trim( $color, '#' );
88
-
89
-	if ( strlen( $color ) === 3 ) {
90
-		$r = hexdec( substr( $color, 0, 1 ).substr( $color, 0, 1 ) );
91
-		$g = hexdec( substr( $color, 1, 1 ).substr( $color, 1, 1 ) );
92
-		$b = hexdec( substr( $color, 2, 1 ).substr( $color, 2, 1 ) );
93
-	} else if ( strlen( $color ) === 6 ) {
94
-		$r = hexdec( substr( $color, 0, 2 ) );
95
-		$g = hexdec( substr( $color, 2, 2 ) );
96
-		$b = hexdec( substr( $color, 4, 2 ) );
86
+function lsx_customizer_colour__hex2rgb($color) {
87
+	$color = trim($color, '#');
88
+
89
+	if (strlen($color) === 3) {
90
+		$r = hexdec(substr($color, 0, 1) . substr($color, 0, 1));
91
+		$g = hexdec(substr($color, 1, 1) . substr($color, 1, 1));
92
+		$b = hexdec(substr($color, 2, 1) . substr($color, 2, 1));
93
+	} else if (strlen($color) === 6) {
94
+		$r = hexdec(substr($color, 0, 2));
95
+		$g = hexdec(substr($color, 2, 2));
96
+		$b = hexdec(substr($color, 4, 2));
97 97
 	} else {
98 98
 		return array();
99 99
 	}
100 100
 
101
-	return array( 'red' => $r, 'green' => $g, 'blue' => $b );
101
+	return array('red' => $r, 'green' => $g, 'blue' => $b);
102 102
 }
103 103
 
104 104
 /* ################################################################################# */
@@ -109,33 +109,33 @@  discard block
 block discarded – undo
109 109
  */
110 110
 function lsx_customizer_colour__button_set_theme_mod() {
111 111
 	$theme_mods = lsx_customizer_colour__button_get_theme_mods();
112
-	$styles     = lsx_customizer_colour__button_get_css( $theme_mods );
112
+	$styles     = lsx_customizer_colour__button_get_css($theme_mods);
113 113
 	
114
-	set_theme_mod( 'lsx_customizer_colour__button_theme_mod', $styles );
114
+	set_theme_mod('lsx_customizer_colour__button_theme_mod', $styles);
115 115
 }
116
-add_action( 'after_switch_theme',   'lsx_customizer_colour__button_set_theme_mod' );
117
-add_action( 'customize_save_after', 'lsx_customizer_colour__button_set_theme_mod' );
116
+add_action('after_switch_theme', 'lsx_customizer_colour__button_set_theme_mod');
117
+add_action('customize_save_after', 'lsx_customizer_colour__button_set_theme_mod');
118 118
 
119 119
 /**
120 120
  * Enqueues front-end CSS for the button.
121 121
  */
122 122
 function lsx_customizer_colour__button_css() {
123
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__button_theme_mod' );
123
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__button_theme_mod');
124 124
 	
125
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
125
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
126 126
 		$theme_mods = lsx_customizer_colour__button_get_theme_mods();
127
-		$styles     = lsx_customizer_colour__button_get_css( $theme_mods );
127
+		$styles     = lsx_customizer_colour__button_get_css($theme_mods);
128 128
 		
129
-		if ( false === $styles_from_theme_mod ) {
130
-			set_theme_mod( 'lsx_customizer_colour__button_theme_mod', $styles );
129
+		if (false === $styles_from_theme_mod) {
130
+			set_theme_mod('lsx_customizer_colour__button_theme_mod', $styles);
131 131
 		}
132 132
 	} else {
133 133
 		$styles = $styles_from_theme_mod;
134 134
 	}
135 135
 
136
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
136
+	wp_add_inline_style('lsx_customizer_colour', $styles);
137 137
 }
138
-add_action( 'wp_footer', 'lsx_customizer_colour__button_css', 12 );
138
+add_action('wp_footer', 'lsx_customizer_colour__button_css', 12);
139 139
 
140 140
 /**
141 141
  * Get button CSS theme mods.
@@ -147,32 +147,32 @@  discard block
 block discarded – undo
147 147
 	$colors       = array();
148 148
 	$counter      = 0;
149 149
 
150
-	foreach ( $customizer_colour_names as $key => $value ) {
150
+	foreach ($customizer_colour_names as $key => $value) {
151 151
 		$colors[$key] = $color_scheme[$counter];
152 152
 		$counter++;
153 153
 	}
154 154
 
155 155
 	return array(
156
-		'button_background_color' =>       get_theme_mod( 'button_background_color',       $colors['button_background_color'] ),
157
-		'button_background_hover_color' => get_theme_mod( 'button_background_hover_color', $colors['button_background_hover_color'] ),
158
-		'button_text_color' =>             get_theme_mod( 'button_text_color',             $colors['button_text_color'] ),
159
-		'button_text_color_hover' =>       get_theme_mod( 'button_text_color_hover',       $colors['button_text_color_hover'] )
156
+		'button_background_color' =>       get_theme_mod('button_background_color', $colors['button_background_color']),
157
+		'button_background_hover_color' => get_theme_mod('button_background_hover_color', $colors['button_background_hover_color']),
158
+		'button_text_color' =>             get_theme_mod('button_text_color', $colors['button_text_color']),
159
+		'button_text_color_hover' =>       get_theme_mod('button_text_color_hover', $colors['button_text_color_hover'])
160 160
 	);
161 161
 }
162 162
 
163 163
 /**
164 164
  * Returns CSS for the button.
165 165
  */
166
-function lsx_customizer_colour__button_get_css( $colors ) {
166
+function lsx_customizer_colour__button_get_css($colors) {
167 167
 	global $customizer_colour_names;
168 168
 	
169 169
 	$colors_template = array();
170 170
 
171
-	foreach ( $customizer_colour_names as $key => $value ) {
171
+	foreach ($customizer_colour_names as $key => $value) {
172 172
 		$colors_template[$key] = '';
173 173
 	}
174 174
 
175
-	$colors = wp_parse_args( $colors, $colors_template );
175
+	$colors = wp_parse_args($colors, $colors_template);
176 176
 
177 177
 	$css = <<<CSS
178 178
 		/*
@@ -350,8 +350,8 @@  discard block
 block discarded – undo
350 350
 		}
351 351
 CSS;
352 352
 
353
-	$css = apply_filters( 'lsx_customizer_colour_selectors_button', $css, $colors );
354
-	$css = lsx_customizer_colour__scss_to_css( $css );
353
+	$css = apply_filters('lsx_customizer_colour_selectors_button', $css, $colors);
354
+	$css = lsx_customizer_colour__scss_to_css($css);
355 355
 	return $css;
356 356
 }
357 357
 
@@ -364,33 +364,33 @@  discard block
 block discarded – undo
364 364
  */
365 365
 function lsx_customizer_colour__button_cta_set_theme_mod() {
366 366
 	$theme_mods = lsx_customizer_colour__button_cta_get_theme_mods();
367
-	$styles     = lsx_customizer_colour__button_cta_get_css( $theme_mods );
367
+	$styles     = lsx_customizer_colour__button_cta_get_css($theme_mods);
368 368
 	
369
-	set_theme_mod( 'lsx_customizer_colour__button_cta_theme_mod', $styles );
369
+	set_theme_mod('lsx_customizer_colour__button_cta_theme_mod', $styles);
370 370
 }
371
-add_action( 'after_switch_theme',   'lsx_customizer_colour__button_cta_set_theme_mod' );
372
-add_action( 'customize_save_after', 'lsx_customizer_colour__button_cta_set_theme_mod' );
371
+add_action('after_switch_theme', 'lsx_customizer_colour__button_cta_set_theme_mod');
372
+add_action('customize_save_after', 'lsx_customizer_colour__button_cta_set_theme_mod');
373 373
 
374 374
 /**
375 375
  * Enqueues front-end CSS for the button cta.
376 376
  */
377 377
 function lsx_customizer_colour__button_cta_css() {
378
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__button_cta_theme_mod' );
378
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__button_cta_theme_mod');
379 379
 	
380
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
380
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
381 381
 		$theme_mods = lsx_customizer_colour__button_cta_get_theme_mods();
382
-		$styles     = lsx_customizer_colour__button_cta_get_css( $theme_mods );
382
+		$styles     = lsx_customizer_colour__button_cta_get_css($theme_mods);
383 383
 		
384
-		if ( false === $styles_from_theme_mod ) {
385
-			set_theme_mod( 'lsx_customizer_colour__button_cta_theme_mod', $styles );
384
+		if (false === $styles_from_theme_mod) {
385
+			set_theme_mod('lsx_customizer_colour__button_cta_theme_mod', $styles);
386 386
 		}
387 387
 	} else {
388 388
 		$styles = $styles_from_theme_mod;
389 389
 	}
390 390
 
391
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
391
+	wp_add_inline_style('lsx_customizer_colour', $styles);
392 392
 }
393
-add_action( 'wp_footer', 'lsx_customizer_colour__button_cta_css', 12 );
393
+add_action('wp_footer', 'lsx_customizer_colour__button_cta_css', 12);
394 394
 
395 395
 /**
396 396
  * Get button cta CSS theme mods.
@@ -402,32 +402,32 @@  discard block
 block discarded – undo
402 402
 	$colors       = array();
403 403
 	$counter      = 0;
404 404
 
405
-	foreach ( $customizer_colour_names as $key => $value ) {
405
+	foreach ($customizer_colour_names as $key => $value) {
406 406
 		$colors[$key] = $color_scheme[$counter];
407 407
 		$counter++;
408 408
 	}
409 409
 
410 410
 	return array(
411
-		'button_cta_background_color' =>       get_theme_mod( 'button_cta_background_color',       $colors['button_cta_background_color'] ),
412
-		'button_cta_background_hover_color' => get_theme_mod( 'button_cta_background_hover_color', $colors['button_cta_background_hover_color'] ),
413
-		'button_cta_text_color' =>             get_theme_mod( 'button_cta_text_color',             $colors['button_cta_text_color'] ),
414
-		'button_cta_text_color_hover' =>       get_theme_mod( 'button_cta_text_color_hover',       $colors['button_cta_text_color_hover'] )
411
+		'button_cta_background_color' =>       get_theme_mod('button_cta_background_color', $colors['button_cta_background_color']),
412
+		'button_cta_background_hover_color' => get_theme_mod('button_cta_background_hover_color', $colors['button_cta_background_hover_color']),
413
+		'button_cta_text_color' =>             get_theme_mod('button_cta_text_color', $colors['button_cta_text_color']),
414
+		'button_cta_text_color_hover' =>       get_theme_mod('button_cta_text_color_hover', $colors['button_cta_text_color_hover'])
415 415
 	);
416 416
 }
417 417
 
418 418
 /**
419 419
  * Returns CSS for the button cta.
420 420
  */
421
-function lsx_customizer_colour__button_cta_get_css( $colors ) {
421
+function lsx_customizer_colour__button_cta_get_css($colors) {
422 422
 	global $customizer_colour_names;
423 423
 	
424 424
 	$colors_template = array();
425 425
 
426
-	foreach ( $customizer_colour_names as $key => $value ) {
426
+	foreach ($customizer_colour_names as $key => $value) {
427 427
 		$colors_template[$key] = '';
428 428
 	}
429 429
 
430
-	$colors = wp_parse_args( $colors, $colors_template );
430
+	$colors = wp_parse_args($colors, $colors_template);
431 431
 
432 432
 	$css = <<<CSS
433 433
 		/*
@@ -522,8 +522,8 @@  discard block
 block discarded – undo
522 522
 		}
523 523
 CSS;
524 524
 
525
-	$css = apply_filters( 'lsx_customizer_colour_selectors_button_cta', $css, $colors );
526
-	$css = lsx_customizer_colour__scss_to_css( $css );
525
+	$css = apply_filters('lsx_customizer_colour_selectors_button_cta', $css, $colors);
526
+	$css = lsx_customizer_colour__scss_to_css($css);
527 527
 	return $css;
528 528
 }
529 529
 
@@ -536,33 +536,33 @@  discard block
 block discarded – undo
536 536
  */
537 537
 function lsx_customizer_colour__top_menu_set_theme_mod() {
538 538
 	$theme_mods = lsx_customizer_colour__top_menu_get_theme_mods();
539
-	$styles     = lsx_customizer_colour__top_menu_get_css( $theme_mods );
539
+	$styles     = lsx_customizer_colour__top_menu_get_css($theme_mods);
540 540
 	
541
-	set_theme_mod( 'lsx_customizer_colour__top_menu_theme_mod', $styles );
541
+	set_theme_mod('lsx_customizer_colour__top_menu_theme_mod', $styles);
542 542
 }
543
-add_action( 'after_switch_theme',   'lsx_customizer_colour__top_menu_set_theme_mod' );
544
-add_action( 'customize_save_after', 'lsx_customizer_colour__top_menu_set_theme_mod' );
543
+add_action('after_switch_theme', 'lsx_customizer_colour__top_menu_set_theme_mod');
544
+add_action('customize_save_after', 'lsx_customizer_colour__top_menu_set_theme_mod');
545 545
 
546 546
 /**
547 547
  * Enqueues front-end CSS for the top menu.
548 548
  */
549 549
 function lsx_customizer_colour__top_menu_css() {
550
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__top_menu_theme_mod' );
550
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__top_menu_theme_mod');
551 551
 	
552
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
552
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
553 553
 		$theme_mods = lsx_customizer_colour__top_menu_get_theme_mods();
554
-		$styles     = lsx_customizer_colour__top_menu_get_css( $theme_mods );
554
+		$styles     = lsx_customizer_colour__top_menu_get_css($theme_mods);
555 555
 		
556
-		if ( false === $styles_from_theme_mod ) {
557
-			set_theme_mod( 'lsx_customizer_colour__top_menu_theme_mod', $styles );
556
+		if (false === $styles_from_theme_mod) {
557
+			set_theme_mod('lsx_customizer_colour__top_menu_theme_mod', $styles);
558 558
 		}
559 559
 	} else {
560 560
 		$styles = $styles_from_theme_mod;
561 561
 	}
562 562
 
563
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
563
+	wp_add_inline_style('lsx_customizer_colour', $styles);
564 564
 }
565
-add_action( 'wp_footer', 'lsx_customizer_colour__top_menu_css', 12 );
565
+add_action('wp_footer', 'lsx_customizer_colour__top_menu_css', 12);
566 566
 
567 567
 /**
568 568
  * Get top menu CSS theme mods.
@@ -574,31 +574,31 @@  discard block
 block discarded – undo
574 574
 	$colors       = array();
575 575
 	$counter      = 0;
576 576
 
577
-	foreach ( $customizer_colour_names as $key => $value ) {
577
+	foreach ($customizer_colour_names as $key => $value) {
578 578
 		$colors[$key] = $color_scheme[$counter];
579 579
 		$counter++;
580 580
 	}
581 581
 
582 582
 	return array(
583
-		'top_menu_background_color' => get_theme_mod( 'top_menu_background_color', $colors['top_menu_background_color'] ),
584
-		'top_menu_text_color' =>       get_theme_mod( 'top_menu_text_color',       $colors['top_menu_text_color'] ),
585
-		'top_menu_text_hover_color' => get_theme_mod( 'top_menu_text_hover_color', $colors['top_menu_text_hover_color'] )
583
+		'top_menu_background_color' => get_theme_mod('top_menu_background_color', $colors['top_menu_background_color']),
584
+		'top_menu_text_color' =>       get_theme_mod('top_menu_text_color', $colors['top_menu_text_color']),
585
+		'top_menu_text_hover_color' => get_theme_mod('top_menu_text_hover_color', $colors['top_menu_text_hover_color'])
586 586
 	);
587 587
 }
588 588
 
589 589
 /**
590 590
  * Returns CSS for the top menu.
591 591
  */
592
-function lsx_customizer_colour__top_menu_get_css( $colors ) {
592
+function lsx_customizer_colour__top_menu_get_css($colors) {
593 593
 	global $customizer_colour_names;
594 594
 	
595 595
 	$colors_template = array();
596 596
 
597
-	foreach ( $customizer_colour_names as $key => $value ) {
597
+	foreach ($customizer_colour_names as $key => $value) {
598 598
 		$colors_template[$key] = '';
599 599
 	}
600 600
 
601
-	$colors = wp_parse_args( $colors, $colors_template );
601
+	$colors = wp_parse_args($colors, $colors_template);
602 602
 
603 603
 	$css = <<<CSS
604 604
 		/*
@@ -638,8 +638,8 @@  discard block
 block discarded – undo
638 638
 		}
639 639
 CSS;
640 640
 
641
-	$css = apply_filters( 'lsx_customizer_colour_selectors_top_menu', $css, $colors );
642
-	$css = lsx_customizer_colour__scss_to_css( $css );
641
+	$css = apply_filters('lsx_customizer_colour_selectors_top_menu', $css, $colors);
642
+	$css = lsx_customizer_colour__scss_to_css($css);
643 643
 	return $css;
644 644
 }
645 645
 
@@ -652,33 +652,33 @@  discard block
 block discarded – undo
652 652
  */
653 653
 function lsx_customizer_colour__header_set_theme_mod() {
654 654
 	$theme_mods = lsx_customizer_colour__header_get_theme_mods();
655
-	$styles     = lsx_customizer_colour__header_get_css( $theme_mods );
655
+	$styles     = lsx_customizer_colour__header_get_css($theme_mods);
656 656
 	
657
-	set_theme_mod( 'lsx_customizer_colour__header_theme_mod', $styles );
657
+	set_theme_mod('lsx_customizer_colour__header_theme_mod', $styles);
658 658
 }
659
-add_action( 'after_switch_theme',   'lsx_customizer_colour__header_set_theme_mod' );
660
-add_action( 'customize_save_after', 'lsx_customizer_colour__header_set_theme_mod' );
659
+add_action('after_switch_theme', 'lsx_customizer_colour__header_set_theme_mod');
660
+add_action('customize_save_after', 'lsx_customizer_colour__header_set_theme_mod');
661 661
 
662 662
 /**
663 663
  * Enqueues front-end CSS for the header.
664 664
  */
665 665
 function lsx_customizer_colour__header_css() {
666
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__header_theme_mod' );
666
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__header_theme_mod');
667 667
 	
668
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
668
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
669 669
 		$theme_mods = lsx_customizer_colour__header_get_theme_mods();
670
-		$styles     = lsx_customizer_colour__header_get_css( $theme_mods );
670
+		$styles     = lsx_customizer_colour__header_get_css($theme_mods);
671 671
 		
672
-		if ( false === $styles_from_theme_mod ) {
673
-			set_theme_mod( 'lsx_customizer_colour__header_theme_mod', $styles );
672
+		if (false === $styles_from_theme_mod) {
673
+			set_theme_mod('lsx_customizer_colour__header_theme_mod', $styles);
674 674
 		}
675 675
 	} else {
676 676
 		$styles = $styles_from_theme_mod;
677 677
 	}
678 678
 
679
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
679
+	wp_add_inline_style('lsx_customizer_colour', $styles);
680 680
 }
681
-add_action( 'wp_footer', 'lsx_customizer_colour__header_css', 12 );
681
+add_action('wp_footer', 'lsx_customizer_colour__header_css', 12);
682 682
 
683 683
 /**
684 684
  * Get header CSS theme mods.
@@ -690,32 +690,32 @@  discard block
 block discarded – undo
690 690
 	$colors       = array();
691 691
 	$counter      = 0;
692 692
 
693
-	foreach ( $customizer_colour_names as $key => $value ) {
693
+	foreach ($customizer_colour_names as $key => $value) {
694 694
 		$colors[$key] = $color_scheme[$counter];
695 695
 		$counter++;
696 696
 	}
697 697
 
698 698
 	return array(
699
-		'header_background_color'  => get_theme_mod( 'header_background_color',  $colors['header_background_color'] ),
700
-		'header_title_color'       => get_theme_mod( 'header_title_color',       $colors['header_title_color'] ),
701
-		'header_title_hover_color' => get_theme_mod( 'header_title_hover_color', $colors['header_title_hover_color'] ),
702
-		'header_description_color' => get_theme_mod( 'header_description_color', $colors['header_description_color'] )
699
+		'header_background_color'  => get_theme_mod('header_background_color', $colors['header_background_color']),
700
+		'header_title_color'       => get_theme_mod('header_title_color', $colors['header_title_color']),
701
+		'header_title_hover_color' => get_theme_mod('header_title_hover_color', $colors['header_title_hover_color']),
702
+		'header_description_color' => get_theme_mod('header_description_color', $colors['header_description_color'])
703 703
 	);
704 704
 }
705 705
 
706 706
 /**
707 707
  * Returns CSS for the header.
708 708
  */
709
-function lsx_customizer_colour__header_get_css( $colors ) {
709
+function lsx_customizer_colour__header_get_css($colors) {
710 710
 	global $customizer_colour_names;
711 711
 	
712 712
 	$colors_template = array();
713 713
 
714
-	foreach ( $customizer_colour_names as $key => $value ) {
714
+	foreach ($customizer_colour_names as $key => $value) {
715 715
 		$colors_template[$key] = '';
716 716
 	}
717 717
 
718
-	$colors = wp_parse_args( $colors, $colors_template );
718
+	$colors = wp_parse_args($colors, $colors_template);
719 719
 
720 720
 	$css = <<<CSS
721 721
 		/*
@@ -752,8 +752,8 @@  discard block
 block discarded – undo
752 752
 		}
753 753
 CSS;
754 754
 
755
-	$css = apply_filters( 'lsx_customizer_colour_selectors_header', $css, $colors );
756
-	$css = lsx_customizer_colour__scss_to_css( $css );
755
+	$css = apply_filters('lsx_customizer_colour_selectors_header', $css, $colors);
756
+	$css = lsx_customizer_colour__scss_to_css($css);
757 757
 	return $css;
758 758
 }
759 759
 
@@ -766,33 +766,33 @@  discard block
 block discarded – undo
766 766
  */
767 767
 function lsx_customizer_colour__main_menu_set_theme_mod() {
768 768
 	$theme_mods = lsx_customizer_colour__main_menu_get_theme_mods();
769
-	$styles     = lsx_customizer_colour__main_menu_get_css( $theme_mods );
769
+	$styles     = lsx_customizer_colour__main_menu_get_css($theme_mods);
770 770
 	
771
-	set_theme_mod( 'lsx_customizer_colour__main_menu_theme_mod', $styles );
771
+	set_theme_mod('lsx_customizer_colour__main_menu_theme_mod', $styles);
772 772
 }
773
-add_action( 'after_switch_theme',   'lsx_customizer_colour__main_menu_set_theme_mod' );
774
-add_action( 'customize_save_after', 'lsx_customizer_colour__main_menu_set_theme_mod' );
773
+add_action('after_switch_theme', 'lsx_customizer_colour__main_menu_set_theme_mod');
774
+add_action('customize_save_after', 'lsx_customizer_colour__main_menu_set_theme_mod');
775 775
 
776 776
 /**
777 777
  * Enqueues front-end CSS for the main menu.
778 778
  */
779 779
 function lsx_customizer_colour__main_menu_css() {
780
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__main_menu_theme_mod' );
780
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__main_menu_theme_mod');
781 781
 	
782
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
782
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
783 783
 		$theme_mods = lsx_customizer_colour__main_menu_get_theme_mods();
784
-		$styles     = lsx_customizer_colour__main_menu_get_css( $theme_mods );
784
+		$styles     = lsx_customizer_colour__main_menu_get_css($theme_mods);
785 785
 		
786
-		if ( false === $styles_from_theme_mod ) {
787
-			set_theme_mod( 'lsx_customizer_colour__main_menu_theme_mod', $styles );
786
+		if (false === $styles_from_theme_mod) {
787
+			set_theme_mod('lsx_customizer_colour__main_menu_theme_mod', $styles);
788 788
 		}
789 789
 	} else {
790 790
 		$styles = $styles_from_theme_mod;
791 791
 	}
792 792
 
793
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
793
+	wp_add_inline_style('lsx_customizer_colour', $styles);
794 794
 }
795
-add_action( 'wp_footer', 'lsx_customizer_colour__main_menu_css', 12 );
795
+add_action('wp_footer', 'lsx_customizer_colour__main_menu_css', 12);
796 796
 
797 797
 /**
798 798
  * Get main menu CSS theme mods.
@@ -804,33 +804,33 @@  discard block
 block discarded – undo
804 804
 	$colors       = array();
805 805
 	$counter      = 0;
806 806
 
807
-	foreach ( $customizer_colour_names as $key => $value ) {
807
+	foreach ($customizer_colour_names as $key => $value) {
808 808
 		$colors[$key] = $color_scheme[$counter];
809 809
 		$counter++;
810 810
 	}
811 811
 
812 812
 	return array(
813
-		'main_menu_background_hover1_color' => get_theme_mod( 'main_menu_background_hover1_color', $colors['main_menu_background_hover1_color'] ),
814
-		'main_menu_background_hover2_color' => get_theme_mod( 'main_menu_background_hover2_color', $colors['main_menu_background_hover2_color'] ),
815
-		'main_menu_text_color' =>              get_theme_mod( 'main_menu_text_color',              $colors['main_menu_text_color'] ),
816
-		'main_menu_text_hover1_color' =>       get_theme_mod( 'main_menu_text_hover1_color',       $colors['main_menu_text_hover1_color'] ),
817
-		'main_menu_text_hover2_color' =>       get_theme_mod( 'main_menu_text_hover2_color',       $colors['main_menu_text_hover2_color'] )
813
+		'main_menu_background_hover1_color' => get_theme_mod('main_menu_background_hover1_color', $colors['main_menu_background_hover1_color']),
814
+		'main_menu_background_hover2_color' => get_theme_mod('main_menu_background_hover2_color', $colors['main_menu_background_hover2_color']),
815
+		'main_menu_text_color' =>              get_theme_mod('main_menu_text_color', $colors['main_menu_text_color']),
816
+		'main_menu_text_hover1_color' =>       get_theme_mod('main_menu_text_hover1_color', $colors['main_menu_text_hover1_color']),
817
+		'main_menu_text_hover2_color' =>       get_theme_mod('main_menu_text_hover2_color', $colors['main_menu_text_hover2_color'])
818 818
 	);
819 819
 }
820 820
 
821 821
 /**
822 822
  * Returns CSS for the main menu.
823 823
  */
824
-function lsx_customizer_colour__main_menu_get_css( $colors ) {
824
+function lsx_customizer_colour__main_menu_get_css($colors) {
825 825
 	global $customizer_colour_names;
826 826
 	
827 827
 	$colors_template = array();
828 828
 
829
-	foreach ( $customizer_colour_names as $key => $value ) {
829
+	foreach ($customizer_colour_names as $key => $value) {
830 830
 		$colors_template[$key] = '';
831 831
 	}
832 832
 
833
-	$colors = wp_parse_args( $colors, $colors_template );
833
+	$colors = wp_parse_args($colors, $colors_template);
834 834
 
835 835
 	$css = <<<CSS
836 836
 		/*
@@ -929,8 +929,8 @@  discard block
 block discarded – undo
929 929
 		}
930 930
 CSS;
931 931
 
932
-	$css = apply_filters( 'lsx_customizer_colour_selectors_main_menu', $css, $colors );
933
-	$css = lsx_customizer_colour__scss_to_css( $css );
932
+	$css = apply_filters('lsx_customizer_colour_selectors_main_menu', $css, $colors);
933
+	$css = lsx_customizer_colour__scss_to_css($css);
934 934
 	return $css;
935 935
 }
936 936
 
@@ -943,33 +943,33 @@  discard block
 block discarded – undo
943 943
  */
944 944
 function lsx_customizer_colour__banner_set_theme_mod() {
945 945
 	$theme_mods = lsx_customizer_colour__banner_get_theme_mods();
946
-	$styles     = lsx_customizer_colour__banner_get_css( $theme_mods );
946
+	$styles     = lsx_customizer_colour__banner_get_css($theme_mods);
947 947
 	
948
-	set_theme_mod( 'lsx_customizer_colour__banner_theme_mod', $styles );
948
+	set_theme_mod('lsx_customizer_colour__banner_theme_mod', $styles);
949 949
 }
950
-add_action( 'after_switch_theme',   'lsx_customizer_colour__banner_set_theme_mod' );
951
-add_action( 'customize_save_after', 'lsx_customizer_colour__banner_set_theme_mod' );
950
+add_action('after_switch_theme', 'lsx_customizer_colour__banner_set_theme_mod');
951
+add_action('customize_save_after', 'lsx_customizer_colour__banner_set_theme_mod');
952 952
 
953 953
 /**
954 954
  * Enqueues front-end CSS for the banner.
955 955
  */
956 956
 function lsx_customizer_colour__banner_css() {
957
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__banner_theme_mod' );
957
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__banner_theme_mod');
958 958
 	
959
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
959
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
960 960
 		$theme_mods = lsx_customizer_colour__banner_get_theme_mods();
961
-		$styles     = lsx_customizer_colour__banner_get_css( $theme_mods );
961
+		$styles     = lsx_customizer_colour__banner_get_css($theme_mods);
962 962
 		
963
-		if ( false === $styles_from_theme_mod ) {
964
-			set_theme_mod( 'lsx_customizer_colour__banner_theme_mod', $styles );
963
+		if (false === $styles_from_theme_mod) {
964
+			set_theme_mod('lsx_customizer_colour__banner_theme_mod', $styles);
965 965
 		}
966 966
 	} else {
967 967
 		$styles = $styles_from_theme_mod;
968 968
 	}
969 969
 
970
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
970
+	wp_add_inline_style('lsx_customizer_colour', $styles);
971 971
 }
972
-add_action( 'wp_footer', 'lsx_customizer_colour__banner_css', 12 );
972
+add_action('wp_footer', 'lsx_customizer_colour__banner_css', 12);
973 973
 
974 974
 /**
975 975
  * Get banner CSS theme mods.
@@ -981,31 +981,31 @@  discard block
 block discarded – undo
981 981
 	$colors       = array();
982 982
 	$counter      = 0;
983 983
 
984
-	foreach ( $customizer_colour_names as $key => $value ) {
984
+	foreach ($customizer_colour_names as $key => $value) {
985 985
 		$colors[$key] = $color_scheme[$counter];
986 986
 		$counter++;
987 987
 	}
988 988
 
989 989
 	return array(
990
-		'banner_background_color' => get_theme_mod( 'banner_background_color', $colors['banner_background_color'] ),
991
-		'banner_text_color' =>       get_theme_mod( 'banner_text_color',       $colors['banner_text_color'] ),
992
-		'banner_text_image_color' => get_theme_mod( 'banner_text_image_color', $colors['banner_text_image_color'] )
990
+		'banner_background_color' => get_theme_mod('banner_background_color', $colors['banner_background_color']),
991
+		'banner_text_color' =>       get_theme_mod('banner_text_color', $colors['banner_text_color']),
992
+		'banner_text_image_color' => get_theme_mod('banner_text_image_color', $colors['banner_text_image_color'])
993 993
 	);
994 994
 }
995 995
 
996 996
 /**
997 997
  * Returns CSS for the banner.
998 998
  */
999
-function lsx_customizer_colour__banner_get_css( $colors ) {
999
+function lsx_customizer_colour__banner_get_css($colors) {
1000 1000
 	global $customizer_colour_names;
1001 1001
 	
1002 1002
 	$colors_template = array();
1003 1003
 
1004
-	foreach ( $customizer_colour_names as $key => $value ) {
1004
+	foreach ($customizer_colour_names as $key => $value) {
1005 1005
 		$colors_template[$key] = '';
1006 1006
 	}
1007 1007
 
1008
-	$colors = wp_parse_args( $colors, $colors_template );
1008
+	$colors = wp_parse_args($colors, $colors_template);
1009 1009
 
1010 1010
 	$css = <<<CSS
1011 1011
 		/*
@@ -1034,8 +1034,8 @@  discard block
 block discarded – undo
1034 1034
 		}
1035 1035
 CSS;
1036 1036
 
1037
-	$css = apply_filters( 'lsx_customizer_colour_selectors_banner', $css, $colors );
1038
-	$css = lsx_customizer_colour__scss_to_css( $css );
1037
+	$css = apply_filters('lsx_customizer_colour_selectors_banner', $css, $colors);
1038
+	$css = lsx_customizer_colour__scss_to_css($css);
1039 1039
 	return $css;
1040 1040
 }
1041 1041
 
@@ -1048,33 +1048,33 @@  discard block
 block discarded – undo
1048 1048
  */
1049 1049
 function lsx_customizer_colour__body_set_theme_mod() {
1050 1050
 	$theme_mods = lsx_customizer_colour__body_get_theme_mods();
1051
-	$styles     = lsx_customizer_colour__body_get_css( $theme_mods );
1051
+	$styles     = lsx_customizer_colour__body_get_css($theme_mods);
1052 1052
 	
1053
-	set_theme_mod( 'lsx_customizer_colour__body_theme_mod', $styles );
1053
+	set_theme_mod('lsx_customizer_colour__body_theme_mod', $styles);
1054 1054
 }
1055
-add_action( 'after_switch_theme',   'lsx_customizer_colour__body_set_theme_mod' );
1056
-add_action( 'customize_save_after', 'lsx_customizer_colour__body_set_theme_mod' );
1055
+add_action('after_switch_theme', 'lsx_customizer_colour__body_set_theme_mod');
1056
+add_action('customize_save_after', 'lsx_customizer_colour__body_set_theme_mod');
1057 1057
 
1058 1058
 /**
1059 1059
  * Enqueues front-end CSS for the body.
1060 1060
  */
1061 1061
 function lsx_customizer_colour__body_css() {
1062
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__body_theme_mod' );
1062
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__body_theme_mod');
1063 1063
 	
1064
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
1064
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
1065 1065
 		$theme_mods = lsx_customizer_colour__body_get_theme_mods();
1066
-		$styles     = lsx_customizer_colour__body_get_css( $theme_mods );
1066
+		$styles     = lsx_customizer_colour__body_get_css($theme_mods);
1067 1067
 		
1068
-		if ( false === $styles_from_theme_mod ) {
1069
-			set_theme_mod( 'lsx_customizer_colour__body_theme_mod', $styles );
1068
+		if (false === $styles_from_theme_mod) {
1069
+			set_theme_mod('lsx_customizer_colour__body_theme_mod', $styles);
1070 1070
 		}
1071 1071
 	} else {
1072 1072
 		$styles = $styles_from_theme_mod;
1073 1073
 	}
1074 1074
 
1075
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
1075
+	wp_add_inline_style('lsx_customizer_colour', $styles);
1076 1076
 }
1077
-add_action( 'wp_footer', 'lsx_customizer_colour__body_css', 12 );
1077
+add_action('wp_footer', 'lsx_customizer_colour__body_css', 12);
1078 1078
 
1079 1079
 /**
1080 1080
  * Get body CSS theme mods.
@@ -1086,36 +1086,36 @@  discard block
 block discarded – undo
1086 1086
 	$colors       = array();
1087 1087
 	$counter      = 0;
1088 1088
 
1089
-	foreach ( $customizer_colour_names as $key => $value ) {
1089
+	foreach ($customizer_colour_names as $key => $value) {
1090 1090
 		$colors[$key] = $color_scheme[$counter];
1091 1091
 		$counter++;
1092 1092
 	}
1093 1093
 
1094 1094
 	return array(
1095
-		'body_background_color' =>   get_theme_mod( 'body_background_color',   $colors['body_background_color'] ),
1096
-		'body_line_color' =>         get_theme_mod( 'body_line_color',         $colors['body_line_color'] ),
1097
-		'body_text_heading_color' => get_theme_mod( 'body_text_heading_color', $colors['body_text_heading_color'] ),
1098
-		'body_text_color' =>         get_theme_mod( 'body_text_color',         $colors['body_text_color'] ),
1099
-		'body_link_color' =>         get_theme_mod( 'body_link_color',         $colors['body_link_color'] ),
1100
-		'body_link_hover_color' =>   get_theme_mod( 'body_link_hover_color',   $colors['body_link_hover_color'] )
1095
+		'body_background_color' =>   get_theme_mod('body_background_color', $colors['body_background_color']),
1096
+		'body_line_color' =>         get_theme_mod('body_line_color', $colors['body_line_color']),
1097
+		'body_text_heading_color' => get_theme_mod('body_text_heading_color', $colors['body_text_heading_color']),
1098
+		'body_text_color' =>         get_theme_mod('body_text_color', $colors['body_text_color']),
1099
+		'body_link_color' =>         get_theme_mod('body_link_color', $colors['body_link_color']),
1100
+		'body_link_hover_color' =>   get_theme_mod('body_link_hover_color', $colors['body_link_hover_color'])
1101 1101
 	);
1102 1102
 }
1103 1103
 
1104 1104
 /**
1105 1105
  * Returns CSS for the body.
1106 1106
  */
1107
-function lsx_customizer_colour__body_get_css( $colors ) {
1107
+function lsx_customizer_colour__body_get_css($colors) {
1108 1108
 	global $customizer_colour_names;
1109 1109
 	
1110 1110
 	$colors_template = array();
1111 1111
 
1112
-	foreach ( $customizer_colour_names as $key => $value ) {
1112
+	foreach ($customizer_colour_names as $key => $value) {
1113 1113
 		$colors_template[$key] = '';
1114 1114
 	}
1115 1115
 
1116
-	$colors = wp_parse_args( $colors, $colors_template );
1116
+	$colors = wp_parse_args($colors, $colors_template);
1117 1117
 
1118
-	$rgb = lsx_customizer_colour__hex2rgb( $colors['body_line_color'] );
1118
+	$rgb = lsx_customizer_colour__hex2rgb($colors['body_line_color']);
1119 1119
 	$colors['body_line_color_rgba'] = "rgba({$rgb['red']}, {$rgb['green']}, {$rgb['blue']}, 0.5)";
1120 1120
 
1121 1121
 	$css = <<<CSS
@@ -1350,8 +1350,8 @@  discard block
 block discarded – undo
1350 1350
 		}
1351 1351
 CSS;
1352 1352
 
1353
-	$css = apply_filters( 'lsx_customizer_colour_selectors_body', $css, $colors );
1354
-	$css = lsx_customizer_colour__scss_to_css( $css );
1353
+	$css = apply_filters('lsx_customizer_colour_selectors_body', $css, $colors);
1354
+	$css = lsx_customizer_colour__scss_to_css($css);
1355 1355
 	return $css;
1356 1356
 }
1357 1357
 
@@ -1364,33 +1364,33 @@  discard block
 block discarded – undo
1364 1364
  */
1365 1365
 function lsx_customizer_colour__footer_cta_set_theme_mod() {
1366 1366
 	$theme_mods = lsx_customizer_colour__footer_cta_get_theme_mods();
1367
-	$styles     = lsx_customizer_colour__footer_cta_get_css( $theme_mods );
1367
+	$styles     = lsx_customizer_colour__footer_cta_get_css($theme_mods);
1368 1368
 	
1369
-	set_theme_mod( 'lsx_customizer_colour__footer_cta_theme_mod', $styles );
1369
+	set_theme_mod('lsx_customizer_colour__footer_cta_theme_mod', $styles);
1370 1370
 }
1371
-add_action( 'after_switch_theme',   'lsx_customizer_colour__footer_cta_set_theme_mod' );
1372
-add_action( 'customize_save_after', 'lsx_customizer_colour__footer_cta_set_theme_mod' );
1371
+add_action('after_switch_theme', 'lsx_customizer_colour__footer_cta_set_theme_mod');
1372
+add_action('customize_save_after', 'lsx_customizer_colour__footer_cta_set_theme_mod');
1373 1373
 
1374 1374
 /**
1375 1375
  * Enqueues front-end CSS for the footer cta.
1376 1376
  */
1377 1377
 function lsx_customizer_colour__footer_cta_css() {
1378
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__footer_cta_theme_mod' );
1378
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__footer_cta_theme_mod');
1379 1379
 	
1380
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
1380
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
1381 1381
 		$theme_mods = lsx_customizer_colour__footer_cta_get_theme_mods();
1382
-		$styles     = lsx_customizer_colour__footer_cta_get_css( $theme_mods );
1382
+		$styles     = lsx_customizer_colour__footer_cta_get_css($theme_mods);
1383 1383
 		
1384
-		if ( false === $styles_from_theme_mod ) {
1385
-			set_theme_mod( 'lsx_customizer_colour__footer_cta_theme_mod', $styles );
1384
+		if (false === $styles_from_theme_mod) {
1385
+			set_theme_mod('lsx_customizer_colour__footer_cta_theme_mod', $styles);
1386 1386
 		}
1387 1387
 	} else {
1388 1388
 		$styles = $styles_from_theme_mod;
1389 1389
 	}
1390 1390
 
1391
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
1391
+	wp_add_inline_style('lsx_customizer_colour', $styles);
1392 1392
 }
1393
-add_action( 'wp_footer', 'lsx_customizer_colour__footer_cta_css', 12 );
1393
+add_action('wp_footer', 'lsx_customizer_colour__footer_cta_css', 12);
1394 1394
 
1395 1395
 /**
1396 1396
  * Get footer cta CSS theme mods.
@@ -1402,32 +1402,32 @@  discard block
 block discarded – undo
1402 1402
 	$colors       = array();
1403 1403
 	$counter      = 0;
1404 1404
 
1405
-	foreach ( $customizer_colour_names as $key => $value ) {
1405
+	foreach ($customizer_colour_names as $key => $value) {
1406 1406
 		$colors[$key] = $color_scheme[$counter];
1407 1407
 		$counter++;
1408 1408
 	}
1409 1409
 
1410 1410
 	return array(
1411
-		'footer_cta_background_color' => get_theme_mod( 'footer_cta_background_color', $colors['footer_cta_background_color'] ),
1412
-		'footer_cta_text_color'       => get_theme_mod( 'footer_cta_text_color',       $colors['footer_cta_text_color'] ),
1413
-		'footer_cta_link_color'       => get_theme_mod( 'footer_cta_link_color',       $colors['footer_cta_link_color'] ),
1414
-		'footer_cta_link_hover_color' => get_theme_mod( 'footer_cta_link_hover_color', $colors['footer_cta_link_hover_color'] )
1411
+		'footer_cta_background_color' => get_theme_mod('footer_cta_background_color', $colors['footer_cta_background_color']),
1412
+		'footer_cta_text_color'       => get_theme_mod('footer_cta_text_color', $colors['footer_cta_text_color']),
1413
+		'footer_cta_link_color'       => get_theme_mod('footer_cta_link_color', $colors['footer_cta_link_color']),
1414
+		'footer_cta_link_hover_color' => get_theme_mod('footer_cta_link_hover_color', $colors['footer_cta_link_hover_color'])
1415 1415
 	);
1416 1416
 }
1417 1417
 
1418 1418
 /**
1419 1419
  * Returns CSS for the footer cta.
1420 1420
  */
1421
-function lsx_customizer_colour__footer_cta_get_css( $colors ) {
1421
+function lsx_customizer_colour__footer_cta_get_css($colors) {
1422 1422
 	global $customizer_colour_names;
1423 1423
 	
1424 1424
 	$colors_template = array();
1425 1425
 
1426
-	foreach ( $customizer_colour_names as $key => $value ) {
1426
+	foreach ($customizer_colour_names as $key => $value) {
1427 1427
 		$colors_template[$key] = '';
1428 1428
 	}
1429 1429
 
1430
-	$colors = wp_parse_args( $colors, $colors_template );
1430
+	$colors = wp_parse_args($colors, $colors_template);
1431 1431
 
1432 1432
 	$css = <<<CSS
1433 1433
 		/*
@@ -1462,8 +1462,8 @@  discard block
 block discarded – undo
1462 1462
 		}
1463 1463
 CSS;
1464 1464
 
1465
-	$css = apply_filters( 'lsx_customizer_colour_selectors_footer_cta', $css, $colors );
1466
-	$css = lsx_customizer_colour__scss_to_css( $css );
1465
+	$css = apply_filters('lsx_customizer_colour_selectors_footer_cta', $css, $colors);
1466
+	$css = lsx_customizer_colour__scss_to_css($css);
1467 1467
 	return $css;
1468 1468
 }
1469 1469
 
@@ -1475,33 +1475,33 @@  discard block
 block discarded – undo
1475 1475
  */
1476 1476
 function lsx_customizer_colour__footer_widgets_set_theme_mod() {
1477 1477
 	$theme_mods = lsx_customizer_colour__footer_widgets_get_theme_mods();
1478
-	$styles     = lsx_customizer_colour__footer_widgets_get_css( $theme_mods );
1478
+	$styles     = lsx_customizer_colour__footer_widgets_get_css($theme_mods);
1479 1479
 	
1480
-	set_theme_mod( 'lsx_customizer_colour__footer_widgets_theme_mod', $styles );
1480
+	set_theme_mod('lsx_customizer_colour__footer_widgets_theme_mod', $styles);
1481 1481
 }
1482
-add_action( 'after_switch_theme',   'lsx_customizer_colour__footer_widgets_set_theme_mod' );
1483
-add_action( 'customize_save_after', 'lsx_customizer_colour__footer_widgets_set_theme_mod' );
1482
+add_action('after_switch_theme', 'lsx_customizer_colour__footer_widgets_set_theme_mod');
1483
+add_action('customize_save_after', 'lsx_customizer_colour__footer_widgets_set_theme_mod');
1484 1484
 
1485 1485
 /**
1486 1486
  * Enqueues front-end CSS for the footer widgets.
1487 1487
  */
1488 1488
 function lsx_customizer_colour__footer_widgets_css() {
1489
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__footer_widgets_theme_mod' );
1489
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__footer_widgets_theme_mod');
1490 1490
 	
1491
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
1491
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
1492 1492
 		$theme_mods = lsx_customizer_colour__footer_widgets_get_theme_mods();
1493
-		$styles     = lsx_customizer_colour__footer_widgets_get_css( $theme_mods );
1493
+		$styles     = lsx_customizer_colour__footer_widgets_get_css($theme_mods);
1494 1494
 		
1495
-		if ( false === $styles_from_theme_mod ) {
1496
-			set_theme_mod( 'lsx_customizer_colour__footer_widgets_theme_mod', $styles );
1495
+		if (false === $styles_from_theme_mod) {
1496
+			set_theme_mod('lsx_customizer_colour__footer_widgets_theme_mod', $styles);
1497 1497
 		}
1498 1498
 	} else {
1499 1499
 		$styles = $styles_from_theme_mod;
1500 1500
 	}
1501 1501
 
1502
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
1502
+	wp_add_inline_style('lsx_customizer_colour', $styles);
1503 1503
 }
1504
-add_action( 'wp_footer', 'lsx_customizer_colour__footer_widgets_css', 12 );
1504
+add_action('wp_footer', 'lsx_customizer_colour__footer_widgets_css', 12);
1505 1505
 
1506 1506
 /**
1507 1507
  * Get footer widgets CSS theme mods.
@@ -1513,32 +1513,32 @@  discard block
 block discarded – undo
1513 1513
 	$colors       = array();
1514 1514
 	$counter      = 0;
1515 1515
 
1516
-	foreach ( $customizer_colour_names as $key => $value ) {
1516
+	foreach ($customizer_colour_names as $key => $value) {
1517 1517
 		$colors[$key] = $color_scheme[$counter];
1518 1518
 		$counter++;
1519 1519
 	}
1520 1520
 
1521 1521
 	return array(
1522
-		'footer_widgets_background_color' => get_theme_mod( 'footer_widgets_background_color', $colors['footer_widgets_background_color'] ),
1523
-		'footer_widgets_text_color'       => get_theme_mod( 'footer_widgets_text_color',       $colors['footer_widgets_text_color'] ),
1524
-		'footer_widgets_link_color'       => get_theme_mod( 'footer_widgets_link_color',       $colors['footer_widgets_link_color'] ),
1525
-		'footer_widgets_link_hover_color' => get_theme_mod( 'footer_widgets_link_hover_color', $colors['footer_widgets_link_hover_color'] )
1522
+		'footer_widgets_background_color' => get_theme_mod('footer_widgets_background_color', $colors['footer_widgets_background_color']),
1523
+		'footer_widgets_text_color'       => get_theme_mod('footer_widgets_text_color', $colors['footer_widgets_text_color']),
1524
+		'footer_widgets_link_color'       => get_theme_mod('footer_widgets_link_color', $colors['footer_widgets_link_color']),
1525
+		'footer_widgets_link_hover_color' => get_theme_mod('footer_widgets_link_hover_color', $colors['footer_widgets_link_hover_color'])
1526 1526
 	);
1527 1527
 }
1528 1528
 
1529 1529
 /**
1530 1530
  * Returns CSS for the footer widgets.
1531 1531
  */
1532
-function lsx_customizer_colour__footer_widgets_get_css( $colors ) {
1532
+function lsx_customizer_colour__footer_widgets_get_css($colors) {
1533 1533
 	global $customizer_colour_names;
1534 1534
 	
1535 1535
 	$colors_template = array();
1536 1536
 
1537
-	foreach ( $customizer_colour_names as $key => $value ) {
1537
+	foreach ($customizer_colour_names as $key => $value) {
1538 1538
 		$colors_template[$key] = '';
1539 1539
 	}
1540 1540
 
1541
-	$colors = wp_parse_args( $colors, $colors_template );
1541
+	$colors = wp_parse_args($colors, $colors_template);
1542 1542
 
1543 1543
 	$css = <<<CSS
1544 1544
 		/*
@@ -1577,8 +1577,8 @@  discard block
 block discarded – undo
1577 1577
 		}
1578 1578
 CSS;
1579 1579
 
1580
-	$css = apply_filters( 'lsx_customizer_colour_selectors_footer_widgets', $css, $colors );
1581
-	$css = lsx_customizer_colour__scss_to_css( $css );
1580
+	$css = apply_filters('lsx_customizer_colour_selectors_footer_widgets', $css, $colors);
1581
+	$css = lsx_customizer_colour__scss_to_css($css);
1582 1582
 	return $css;
1583 1583
 }
1584 1584
 
@@ -1590,33 +1590,33 @@  discard block
 block discarded – undo
1590 1590
  */
1591 1591
 function lsx_customizer_colour__footer_set_theme_mod() {
1592 1592
 	$theme_mods = lsx_customizer_colour__footer_get_theme_mods();
1593
-	$styles     = lsx_customizer_colour__footer_get_css( $theme_mods );
1593
+	$styles     = lsx_customizer_colour__footer_get_css($theme_mods);
1594 1594
 	
1595
-	set_theme_mod( 'lsx_customizer_colour__footer_theme_mod', $styles );
1595
+	set_theme_mod('lsx_customizer_colour__footer_theme_mod', $styles);
1596 1596
 }
1597
-add_action( 'after_switch_theme',   'lsx_customizer_colour__footer_set_theme_mod' );
1598
-add_action( 'customize_save_after', 'lsx_customizer_colour__footer_set_theme_mod' );
1597
+add_action('after_switch_theme', 'lsx_customizer_colour__footer_set_theme_mod');
1598
+add_action('customize_save_after', 'lsx_customizer_colour__footer_set_theme_mod');
1599 1599
 
1600 1600
 /**
1601 1601
  * Enqueues front-end CSS for the footer.
1602 1602
  */
1603 1603
 function lsx_customizer_colour__footer_css() {
1604
-	$styles_from_theme_mod = get_theme_mod( 'lsx_customizer_colour__footer_theme_mod' );
1604
+	$styles_from_theme_mod = get_theme_mod('lsx_customizer_colour__footer_theme_mod');
1605 1605
 
1606
-	if ( is_customize_preview() || false === $styles_from_theme_mod ) {
1606
+	if (is_customize_preview() || false === $styles_from_theme_mod) {
1607 1607
 		$theme_mods = lsx_customizer_colour__footer_get_theme_mods();
1608
-		$styles     = lsx_customizer_colour__footer_get_css( $theme_mods );
1608
+		$styles     = lsx_customizer_colour__footer_get_css($theme_mods);
1609 1609
 		
1610
-		if ( false === $styles_from_theme_mod ) {
1611
-			set_theme_mod( 'lsx_customizer_colour__footer_theme_mod', $styles );
1610
+		if (false === $styles_from_theme_mod) {
1611
+			set_theme_mod('lsx_customizer_colour__footer_theme_mod', $styles);
1612 1612
 		}
1613 1613
 	} else {
1614 1614
 		$styles = $styles_from_theme_mod;
1615 1615
 	}
1616 1616
 
1617
-	wp_add_inline_style( 'lsx_customizer_colour', $styles );
1617
+	wp_add_inline_style('lsx_customizer_colour', $styles);
1618 1618
 }
1619
-add_action( 'wp_footer', 'lsx_customizer_colour__footer_css', 12 );
1619
+add_action('wp_footer', 'lsx_customizer_colour__footer_css', 12);
1620 1620
 
1621 1621
 /**
1622 1622
  * Get footer CSS theme mods.
@@ -1628,32 +1628,32 @@  discard block
 block discarded – undo
1628 1628
 	$colors       = array();
1629 1629
 	$counter      = 0;
1630 1630
 
1631
-	foreach ( $customizer_colour_names as $key => $value ) {
1631
+	foreach ($customizer_colour_names as $key => $value) {
1632 1632
 		$colors[$key] = $color_scheme[$counter];
1633 1633
 		$counter++;
1634 1634
 	}
1635 1635
 
1636 1636
 	return array(
1637
-		'footer_background_color' => get_theme_mod( 'footer_background_color', $colors['footer_background_color'] ),
1638
-		'footer_text_color'       => get_theme_mod( 'footer_text_color',       $colors['footer_text_color'] ),
1639
-		'footer_link_color'       => get_theme_mod( 'footer_link_color',       $colors['footer_link_color'] ),
1640
-		'footer_link_hover_color' => get_theme_mod( 'footer_link_hover_color', $colors['footer_link_hover_color'] )
1637
+		'footer_background_color' => get_theme_mod('footer_background_color', $colors['footer_background_color']),
1638
+		'footer_text_color'       => get_theme_mod('footer_text_color', $colors['footer_text_color']),
1639
+		'footer_link_color'       => get_theme_mod('footer_link_color', $colors['footer_link_color']),
1640
+		'footer_link_hover_color' => get_theme_mod('footer_link_hover_color', $colors['footer_link_hover_color'])
1641 1641
 	);
1642 1642
 }
1643 1643
 
1644 1644
 /**
1645 1645
  * Returns CSS for the footer.
1646 1646
  */
1647
-function lsx_customizer_colour__footer_get_css( $colors ) {
1647
+function lsx_customizer_colour__footer_get_css($colors) {
1648 1648
 	global $customizer_colour_names;
1649 1649
 	
1650 1650
 	$colors_template = array();
1651 1651
 
1652
-	foreach ( $customizer_colour_names as $key => $value ) {
1652
+	foreach ($customizer_colour_names as $key => $value) {
1653 1653
 		$colors_template[$key] = '';
1654 1654
 	}
1655 1655
 
1656
-	$colors = wp_parse_args( $colors, $colors_template );
1656
+	$colors = wp_parse_args($colors, $colors_template);
1657 1657
 
1658 1658
 	$css = <<<CSS
1659 1659
 		/*
@@ -1693,8 +1693,8 @@  discard block
 block discarded – undo
1693 1693
 		}
1694 1694
 CSS;
1695 1695
 
1696
-	$css = apply_filters( 'lsx_customizer_colour_selectors_footer', $css, $colors );
1697
-	$css = lsx_customizer_colour__scss_to_css( $css );
1696
+	$css = apply_filters('lsx_customizer_colour_selectors_footer', $css, $colors);
1697
+	$css = lsx_customizer_colour__scss_to_css($css);
1698 1698
 	return $css;
1699 1699
 }
1700 1700
 
@@ -1706,7 +1706,7 @@  discard block
 block discarded – undo
1706 1706
  * Customize Colour Control Class
1707 1707
  */
1708 1708
 
1709
-if ( ! class_exists( 'WP_Customize_Control' ) ) {
1709
+if ( ! class_exists('WP_Customize_Control')) {
1710 1710
 	return;
1711 1711
 }
1712 1712
 
@@ -1716,37 +1716,37 @@  discard block
 block discarded – undo
1716 1716
 	 * Enqueue control related scripts/styles.
1717 1717
 	 */
1718 1718
 	public function enqueue() {
1719
-		wp_enqueue_script( 'lsx-colour-control', get_template_directory_uri() .'/js/customizer-colour.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), null, true );
1720
-		wp_localize_script( 'lsx-colour-control', 'colorScheme', $this->choices );
1719
+		wp_enqueue_script('lsx-colour-control', get_template_directory_uri() . '/js/customizer-colour.js', array('customize-controls', 'iris', 'underscore', 'wp-util'), null, true);
1720
+		wp_localize_script('lsx-colour-control', 'colorScheme', $this->choices);
1721 1721
 
1722 1722
 		global $customizer_colour_names;
1723 1723
 		$colors = array();
1724
-		foreach ( $customizer_colour_names as $key => $value ) {
1724
+		foreach ($customizer_colour_names as $key => $value) {
1725 1725
 			$colors[] = $key;
1726 1726
 		}
1727
-		wp_localize_script( 'lsx-colour-control', 'colorSchemeKeys', $colors );
1727
+		wp_localize_script('lsx-colour-control', 'colorSchemeKeys', $colors);
1728 1728
 	}
1729 1729
 
1730 1730
 	/**
1731 1731
 	 * Render the control's content.
1732 1732
 	 */
1733 1733
 	public function render_content() {
1734
-		if ( empty( $this->choices ) ) {
1734
+		if (empty($this->choices)) {
1735 1735
 			return;
1736 1736
 		}
1737 1737
 
1738 1738
 		?> 
1739 1739
 		<label>
1740
-			<?php if ( ! empty( $this->label ) ) { ?>
1741
-				<span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span>
1740
+			<?php if ( ! empty($this->label)) { ?>
1741
+				<span class="customize-control-title"><?php echo esc_html($this->label) ?></span>
1742 1742
 			<?php }
1743
-			if ( ! empty( $this->description ) ) { ?>
1744
-				<span class="description customize-control-description"><?php echo esc_html( $this->description ) ?></span>
1743
+			if ( ! empty($this->description)) { ?>
1744
+				<span class="description customize-control-description"><?php echo esc_html($this->description) ?></span>
1745 1745
 			<?php } ?>
1746 1746
 			<select <?php $this->link() ?>>
1747 1747
 				<?php
1748
-					foreach ( $this->choices as $value => $label ) {
1749
-						echo '<option value="'. esc_attr( $value ) .'"'. selected( $this->value(), $value, false ) .'>'. esc_html( $label['label'] ) .'</option>';
1748
+					foreach ($this->choices as $value => $label) {
1749
+						echo '<option value="' . esc_attr($value) . '"' . selected($this->value(), $value, false) . '>' . esc_html($label['label']) . '</option>';
1750 1750
 					}
1751 1751
 				?>
1752 1752
 			</select>
Please login to merge, or discard this patch.
inc/customizer-colour-options.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -1,66 +1,66 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 global $customizer_colour_names;
5 5
 global $customizer_colour_choices;
6 6
 
7
-$customizer_colour_names = apply_filters( 'lsx_customizer_colour_names', array(
8
-	'button_background_color'           => esc_html__( 'BUTTON: Background', 'lsx' ),
9
-	'button_background_hover_color'     => esc_html__( 'BUTTON: Background (hover)', 'lsx' ),
10
-	'button_text_color'                 => esc_html__( 'BUTTON: Text', 'lsx' ),
11
-	'button_text_color_hover'           => esc_html__( 'BUTTON: Text (hover)', 'lsx' ),
7
+$customizer_colour_names = apply_filters('lsx_customizer_colour_names', array(
8
+	'button_background_color'           => esc_html__('BUTTON: Background', 'lsx'),
9
+	'button_background_hover_color'     => esc_html__('BUTTON: Background (hover)', 'lsx'),
10
+	'button_text_color'                 => esc_html__('BUTTON: Text', 'lsx'),
11
+	'button_text_color_hover'           => esc_html__('BUTTON: Text (hover)', 'lsx'),
12 12
 
13
-	'button_cta_background_color'       => esc_html__( 'BUTTON CTA: Background', 'lsx' ),
14
-	'button_cta_background_hover_color' => esc_html__( 'BUTTON CTA: Background (hover)', 'lsx' ),
15
-	'button_cta_text_color'             => esc_html__( 'BUTTON CTA: Text', 'lsx' ),
16
-	'button_cta_text_color_hover'       => esc_html__( 'BUTTON CTA: Text (hover)', 'lsx' ),
13
+	'button_cta_background_color'       => esc_html__('BUTTON CTA: Background', 'lsx'),
14
+	'button_cta_background_hover_color' => esc_html__('BUTTON CTA: Background (hover)', 'lsx'),
15
+	'button_cta_text_color'             => esc_html__('BUTTON CTA: Text', 'lsx'),
16
+	'button_cta_text_color_hover'       => esc_html__('BUTTON CTA: Text (hover)', 'lsx'),
17 17
 
18
-	'top_menu_background_color'         => esc_html__( 'TOP MENU: Background', 'lsx' ),
19
-	'top_menu_text_color'               => esc_html__( 'TOP MENU: Text', 'lsx' ),
20
-	'top_menu_text_hover_color'         => esc_html__( 'TOP MENU: Text (hover)', 'lsx' ),
18
+	'top_menu_background_color'         => esc_html__('TOP MENU: Background', 'lsx'),
19
+	'top_menu_text_color'               => esc_html__('TOP MENU: Text', 'lsx'),
20
+	'top_menu_text_hover_color'         => esc_html__('TOP MENU: Text (hover)', 'lsx'),
21 21
 
22
-	'header_background_color'           => esc_html__( 'HEADER: Background', 'lsx' ),
23
-	'header_title_color'                => esc_html__( 'HEADER: Title', 'lsx' ),
24
-	'header_title_hover_color'          => esc_html__( 'HEADER: Title (hover)', 'lsx' ),
25
-	'header_description_color'          => esc_html__( 'HEADER: Description', 'lsx' ),
22
+	'header_background_color'           => esc_html__('HEADER: Background', 'lsx'),
23
+	'header_title_color'                => esc_html__('HEADER: Title', 'lsx'),
24
+	'header_title_hover_color'          => esc_html__('HEADER: Title (hover)', 'lsx'),
25
+	'header_description_color'          => esc_html__('HEADER: Description', 'lsx'),
26 26
 
27
-	'main_menu_background_hover1_color' => esc_html__( 'MENU: Background (L1 hover)', 'lsx' ),
28
-	'main_menu_background_hover2_color' => esc_html__( 'MENU: Background (L2 hover)', 'lsx' ),
29
-	'main_menu_text_color'              => esc_html__( 'MENU: Text (L1)', 'lsx' ),
30
-	'main_menu_text_hover1_color'       => esc_html__( 'MENU: Text (L1 hover)', 'lsx' ),
31
-	'main_menu_text_hover2_color'       => esc_html__( 'MENU: Text (L2 hover)', 'lsx' ),
27
+	'main_menu_background_hover1_color' => esc_html__('MENU: Background (L1 hover)', 'lsx'),
28
+	'main_menu_background_hover2_color' => esc_html__('MENU: Background (L2 hover)', 'lsx'),
29
+	'main_menu_text_color'              => esc_html__('MENU: Text (L1)', 'lsx'),
30
+	'main_menu_text_hover1_color'       => esc_html__('MENU: Text (L1 hover)', 'lsx'),
31
+	'main_menu_text_hover2_color'       => esc_html__('MENU: Text (L2 hover)', 'lsx'),
32 32
 
33
-	'banner_background_color'           => esc_html__( 'BANNER: Background', 'lsx' ),
34
-	'banner_text_color'                 => esc_html__( 'BANNER: Text', 'lsx' ),
35
-	'banner_text_image_color'           => esc_html__( 'BANNER: Text (over image)', 'lsx' ),
33
+	'banner_background_color'           => esc_html__('BANNER: Background', 'lsx'),
34
+	'banner_text_color'                 => esc_html__('BANNER: Text', 'lsx'),
35
+	'banner_text_image_color'           => esc_html__('BANNER: Text (over image)', 'lsx'),
36 36
 
37
-	'body_background_color'             => esc_html__( 'BODY: Background', 'lsx' ),
38
-	'body_line_color'                   => esc_html__( 'BODY: Line', 'lsx' ),
39
-	'body_text_heading_color'           => esc_html__( 'BODY: Text (heading)', 'lsx' ),
40
-	'body_text_color'                   => esc_html__( 'BODY: Text', 'lsx' ),
41
-	'body_link_color'                   => esc_html__( 'BODY: Link', 'lsx' ),
42
-	'body_link_hover_color'             => esc_html__( 'BODY: Link (hover)', 'lsx' ),
37
+	'body_background_color'             => esc_html__('BODY: Background', 'lsx'),
38
+	'body_line_color'                   => esc_html__('BODY: Line', 'lsx'),
39
+	'body_text_heading_color'           => esc_html__('BODY: Text (heading)', 'lsx'),
40
+	'body_text_color'                   => esc_html__('BODY: Text', 'lsx'),
41
+	'body_link_color'                   => esc_html__('BODY: Link', 'lsx'),
42
+	'body_link_hover_color'             => esc_html__('BODY: Link (hover)', 'lsx'),
43 43
 
44
-	'footer_cta_background_color'       => esc_html__( 'FOOTER CTA: Background', 'lsx' ),
45
-	'footer_cta_text_color'             => esc_html__( 'FOOTER CTA: Text', 'lsx' ),
46
-	'footer_cta_link_color'             => esc_html__( 'FOOTER CTA: Link', 'lsx' ),
47
-	'footer_cta_link_hover_color'       => esc_html__( 'FOOTER CTA: Link (hover)', 'lsx' ),
44
+	'footer_cta_background_color'       => esc_html__('FOOTER CTA: Background', 'lsx'),
45
+	'footer_cta_text_color'             => esc_html__('FOOTER CTA: Text', 'lsx'),
46
+	'footer_cta_link_color'             => esc_html__('FOOTER CTA: Link', 'lsx'),
47
+	'footer_cta_link_hover_color'       => esc_html__('FOOTER CTA: Link (hover)', 'lsx'),
48 48
 
49
-	'footer_widgets_background_color'   => esc_html__( 'FOOTER WIDGETS: Background', 'lsx' ),
50
-	'footer_widgets_text_color'         => esc_html__( 'FOOTER WIDGETS: Text', 'lsx' ),
51
-	'footer_widgets_link_color'         => esc_html__( 'FOOTER WIDGETS: Link', 'lsx' ),
52
-	'footer_widgets_link_hover_color'   => esc_html__( 'FOOTER WIDGETS: Link (hover)', 'lsx' ),
49
+	'footer_widgets_background_color'   => esc_html__('FOOTER WIDGETS: Background', 'lsx'),
50
+	'footer_widgets_text_color'         => esc_html__('FOOTER WIDGETS: Text', 'lsx'),
51
+	'footer_widgets_link_color'         => esc_html__('FOOTER WIDGETS: Link', 'lsx'),
52
+	'footer_widgets_link_hover_color'   => esc_html__('FOOTER WIDGETS: Link (hover)', 'lsx'),
53 53
 
54
-	'footer_background_color'           => esc_html__( 'FOOTER: Background', 'lsx' ),
55
-	'footer_text_color'                 => esc_html__( 'FOOTER: Text', 'lsx' ),
56
-	'footer_link_color'                 => esc_html__( 'FOOTER: Link', 'lsx' ),
57
-	'footer_link_hover_color'           => esc_html__( 'FOOTER: Link (hover)', 'lsx' )
58
-) );
54
+	'footer_background_color'           => esc_html__('FOOTER: Background', 'lsx'),
55
+	'footer_text_color'                 => esc_html__('FOOTER: Text', 'lsx'),
56
+	'footer_link_color'                 => esc_html__('FOOTER: Link', 'lsx'),
57
+	'footer_link_hover_color'           => esc_html__('FOOTER: Link (hover)', 'lsx')
58
+));
59 59
 
60
-$customizer_colour_choices = apply_filters( 'lsx_customizer_colour_choices', array(
60
+$customizer_colour_choices = apply_filters('lsx_customizer_colour_choices', array(
61 61
 	'default' => array(
62
-		'label'  => __( 'Default', 'lsx' ),
63
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_default', array(
62
+		'label'  => __('Default', 'lsx'),
63
+		'colors' => apply_filters('lsx_customizer_colour_choices_default', array(
64 64
 			// Button
65 65
 			'#428bca', '#2a6496', '#ffffff', '#ffffff',
66 66
 			// Button CTA
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
82 82
 			// Footer
83 83
 			'#232222', '#ffffff', '#337ab7', '#969696'
84
-		) )
84
+		))
85 85
 	),
86 86
 	'red' => array(
87
-		'label'  => __( 'Red', 'lsx' ),
88
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_red', array(
87
+		'label'  => __('Red', 'lsx'),
88
+		'colors' => apply_filters('lsx_customizer_colour_choices_red', array(
89 89
 			// Button
90 90
 			'#b64d3f', '#87291c', '#ffffff', '#ffffff',
91 91
 			// Button CTA
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
107 107
 			// Footer
108 108
 			'#232222', '#ffffff', '#b64d3f', '#969696'
109
-		) )
109
+		))
110 110
 	),
111 111
 	'orange' => array(
112
-		'label'  => __( 'Orange', 'lsx' ),
113
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_orange', array(
112
+		'label'  => __('Orange', 'lsx'),
113
+		'colors' => apply_filters('lsx_customizer_colour_choices_orange', array(
114 114
 			// Button
115 115
 			'#fbaf3f', '#e49435', '#260e03', '#260e03',
116 116
 			// Button CTA
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
131 131
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
132 132
 			// Footer
133 133
 			'#232222', '#ffffff', '#e4701e', '#969696'
134
-		) )
134
+		))
135 135
 	),
136 136
 	'green' => array(
137
-		'label'  => __( 'Green', 'lsx' ),
138
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_green', array(
137
+		'label'  => __('Green', 'lsx'),
138
+		'colors' => apply_filters('lsx_customizer_colour_choices_green', array(
139 139
 			// Button
140 140
 			'#596b46', '#3d4a30', '#ffffff', '#ffffff',
141 141
 			// Button CTA
@@ -156,11 +156,11 @@  discard block
 block discarded – undo
156 156
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
157 157
 			// Footer
158 158
 			'#232222', '#ffffff', '#596b46', '#969696'
159
-		) )
159
+		))
160 160
 	),
161 161
 	'brown' => array(
162
-		'label'  => __( 'Brown', 'lsx' ),
163
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_brown', array(
162
+		'label'  => __('Brown', 'lsx'),
163
+		'colors' => apply_filters('lsx_customizer_colour_choices_brown', array(
164 164
 			// Button
165 165
 			'#8c6a45', '#5b452e', '#ffffff', '#ffffff',
166 166
 			// Button CTA
@@ -181,6 +181,6 @@  discard block
 block discarded – undo
181 181
 			'#333333', '#eeeeee', '#dddddd', '#cccccc',
182 182
 			// Footer
183 183
 			'#232222', '#ffffff', '#8c6a45', '#969696'
184
-		) )
184
+		))
185 185
 	)
186
-) );
186
+));
Please login to merge, or discard this patch.
image.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
     <?php lsx_content_wrap_before(); ?>
12 12
  
13
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
13
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
14 14
 
15 15
 		<?php lsx_content_before(); ?>
16 16
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 			<?php lsx_content_top(); ?>
20 20
  
21
-            <?php while ( have_posts() ) : the_post(); ?>
21
+            <?php while (have_posts()) : the_post(); ?>
22 22
  
23 23
  				<?php lsx_entry_before(); ?>
24 24
  				
@@ -32,25 +32,25 @@  discard block
 block discarded – undo
32 32
                         <div class="entry-meta">
33 33
                             <?php
34 34
                                $metadata = wp_get_attachment_metadata();
35
-                                printf( wp_kses_post( '%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>' ),
36
-                                    esc_html__( 'Published', 'lsx' ),
37
-                                    esc_attr( get_the_date( 'c' ) ),
38
-                                    esc_html( get_the_date() ),
39
-                                    esc_html__( 'at', 'lsx' ),
40
-                                    esc_url( wp_get_attachment_url() ),
41
-                                    esc_attr( $metadata['width'] ),
42
-                                    esc_attr( $metadata['height'] ),
43
-                                    esc_html__( 'in', 'lsx' ),
44
-                                    esc_url( get_permalink( $post->post_parent ) ),
45
-                                    get_the_title( $post->post_parent )
35
+                                printf(wp_kses_post('%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>'),
36
+                                    esc_html__('Published', 'lsx'),
37
+                                    esc_attr(get_the_date('c')),
38
+                                    esc_html(get_the_date()),
39
+                                    esc_html__('at', 'lsx'),
40
+                                    esc_url(wp_get_attachment_url()),
41
+                                    esc_attr($metadata['width']),
42
+                                    esc_attr($metadata['height']),
43
+                                    esc_html__('in', 'lsx'),
44
+                                    esc_url(get_permalink($post->post_parent)),
45
+                                    get_the_title($post->post_parent)
46 46
                                 );
47 47
                             ?>
48
-                            <?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
48
+                            <?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="sep"> | </span> <span class="edit-link">', '</span>'); ?>
49 49
                         </div><!-- .entry-meta -->
50 50
  
51 51
                         <nav id="image-navigation" class="site-navigation">
52
-                            <span class="previous-image"><?php previous_image_link( false, '&larr; '.esc_html__( 'Previous', 'lsx' ) ); ?></span>
53
-                            <span class="next-image"><?php next_image_link( false, esc_html__( 'Next', 'lsx' ).' &rarr;' ); ?></span>
52
+                            <span class="previous-image"><?php previous_image_link(false, '&larr; ' . esc_html__('Previous', 'lsx')); ?></span>
53
+                            <span class="next-image"><?php next_image_link(false, esc_html__('Next', 'lsx') . ' &rarr;'); ?></span>
54 54
                         </nav><!-- #image-navigation -->
55 55
                     </header><!-- .entry-header -->
56 56
  
@@ -63,33 +63,33 @@  discard block
 block discarded – undo
63 63
                                      * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
64 64
                                      * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
65 65
                                      */
66
-                                    $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
67
-                                    foreach ( $attachments as $k => $attachment ) {
68
-                                        if ( $attachment->ID == $post->ID )
66
+                                    $attachments = array_values(get_children(array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID')));
67
+                                    foreach ($attachments as $k => $attachment) {
68
+                                        if ($attachment->ID == $post->ID)
69 69
                                             break;
70 70
                                     }
71 71
                                     $k++;
72 72
                                     // If there is more than 1 attachment in a gallery
73
-                                    if ( count( $attachments ) > 1 ) {
74
-                                        if ( isset( $attachments[ $k ] ) )
73
+                                    if (count($attachments) > 1) {
74
+                                        if (isset($attachments[$k]))
75 75
                                             // get the URL of the next image attachment
76
-                                            $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
76
+                                            $next_attachment_url = get_attachment_link($attachments[$k]->ID);
77 77
                                         else
78 78
                                             // or get the URL of the first image attachment
79
-                                            $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
79
+                                            $next_attachment_url = get_attachment_link($attachments[0]->ID);
80 80
                                     } else {
81 81
                                         // or, if there's only 1 image, get the URL of the image
82 82
                                         $next_attachment_url = wp_get_attachment_url();
83 83
                                     }
84 84
                                 ?>
85 85
  
86
-                                <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
87
-                                    $attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
88
-                                    echo wp_get_attachment_image( $post->ID, $attachment_size );
86
+                                <a href="<?php echo esc_url($next_attachment_url); ?>" title="<?php echo esc_attr(get_the_title()); ?>" rel="attachment"><?php
87
+                                    $attachment_size = apply_filters('shape_attachment_size', array(1200, 1200)); // Filterable image size.
88
+                                    echo wp_get_attachment_image($post->ID, $attachment_size);
89 89
                                 ?></a>
90 90
                             </div><!-- .attachment -->
91 91
  
92
-                            <?php if ( ! empty( $post->post_excerpt ) ) : ?>
92
+                            <?php if ( ! empty($post->post_excerpt)) : ?>
93 93
                             <div class="entry-caption">
94 94
                                 <?php the_excerpt(); ?>
95 95
                             </div><!-- .entry-caption -->
@@ -99,27 +99,27 @@  discard block
 block discarded – undo
99 99
                         <?php
100 100
                             the_content();
101 101
 
102
-                            wp_link_pages( array(
102
+                            wp_link_pages(array(
103 103
                                 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
104 104
                                 'after' => '</div></div>',
105 105
                                 'link_before' => '<span>',
106 106
                                 'link_after' => '</span>'
107
-                            ) );
107
+                            ));
108 108
                         ?>
109 109
  
110 110
                     </div><!-- .entry-content -->
111 111
                     
112 112
 					<footer class="entry-meta">
113 113
 						
114
-						<?php if ( ! is_single() ) : ?>
114
+						<?php if ( ! is_single()) : ?>
115 115
 							<a class="read-more" href="<?php the_permalink(); ?>">Read More</a>
116 116
 						<?php endif ?>
117 117
 				
118
-						<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
119
-						<span class="comments-link"><?php comments_popup_link( esc_html__( 'Leave a comment', 'lsx' ), esc_html__( '1 Comment', 'lsx' ), esc_html__( '% Comments', 'lsx' ) ); ?></span>
118
+						<?php if ( ! post_password_required() && (comments_open() || '0' != get_comments_number())) : ?>
119
+						<span class="comments-link"><?php comments_popup_link(esc_html__('Leave a comment', 'lsx'), esc_html__('1 Comment', 'lsx'), esc_html__('% Comments', 'lsx')); ?></span>
120 120
 						<?php endif; ?>			
121 121
 				
122
-						<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
122
+						<?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
123 123
 					</footer><!-- .entry-meta -->                    
124 124
  
125 125
  				<?php lsx_entry_bottom(); ?>
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
  
129 129
 				<?php
130 130
 					// If comments are open or we have at least one comment, load up the comment template
131
-					if ( comments_open() || '0' != get_comments_number() ) :
131
+					if (comments_open() || '0' != get_comments_number()) :
132 132
 						comments_template();
133 133
 					endif;
134 134
 				?>	
Please login to merge, or discard this patch.
content.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -7,18 +7,18 @@  discard block
 block discarded – undo
7 7
 <?php lsx_entry_before(); ?>
8 8
 
9 9
 <?php 
10
-	if ( has_post_thumbnail() ) { 
10
+	if (has_post_thumbnail()) { 
11 11
 		$thumb_class = 'has-thumb';
12 12
 	} else {
13 13
 		$thumb_class = 'no-thumb';
14 14
 	} 
15 15
 ?>
16 16
 
17
-<article id="post-<?php the_ID(); ?>" <?php post_class( $thumb_class ); ?>>
17
+<article id="post-<?php the_ID(); ?>" <?php post_class($thumb_class); ?>>
18 18
 	<?php lsx_entry_top(); ?>
19 19
 
20 20
 	<header class="entry-header">
21
-		<?php if ( has_post_thumbnail() ) { ?>
21
+		<?php if (has_post_thumbnail()) { ?>
22 22
 		<div class="entry-image">
23 23
 			<a class="thumbnail" href="<?php the_permalink(); ?>">
24 24
 				 <?php lsx_thumbnail('lsx-single-thumbnail'); ?>
@@ -28,35 +28,35 @@  discard block
 block discarded – undo
28 28
 
29 29
 	<?php 
30 30
 		$format = get_post_format();
31
-		if ( false === $format ) {
31
+		if (false === $format) {
32 32
 			$format = 'standard';
33
-			$show_on_front = get_option('show_on_front','posts');
34
-			if('page' == $show_on_front){
33
+			$show_on_front = get_option('show_on_front', 'posts');
34
+			if ('page' == $show_on_front) {
35 35
 				$archive_link = get_permalink(get_option('page_for_posts'));
36
-			}else{
36
+			} else {
37 37
 				$archive_link = home_url();
38 38
 			}
39
-		}else{
39
+		} else {
40 40
 			$archive_link = get_post_format_link($format);
41 41
 		}
42 42
 		$format = lsx_translate_format_to_fontawesome($format);
43 43
 		?>
44 44
 
45 45
 		<h1 class="entry-title">
46
-			<?php if ( has_post_thumbnail() ) { ?>
47
-				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a>
46
+			<?php if (has_post_thumbnail()) { ?>
47
+				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a>
48 48
 			<?php } else { ?>
49
-				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a>
49
+				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a>
50 50
 			<?php } ?>
51 51
 
52
-			<?php if ( has_post_format( array('link') ) ) { ?>
53
-				<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
52
+			<?php if (has_post_format(array('link'))) { ?>
53
+				<a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
54 54
 			<?php } else { ?>
55 55
 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
56 56
 			<?php } ?>
57 57
 
58
-			<?php if ( is_sticky() ) { ?>
59
-				<span class="label label-default label-sticky"><?php esc_html_e('Featured','lsx'); ?></span>
58
+			<?php if (is_sticky()) { ?>
59
+				<span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span>
60 60
 			<?php } ?>
61 61
 		</h1>
62 62
 
@@ -65,37 +65,37 @@  discard block
 block discarded – undo
65 65
 		</div><!-- .entry-meta -->
66 66
 	</header><!-- .entry-header -->	
67 67
 
68
-	<?php if ( !is_singular() && !has_post_format( array('video', 'audio', 'quote', 'link') ) ) : // Only display Excerpts for Search and Archives ?>
68
+	<?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link'))) : // Only display Excerpts for Search and Archives ?>
69 69
 		<div class="entry-summary"> 
70 70
 			<?php the_excerpt(); ?>
71 71
 		</div><!-- .entry-summary -->
72
-	<?php elseif ( has_post_format( array('link') ) ) : ?>
72
+	<?php elseif (has_post_format(array('link'))) : ?>
73 73
 
74 74
 	<?php else : ?>
75 75
 		<div class="entry-content">
76 76
 			<?php
77 77
 				the_content();
78 78
 
79
-				wp_link_pages( array(
79
+				wp_link_pages(array(
80 80
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
81 81
 					'after' => '</div></div>',
82 82
 					'link_before' => '<span>',
83 83
 					'link_after' => '</span>'
84
-				) );
84
+				));
85 85
 			?>
86 86
 		</div><!-- .entry-content -->
87 87
 	<?php endif; ?>
88 88
 	
89
-	<?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?>
89
+	<?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?>
90 90
 		<div class="post-tags-wrapper">
91 91
 			<?php lsx_content_post_tags(); ?>
92 92
 			
93
-			<?php if ( comments_open() && ! empty( get_comments_number() ) ) : ?>
93
+			<?php if (comments_open() && ! empty(get_comments_number())) : ?>
94 94
 				<div class="post-comments">
95 95
 					<a href="<?php the_permalink() ?>#comments">
96 96
 						<?php
97 97
 							$count = get_comments_number();
98
-							printf( esc_html( _n( 'One Comment', '%1$s Comments', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ) );
98
+							printf(esc_html(_n('One Comment', '%1$s Comments', $count, 'lsx')), esc_html(number_format_i18n($count)));
99 99
 						?>
100 100
 					</a>
101 101
 				</div>
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
 
109 109
 	<div class="clearfix"></div>
110 110
 
111
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
111
+	<?php edit_post_link(__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
112 112
 
113
-	<?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?>
113
+	<?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?>
114 114
 		<div class="lsx-breaker"></div>
115 115
 	<?php } ?>
116 116
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
content-single.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
 
13 13
 	<?php
14 14
 	$format = get_post_format();
15
-	if ( false === $format ) {
15
+	if (false === $format) {
16 16
 		$format = 'standard';
17 17
 	}
18 18
 	$format_link = get_post_format_link($format);
19 19
 	$format = lsx_translate_format_to_fontawesome($format);
20 20
 	?>
21 21
 
22
-	<?php if ( ! is_single() ) { ?>
22
+	<?php if ( ! is_single()) { ?>
23 23
 		<header class="entry-header">
24 24
 			<h1 class="entry-title">
25
-				<?php if ( has_post_thumbnail() ) { ?>
26
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a>
25
+				<?php if (has_post_thumbnail()) { ?>
26
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a>
27 27
 				<?php } else { ?>
28
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a>
28
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a>
29 29
 				<?php } ?>
30 30
 
31 31
 				<span><?php the_title(); ?></span>
@@ -39,33 +39,33 @@  discard block
 block discarded – undo
39 39
 
40 40
 	<div class="entry-content">
41 41
 		<?php
42
-		if ( ! is_singular() ) {
42
+		if ( ! is_singular()) {
43 43
 			the_excerpt();
44 44
 		} else {
45 45
 			the_content();
46 46
 
47
-			wp_link_pages( array(
47
+			wp_link_pages(array(
48 48
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
49 49
 				'after' => '</div></div>',
50 50
 				'link_before' => '<span>',
51 51
 				'link_after' => '</span>'
52
-			) );
52
+			));
53 53
 		} ?>
54 54
 	</div><!-- .entry-content -->
55 55
 
56 56
 	<footer class="footer-meta">
57
-		<?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
58 58
 			<div class="post-tags-wrapper">
59 59
 				<?php lsx_content_post_tags(); ?>
60 60
 
61 61
 				<?php
62
-					if ( function_exists( 'sharing_display' ) ) {
63
-						sharing_display( '', true );
62
+					if (function_exists('sharing_display')) {
63
+						sharing_display('', true);
64 64
 					}
65 65
 
66
-					if ( class_exists( 'Jetpack_Likes' ) ) {
66
+					if (class_exists('Jetpack_Likes')) {
67 67
 						$custom_likes = new Jetpack_Likes;
68
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
68
+						echo wp_kses_post($custom_likes->post_likes(''));
69 69
 					}
70 70
 				?>
71 71
 			</div>
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
 		<?php
75 75
 			// If comments are open or we have at least one comment, load up the comment template
76
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
77
-				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html( get_comments_number() ) ?></strong> <?php esc_html_e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a>
76
+			if (comments_open() || '0' != get_comments_number()) : ?>
77
+				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html(get_comments_number()) ?></strong> <?php esc_html_e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a>
78 78
 
79 79
 				<div class="collapse" id="comments-collapse">
80 80
 					<?php 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		<?php endif; ?>
85 85
 	</footer><!-- .footer-meta -->
86 86
 	
87
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
87
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
88 88
 				
89 89
 	<?php lsx_portfolio_related_posts(); ?>
90 90
 
Please login to merge, or discard this patch.
inc/hooks.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
  * $lsx_supports[] = 'body';
25 25
  */
26 26
  function lsx_body_top() {
27
-	 do_action( 'lsx_body_top' );
27
+	 do_action('lsx_body_top');
28 28
  }
29 29
 
30 30
  function lsx_body_bottom() {
31
-	 do_action( 'lsx_body_bottom' );
31
+	 do_action('lsx_body_bottom');
32 32
  }
33 33
  
34 34
 /**
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 * $lsx_supports[] = 'head';
38 38
 */
39 39
 function lsx_head_top() {
40
-	do_action( 'lsx_head_top' );
40
+	do_action('lsx_head_top');
41 41
 }
42 42
 
43 43
 function lsx_head_bottom() {
44
-	do_action( 'lsx_head_bottom' );
44
+	do_action('lsx_head_bottom');
45 45
 }
46 46
 
47 47
 /**
@@ -50,27 +50,27 @@  discard block
 block discarded – undo
50 50
 * $lsx_supports[] = 'header';
51 51
 */
52 52
 function lsx_header_before() {
53
-	do_action( 'lsx_header_before' );
53
+	do_action('lsx_header_before');
54 54
 }
55 55
 
56 56
 function lsx_header_after() {
57
-	do_action( 'lsx_header_after' );
57
+	do_action('lsx_header_after');
58 58
 }
59 59
 
60 60
 function lsx_header_top() {
61
-	do_action( 'lsx_header_top' );
61
+	do_action('lsx_header_top');
62 62
 }
63 63
 
64 64
 function lsx_header_bottom() {
65
-	do_action( 'lsx_header_bottom' );
65
+	do_action('lsx_header_bottom');
66 66
 }
67 67
 
68 68
 function lsx_nav_before() {
69
-	do_action( 'lsx_nav_before' );
69
+	do_action('lsx_nav_before');
70 70
 }
71 71
 
72 72
 function lsx_nav_after() {
73
-	do_action( 'lsx_nav_after' );
73
+	do_action('lsx_nav_after');
74 74
 }
75 75
 
76 76
 /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
  */
81 81
 
82 82
 function lsx_banner_content() {
83
-	do_action( 'lsx_banner_content' );
83
+	do_action('lsx_banner_content');
84 84
 }
85 85
 
86 86
 /**
@@ -89,35 +89,35 @@  discard block
 block discarded – undo
89 89
 * $lsx_supports[] = 'content';
90 90
 */
91 91
 function lsx_content_wrap_before() {
92
-	do_action( 'lsx_content_wrap_before' );
92
+	do_action('lsx_content_wrap_before');
93 93
 }
94 94
 
95 95
 function lsx_content_wrap_after() {
96
-	do_action( 'lsx_content_wrap_after' );
96
+	do_action('lsx_content_wrap_after');
97 97
 }
98 98
 
99 99
 function lsx_content_before() {
100
-	do_action( 'lsx_content_before' );
100
+	do_action('lsx_content_before');
101 101
 }
102 102
 
103 103
 function lsx_content_after() {
104
-	do_action( 'lsx_content_after' );
104
+	do_action('lsx_content_after');
105 105
 }
106 106
 
107 107
 function lsx_content_top() {
108
-	do_action( 'lsx_content_top' );
108
+	do_action('lsx_content_top');
109 109
 }
110 110
 
111 111
 function lsx_content_bottom() {
112
-	do_action( 'lsx_content_bottom' );
112
+	do_action('lsx_content_bottom');
113 113
 }
114 114
 
115 115
 function lsx_content_post_meta() {
116
-	do_action( 'lsx_content_post_meta' );
116
+	do_action('lsx_content_post_meta');
117 117
 }
118 118
 
119 119
 function lsx_content_post_tags() {
120
-	do_action( 'lsx_content_post_tags' );
120
+	do_action('lsx_content_post_tags');
121 121
 }
122 122
 
123 123
 /**
@@ -126,19 +126,19 @@  discard block
 block discarded – undo
126 126
 * $lsx_supports[] = 'entry';
127 127
 */
128 128
 function lsx_entry_before() {
129
-	do_action( 'lsx_entry_before' );
129
+	do_action('lsx_entry_before');
130 130
 }
131 131
 
132 132
 function lsx_entry_after() {
133
-	do_action( 'lsx_entry_after' );
133
+	do_action('lsx_entry_after');
134 134
 }
135 135
 
136 136
 function lsx_entry_top() {
137
-	do_action( 'lsx_entry_top' );
137
+	do_action('lsx_entry_top');
138 138
 }
139 139
 
140 140
 function lsx_entry_bottom() {
141
-	do_action( 'lsx_entry_bottom' );
141
+	do_action('lsx_entry_bottom');
142 142
 }
143 143
 
144 144
 /**
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
 * $lsx_supports[] = 'comments';
148 148
 */
149 149
 function lsx_comments_before() {
150
-	do_action( 'lsx_comments_before' );
150
+	do_action('lsx_comments_before');
151 151
 }
152 152
 
153 153
 function lsx_comments_after() {
154
-	do_action( 'lsx_comments_after' );
154
+	do_action('lsx_comments_after');
155 155
 }
156 156
 
157 157
 /**
@@ -160,19 +160,19 @@  discard block
 block discarded – undo
160 160
 * $lsx_supports[] = 'sidebar';
161 161
 */
162 162
 function lsx_sidebars_before() {
163
-	do_action( 'lsx_sidebars_before' );
163
+	do_action('lsx_sidebars_before');
164 164
 }
165 165
 
166 166
 function lsx_sidebars_after() {
167
-	do_action( 'lsx_sidebars_after' );
167
+	do_action('lsx_sidebars_after');
168 168
 }
169 169
 
170 170
 function lsx_sidebar_top() {
171
-	do_action( 'lsx_sidebar_top' );
171
+	do_action('lsx_sidebar_top');
172 172
 }
173 173
 
174 174
 function lsx_sidebar_bottom() {
175
-	do_action( 'lsx_sidebar_bottom' );
175
+	do_action('lsx_sidebar_bottom');
176 176
 }
177 177
 
178 178
 /**
@@ -181,17 +181,17 @@  discard block
 block discarded – undo
181 181
 * $lsx_supports[] = 'footer';
182 182
 */
183 183
 function lsx_footer_before() {
184
-	do_action( 'lsx_footer_before' );
184
+	do_action('lsx_footer_before');
185 185
 }
186 186
 
187 187
 function lsx_footer_after() {
188
-	do_action( 'lsx_footer_after' );
188
+	do_action('lsx_footer_after');
189 189
 }
190 190
 
191 191
 function lsx_footer_top() {
192
-	do_action( 'lsx_footer_top' );
192
+	do_action('lsx_footer_top');
193 193
 }
194 194
 
195 195
 function lsx_footer_bottom() {
196
-	do_action( 'lsx_footer_bottom' );
196
+	do_action('lsx_footer_bottom');
197 197
 }
198 198
\ No newline at end of file
Please login to merge, or discard this patch.
content-post.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
 
13 13
 	<?php
14 14
 	$format = get_post_format();
15
-	if ( false === $format ) {
15
+	if (false === $format) {
16 16
 		$format = 'standard';
17 17
 	}
18 18
 	$format_link = get_post_format_link($format);
19 19
 	$format = lsx_translate_format_to_fontawesome($format);
20 20
 	?>
21 21
 
22
-	<?php if ( ! is_single() ) { ?>
22
+	<?php if ( ! is_single()) { ?>
23 23
 		<header class="entry-header">
24 24
 			<h1 class="entry-title">
25
-				<?php if ( has_post_thumbnail() ) { ?>
26
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a>
25
+				<?php if (has_post_thumbnail()) { ?>
26
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a>
27 27
 				<?php } else { ?>
28
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a>
28
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a>
29 29
 				<?php } ?>
30 30
 
31 31
 				<span><?php the_title(); ?></span>
@@ -39,33 +39,33 @@  discard block
 block discarded – undo
39 39
 
40 40
 	<div class="entry-content">
41 41
 		<?php
42
-		if ( ! is_singular() ) {
42
+		if ( ! is_singular()) {
43 43
 			the_excerpt();
44 44
 		} else {
45 45
 			the_content();
46 46
 
47
-			wp_link_pages( array(
47
+			wp_link_pages(array(
48 48
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
49 49
 				'after' => '</div></div>',
50 50
 				'link_before' => '<span>',
51 51
 				'link_after' => '</span>'
52
-			) );
52
+			));
53 53
 		} ?>
54 54
 	</div><!-- .entry-content -->
55 55
 
56 56
 	<footer class="footer-meta">
57
-		<?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
58 58
 			<div class="post-tags-wrapper">
59 59
 				<?php lsx_content_post_tags(); ?>
60 60
 
61 61
 				<?php
62
-					if ( function_exists( 'sharing_display' ) ) {
63
-						sharing_display( '', true );
62
+					if (function_exists('sharing_display')) {
63
+						sharing_display('', true);
64 64
 					}
65 65
 
66
-					if ( class_exists( 'Jetpack_Likes' ) ) {
66
+					if (class_exists('Jetpack_Likes')) {
67 67
 						$custom_likes = new Jetpack_Likes;
68
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
68
+						echo wp_kses_post($custom_likes->post_likes(''));
69 69
 					}
70 70
 				?>
71 71
 			</div>
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
 		<?php
75 75
 			// If comments are open or we have at least one comment, load up the comment template
76
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
77
-				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html( get_comments_number() ) ?></strong> <?php esc_html_e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a>
76
+			if (comments_open() || '0' != get_comments_number()) : ?>
77
+				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html(get_comments_number()) ?></strong> <?php esc_html_e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a>
78 78
 
79 79
 				<div class="collapse" id="comments-collapse">
80 80
 					<?php 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		<?php endif; ?>
85 85
 	</footer><!-- .footer-meta -->
86 86
 	
87
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
87
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
88 88
 				
89 89
 	<?php lsx_portfolio_related_posts(); ?>
90 90
 
Please login to merge, or discard this patch.