Passed
Pull Request — master (#341)
by Virginia
02:35
created
includes/config.php 1 patch
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage config
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_setup' ) ) :
13
+if ( ! function_exists('lsx_setup')) :
14 14
 
15 15
 	/**
16 16
 	 * Theme after_setup_theme action.
@@ -22,26 +22,26 @@  discard block
 block discarded – undo
22 22
 		global $content_width;
23 23
 		$content_width = 1140;
24 24
 
25
-		load_theme_textdomain( 'lsx', get_template_directory() . '/languages' );
25
+		load_theme_textdomain('lsx', get_template_directory() . '/languages');
26 26
 
27
-		add_image_size( 'lsx-thumbnail-carousel', 350, 230, true );
28
-		add_image_size( 'lsx-thumbnail-wide', 360, 168, true );
29
-		add_image_size( 'lsx-thumbnail-square', 350, 350, true );
30
-		add_image_size( 'lsx-thumbnail-single', 750, 350, true );
31
-		add_image_size( 'lsx-banner', 1920, 600, true );
27
+		add_image_size('lsx-thumbnail-carousel', 350, 230, true);
28
+		add_image_size('lsx-thumbnail-wide', 360, 168, true);
29
+		add_image_size('lsx-thumbnail-square', 350, 350, true);
30
+		add_image_size('lsx-thumbnail-single', 750, 350, true);
31
+		add_image_size('lsx-banner', 1920, 600, true);
32 32
 
33 33
 		register_nav_menus(
34 34
 			array(
35
-				'primary'       => esc_html__( 'Primary Menu', 'lsx' ),
36
-				'top-menu'      => esc_html__( 'Top Menu (right)', 'lsx' ),
37
-				'top-menu-left' => esc_html__( 'Top Menu (left)', 'lsx' ),
38
-				'social'        => esc_html__( 'Social Menu', 'lsx' ),
39
-				'footer'        => esc_html__( 'Footer Menu', 'lsx' ),
35
+				'primary'       => esc_html__('Primary Menu', 'lsx'),
36
+				'top-menu'      => esc_html__('Top Menu (right)', 'lsx'),
37
+				'top-menu-left' => esc_html__('Top Menu (left)', 'lsx'),
38
+				'social'        => esc_html__('Social Menu', 'lsx'),
39
+				'footer'        => esc_html__('Footer Menu', 'lsx'),
40 40
 			)
41 41
 		);
42 42
 
43
-		add_theme_support( 'automatic-feed-links' );
44
-		add_theme_support( 'custom-background' );
43
+		add_theme_support('automatic-feed-links');
44
+		add_theme_support('custom-background');
45 45
 
46 46
 		add_theme_support(
47 47
 			'custom-logo',
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			)
54 54
 		);
55 55
 
56
-		add_theme_support( 'html5', array( 'caption' ) );
56
+		add_theme_support('html5', array('caption'));
57 57
 
58 58
 		add_theme_support(
59 59
 			'post-formats',
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 			)
67 67
 		);
68 68
 
69
-		add_theme_support( 'post-thumbnails' );
70
-		add_theme_support( 'sensei' );
69
+		add_theme_support('post-thumbnails');
70
+		add_theme_support('sensei');
71 71
 
72 72
 		add_theme_support(
73 73
 			'site-logo',
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
 			)
81 81
 		);
82 82
 
83
-		add_theme_support( 'title-tag' );
83
+		add_theme_support('title-tag');
84 84
 
85 85
 		/*
86 86
 		 * @TODO - Necessary to test it
87 87
 		 */
88 88
 
89 89
 		// add_theme_support( 'woocommerce' );.
90
-		add_theme_support( 'starter-content', array(
90
+		add_theme_support('starter-content', array(
91 91
 			'widgets'     => array(
92 92
 				'sidebar-home'       => array(
93 93
 					'custom_widget_1' => array(
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
 						array(
97 97
 							'title' => '',
98
-							'text'  => wp_kses_post( '<div class="row"><div class="col-sm-12 text-center"><h3>Build your perfect website <small>with the LSX theme</small></h3></div></div><div class="row"><div class="col-sm-4 text-center"><h4>Fast</h4><p>"Quick" isn\'t a word most people use when describing their website building experience.</p></div><div class="col-sm-4 text-center"><h4>Easy</h4><p>We\'ve built websites for countless clients, and we know what kind of back-end makes sense easily.</p></div><div class="col-sm-4 text-center"><h4>Comprehensive</h4><p>The LSX extensions come with features out the box that are essential.</p></div></div>' ),
98
+							'text'  => wp_kses_post('<div class="row"><div class="col-sm-12 text-center"><h3>Build your perfect website <small>with the LSX theme</small></h3></div></div><div class="row"><div class="col-sm-4 text-center"><h4>Fast</h4><p>"Quick" isn\'t a word most people use when describing their website building experience.</p></div><div class="col-sm-4 text-center"><h4>Easy</h4><p>We\'ve built websites for countless clients, and we know what kind of back-end makes sense easily.</p></div><div class="col-sm-4 text-center"><h4>Comprehensive</h4><p>The LSX extensions come with features out the box that are essential.</p></div></div>'),
99 99
 						),
100 100
 					),
101 101
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 						array(
106 106
 							'title' => '',
107
-							'text'  => wp_kses_post( '<div class="lsx-full-width-alt"><div class="row"><div class="col-xs-12"><h3>A big CTA title</h3><p class="text-center"><a class="btn cta-btn" href="http://www.lsdeb.biz/" target="_blank" rel="noreferrer noopener">Hire Us</a><p></div></div></div>' ),
107
+							'text'  => wp_kses_post('<div class="lsx-full-width-alt"><div class="row"><div class="col-xs-12"><h3>A big CTA title</h3><p class="text-center"><a class="btn cta-btn" href="http://www.lsdeb.biz/" target="_blank" rel="noreferrer noopener">Hire Us</a><p></div></div></div>'),
108 108
 						),
109 109
 					),
110 110
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
 						array(
115 115
 							'title' => '',
116
-							'text'  => wp_kses_post( '<div class="row"><div class="col-xs-12"><h3>Homepage Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p></div></div>' ),
116
+							'text'  => wp_kses_post('<div class="row"><div class="col-xs-12"><h3>Homepage Widget</h3><p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p></div></div>'),
117 117
 						),
118 118
 					),
119 119
 				),
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
 						'text',
124 124
 
125 125
 						array(
126
-							'title' => esc_html__( 'Space for Footer Widgets', 'lsx' ),
127
-							'text'  => esc_html__( 'This is here to showcase some footer widgets. You can decide what to add and what to hide. Nam nostrum evertitur ad, ut pri nibh veniam, urbanitas definitionem eum ex.', 'lsx' ),
126
+							'title' => esc_html__('Space for Footer Widgets', 'lsx'),
127
+							'text'  => esc_html__('This is here to showcase some footer widgets. You can decide what to add and what to hide. Nam nostrum evertitur ad, ut pri nibh veniam, urbanitas definitionem eum ex.', 'lsx'),
128 128
 						),
129 129
 					),
130 130
 
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
 						'text',
133 133
 
134 134
 						array(
135
-							'title' => esc_html__( 'Space for Footer Widgets', 'lsx' ),
136
-							'text'  => esc_html__( 'This is here to showcase some footer widgets. You can decide what to add and what to hide. Nam nostrum evertitur ad, ut pri nibh veniam, urbanitas definitionem eum ex.', 'lsx' ),
135
+							'title' => esc_html__('Space for Footer Widgets', 'lsx'),
136
+							'text'  => esc_html__('This is here to showcase some footer widgets. You can decide what to add and what to hide. Nam nostrum evertitur ad, ut pri nibh veniam, urbanitas definitionem eum ex.', 'lsx'),
137 137
 						),
138 138
 					),
139 139
 
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
 						'text',
142 142
 
143 143
 						array(
144
-							'title' => esc_html__( 'Contact us:', 'lsx' ),
145
-							'text'  => wp_kses_post( '<a href="mailto:[email protected]><i class="fa fa-envelope fa-fw"></i> [email protected]</a><br><a href="tel:+27214489843"><i class="fa fa-phone fa-fw"></i> +27 21 448 9843</a><br><i class="fa fa-skype fa-fw"></i> /lightspeeddevelopment' ),
144
+							'title' => esc_html__('Contact us:', 'lsx'),
145
+							'text'  => wp_kses_post('<a href="mailto:[email protected]><i class="fa fa-envelope fa-fw"></i> [email protected]</a><br><a href="tel:+27214489843"><i class="fa fa-phone fa-fw"></i> +27 21 448 9843</a><br><i class="fa fa-skype fa-fw"></i> /lightspeeddevelopment'),
146 146
 						),
147 147
 					),
148 148
 				),
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
 						'text',
153 153
 
154 154
 						array(
155
-							'title' => esc_html__( 'A Footer Call to Action', 'lsx' ),
156
-							'text'  => esc_html__( 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'lsx' ),
155
+							'title' => esc_html__('A Footer Call to Action', 'lsx'),
156
+							'text'  => esc_html__('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'lsx'),
157 157
 						),
158 158
 					),
159 159
 				),
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 				'home'    => array(
164 164
 					'template'     => 'page-templates/template-front-page.php',
165 165
 					'thumbnail'    => '{{image-banner-example-01}}',
166
-					'post_title'   => esc_html__( 'LSX is a free WordPress theme', 'lsx' ),
166
+					'post_title'   => esc_html__('LSX is a free WordPress theme', 'lsx'),
167 167
 					'post_content' => '',
168 168
 				),
169 169
 
@@ -180,17 +180,17 @@  discard block
 block discarded – undo
180 180
 
181 181
 			'attachments' => array(
182 182
 				'image-banner-example-01' => array(
183
-					'post_title' => esc_html_x( 'Banner Example 01', 'Theme starter content', 'lsx' ),
183
+					'post_title' => esc_html_x('Banner Example 01', 'Theme starter content', 'lsx'),
184 184
 					'file'       => 'assets/images/admin/banner-example-01.jpg',
185 185
 				),
186 186
 
187 187
 				'image-banner-example-02' => array(
188
-					'post_title' => esc_html_x( 'Banner Example 02', 'Theme starter content', 'lsx' ),
188
+					'post_title' => esc_html_x('Banner Example 02', 'Theme starter content', 'lsx'),
189 189
 					'file'       => 'assets/images/admin/banner-example-02.jpg',
190 190
 				),
191 191
 
192 192
 				'image-banner-example-03' => array(
193
-					'post_title' => esc_html_x( 'Banner Example 03', 'Theme starter content', 'lsx' ),
193
+					'post_title' => esc_html_x('Banner Example 03', 'Theme starter content', 'lsx'),
194 194
 					'file'       => 'assets/images/admin/banner-example-03.jpg',
195 195
 				),
196 196
 			),
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
 				'show_on_front'   => 'page',
200 200
 				'page_on_front'   => '{{home}}',
201 201
 				'page_for_posts'  => '{{blog}}',
202
-				'blogdescription' => esc_html__( 'LSX starter content example', 'lsx' ),
202
+				'blogdescription' => esc_html__('LSX starter content example', 'lsx'),
203 203
 			),
204 204
 
205 205
 			'nav_menus'   => array(
206 206
 				'primary'  => array(
207
-					'name'  => esc_html__( 'Primary Menu', 'lsx' ),
207
+					'name'  => esc_html__('Primary Menu', 'lsx'),
208 208
 
209 209
 					'items' => array(
210 210
 						'page_home',
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 				),
216 216
 
217 217
 				'top-menu' => array(
218
-					'name'  => esc_html__( 'Top Menu', 'lsx' ),
218
+					'name'  => esc_html__('Top Menu', 'lsx'),
219 219
 
220 220
 					'items' => array(
221 221
 						'custom_link_1' => array(
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 				),
244 244
 
245 245
 				'social'   => array(
246
-					'name'  => esc_html__( 'Social Menu', 'lsx' ),
246
+					'name'  => esc_html__('Social Menu', 'lsx'),
247 247
 
248 248
 					'items' => array(
249 249
 						'link_facebook',
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 				),
259 259
 
260 260
 				'footer'   => array(
261
-					'name'  => esc_html__( 'Footer Menu', 'lsx' ),
261
+					'name'  => esc_html__('Footer Menu', 'lsx'),
262 262
 
263 263
 					'items' => array(
264 264
 						'page_about',
@@ -272,14 +272,14 @@  discard block
 block discarded – undo
272 272
 				'lsx_header_search' => false,
273 273
 				'lsx_layout'        => '1c',
274 274
 			),
275
-		) );
275
+		));
276 276
 	}
277 277
 
278 278
 endif;
279 279
 
280
-add_action( 'after_setup_theme', 'lsx_setup' );
280
+add_action('after_setup_theme', 'lsx_setup');
281 281
 
282
-if ( ! function_exists( 'lsx_init' ) ) :
282
+if ( ! function_exists('lsx_init')) :
283 283
 
284 284
 	/**
285 285
 	 * Theme init action.
@@ -288,20 +288,20 @@  discard block
 block discarded – undo
288 288
 	 * @subpackage config
289 289
 	 */
290 290
 	function lsx_init() {
291
-		add_post_type_support( 'page', 'excerpt' );
291
+		add_post_type_support('page', 'excerpt');
292 292
 
293
-		if ( class_exists( 'WooCommerce' ) ) {
294
-			remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
293
+		if (class_exists('WooCommerce')) {
294
+			remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20);
295 295
 		}
296 296
 
297
-		remove_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce', 10 );
297
+		remove_action('comment_form', 'wp_comment_form_unfiltered_html_nonce', 10);
298 298
 	}
299 299
 
300 300
 endif;
301 301
 
302
-add_action( 'init', 'lsx_init', 100 );
302
+add_action('init', 'lsx_init', 100);
303 303
 
304
-if ( ! function_exists( 'lsx_process_content_width' ) ) :
304
+if ( ! function_exists('lsx_process_content_width')) :
305 305
 
306 306
 	/**
307 307
 	 * Overwrite the $content_width var, based on the layout of the page.
@@ -313,8 +313,8 @@  discard block
 block discarded – undo
313 313
 		global $content_width;
314 314
 
315 315
 		if (
316
-			is_page_template( 'page-templates/template-front-page.php' ) ||
317
-			is_page_template( 'page-templates/template-full-width.php' )
316
+			is_page_template('page-templates/template-front-page.php') ||
317
+			is_page_template('page-templates/template-full-width.php')
318 318
 		) {
319 319
 			$content_width = 1140;
320 320
 		}
@@ -322,9 +322,9 @@  discard block
 block discarded – undo
322 322
 
323 323
 endif;
324 324
 
325
-add_action( 'wp_head', 'lsx_process_content_width' );
325
+add_action('wp_head', 'lsx_process_content_width');
326 326
 
327
-if ( ! function_exists( 'lsx_file_get_contents' ) ) :
327
+if ( ! function_exists('lsx_file_get_contents')) :
328 328
 
329 329
 	/**
330 330
 	 * Get file contents.
@@ -332,19 +332,19 @@  discard block
 block discarded – undo
332 332
 	 * @package    lsx
333 333
 	 * @subpackage config
334 334
 	 */
335
-	function lsx_file_get_contents( $file ) {
336
-		if ( file_exists( $file ) ) {
335
+	function lsx_file_get_contents($file) {
336
+		if (file_exists($file)) {
337 337
 			global $wp_filesystem;
338 338
 
339
-			if ( empty( $wp_filesystem ) ) {
339
+			if (empty($wp_filesystem)) {
340 340
 				require_once ABSPATH . 'wp-admin/includes/file.php';
341 341
 				WP_Filesystem();
342 342
 			}
343 343
 
344
-			if ( $wp_filesystem ) {
345
-				$contents = $wp_filesystem->get_contents( $file );
344
+			if ($wp_filesystem) {
345
+				$contents = $wp_filesystem->get_contents($file);
346 346
 
347
-				if ( ! empty( $contents ) ) {
347
+				if ( ! empty($contents)) {
348 348
 					return $contents;
349 349
 				}
350 350
 			}
Please login to merge, or discard this patch.
includes/sanitize.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage sanitize
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_sanitize_choices' ) ) :
13
+if ( ! function_exists('lsx_sanitize_choices')) :
14 14
 
15 15
 	/**
16 16
 	 * Sanitize a value from a list of allowed values.
@@ -22,18 +22,18 @@  discard block
 block discarded – undo
22 22
 	 * @param mixed $setting    The setting for which the sanitizing is occurring.
23 23
 	 * @return mixed                The sanitized value.
24 24
 	 */
25
-	function lsx_sanitize_choices( $value, $setting ) {
26
-		if ( is_object( $setting ) ) {
25
+	function lsx_sanitize_choices($value, $setting) {
26
+		if (is_object($setting)) {
27 27
 			$setting = $setting->id;
28 28
 		}
29 29
 
30
-		$choices = lsx_customizer_sanitize_get_choices( $setting );
30
+		$choices = lsx_customizer_sanitize_get_choices($setting);
31 31
 
32
-		if ( ! is_wp_error( $choices ) && ! empty( $choices ) ) {
33
-			$allowed_choices = array_keys( $choices );
32
+		if ( ! is_wp_error($choices) && ! empty($choices)) {
33
+			$allowed_choices = array_keys($choices);
34 34
 
35
-			if ( ! in_array( $value, $allowed_choices ) ) {
36
-				$value = lsx_customizer_sanitize_get_default( $setting );
35
+			if ( ! in_array($value, $allowed_choices)) {
36
+				$value = lsx_customizer_sanitize_get_default($setting);
37 37
 			}
38 38
 
39 39
 			return $value;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 endif;
46 46
 
47
-if ( ! function_exists( 'lsx_customizer_sanitize_get_choices' ) ) :
47
+if ( ! function_exists('lsx_customizer_sanitize_get_choices')) :
48 48
 
49 49
 	/**
50 50
 	 * Helper function to return the choices for a field.
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 	 * @param string
56 56
 	 * @return mixed $field
57 57
 	 */
58
-	function lsx_customizer_sanitize_get_choices( $id ) {
58
+	function lsx_customizer_sanitize_get_choices($id) {
59 59
 		global $lsx_customizer;
60 60
 
61
-		$can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
62
-		$field        = $lsx_customizer->get_control( $id );
61
+		$can_validate = method_exists('WP_Customize_Setting', 'validate');
62
+		$field        = $lsx_customizer->get_control($id);
63 63
 
64
-		if ( ! isset( $field['choices'] ) ) {
65
-			return $can_validate ? new WP_Error( 'notexists', esc_html__( 'Choice doesn\'t exist', 'lsx' ) ) : false;
64
+		if ( ! isset($field['choices'])) {
65
+			return $can_validate ? new WP_Error('notexists', esc_html__('Choice doesn\'t exist', 'lsx')) : false;
66 66
 		}
67 67
 
68 68
 		return $field['choices'];
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
 endif;
72 72
 
73
-if ( ! function_exists( 'lsx_customizer_sanitize_get_default' ) ) :
73
+if ( ! function_exists('lsx_customizer_sanitize_get_default')) :
74 74
 
75 75
 	/**
76 76
 	 * Helper function to return defaults.
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
 	 * @param string
82 82
 	 * @return mixed $default
83 83
 	 */
84
-	function lsx_customizer_sanitize_get_default( $id ) {
84
+	function lsx_customizer_sanitize_get_default($id) {
85 85
 		global $lsx_customizer;
86
-		$setting = $lsx_customizer->get_setting( $id );
86
+		$setting = $lsx_customizer->get_setting($id);
87 87
 
88
-		if ( isset( $setting['default'] ) ) {
88
+		if (isset($setting['default'])) {
89 89
 			return $setting['default'];
90 90
 		}
91 91
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
 endif;
96 96
 
97
-if ( ! function_exists( 'lsx_sanitize_checkbox' ) ) :
97
+if ( ! function_exists('lsx_sanitize_checkbox')) :
98 98
 
99 99
 	/**
100 100
 	 * Sanitizes an single or multiple checkbox input.
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
 	 * @param array $input
106 106
 	 * @return array $output
107 107
 	 */
108
-	function lsx_sanitize_checkbox( $input ) {
109
-		$can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
108
+	function lsx_sanitize_checkbox($input) {
109
+		$can_validate = method_exists('WP_Customize_Setting', 'validate');
110 110
 
111
-		if ( ! is_bool( $input ) ) {
112
-			return $can_validate ? new WP_Error( 'notboolean', esc_html__( 'Not a boolean', 'lsx' ) ) : false;
111
+		if ( ! is_bool($input)) {
112
+			return $can_validate ? new WP_Error('notboolean', esc_html__('Not a boolean', 'lsx')) : false;
113 113
 		}
114 114
 
115 115
 		return $input;
Please login to merge, or discard this patch.
includes/classes/class-lsx-customize-layout-control.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@  discard block
 block discarded – undo
7 7
  * @category   layout
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if ( ! defined('ABSPATH')) {
11 11
 	exit;
12 12
 }
13 13
 
14
-if ( ! class_exists( 'WP_Customize_Control' ) ) {
14
+if ( ! class_exists('WP_Customize_Control')) {
15 15
 	return;
16 16
 }
17 17
 
18
-if ( ! class_exists( 'LSX_Customize_Layout_Control' ) ) :
18
+if ( ! class_exists('LSX_Customize_Layout_Control')) :
19 19
 
20 20
 	/**
21 21
 	 * LSX_Customize_Layout_Control Class.
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
 		public $statuses;
31 31
 		public $layouts = array();
32 32
 
33
-		public function __construct( $manager, $id, $args = array() ) {
34
-			parent::__construct( $manager, $id, $args );
35
-			if ( ! empty( $args['choices'] ) ) {
33
+		public function __construct($manager, $id, $args = array()) {
34
+			parent::__construct($manager, $id, $args);
35
+			if ( ! empty($args['choices'])) {
36 36
 				$this->layouts = $args['choices'];
37 37
 			}
38 38
 		}
@@ -41,39 +41,39 @@  discard block
 block discarded – undo
41 41
 		 * Enqueue scripts/styles for the color picker.
42 42
 		 */
43 43
 		public function enqueue() {
44
-			wp_enqueue_script( 'lsx-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-layout.js', array( 'jquery' ), LSX_VERSION, true );
44
+			wp_enqueue_script('lsx-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-layout.js', array('jquery'), LSX_VERSION, true);
45 45
 		}
46 46
 
47 47
 		/**
48 48
 		 * Render output.
49 49
 		 */
50 50
 		public function render_content() {
51
-			$post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
51
+			$post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id));
52 52
 			$class   = 'customize-control customize-control-' . $this->type;
53 53
 			$value   = $this->value();
54 54
 			?>
55 55
 			<label>
56 56
 				<?php
57
-				if ( ! empty( $this->label ) ) {
57
+				if ( ! empty($this->label)) {
58 58
 					?>
59
-					<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
59
+					<span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
60 60
 					<?php
61 61
 				}
62
-				if ( ! empty( $this->description ) ) {
62
+				if ( ! empty($this->description)) {
63 63
 					?>
64
-					<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
64
+					<span class="description customize-control-description"><?php echo esc_html($this->description); ?></span>
65 65
 				<?php } ?>
66 66
 				<div class="layouts-selector">
67 67
 					<?php
68
-					foreach ( $this->layouts as $layout ) {
68
+					foreach ($this->layouts as $layout) {
69 69
 						$sel = 'border: 1px solid transparent;';
70
-						if ( $value === $layout ) {
70
+						if ($value === $layout) {
71 71
 							$sel = 'border: 1px solid rgb(43, 166, 203);';
72 72
 						}
73
-						echo '<img class="layout-button" style="padding:2px;' . esc_attr( $sel ) . '" src="' . esc_attr( get_template_directory_uri() ) . '/assets/images/admin/' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">';
73
+						echo '<img class="layout-button" style="padding:2px;' . esc_attr($sel) . '" src="' . esc_attr(get_template_directory_uri()) . '/assets/images/admin/' . esc_attr($layout) . '.png" data-option="' . esc_attr($layout) . '">';
74 74
 					}
75 75
 					?>
76
-					<input <?php $this->link(); ?> class="selected-layout <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $post_id ); ?>" type="hidden" value="<?php echo esc_attr( $value ); ?>" <?php $this->input_attrs(); ?>>
76
+					<input <?php $this->link(); ?> class="selected-layout <?php echo esc_attr($class); ?>" id="<?php echo esc_attr($post_id); ?>" type="hidden" value="<?php echo esc_attr($value); ?>" <?php $this->input_attrs(); ?>>
77 77
 				</div>
78 78
 			</label>
79 79
 			<?php
Please login to merge, or discard this patch.
includes/classes/class-lsx-schema-utils.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 	 *
19 19
 	 * @return bool True if it has schema, false if not.
20 20
 	 */
21
-	public static function is_type( $post_type = null, $comparison_type = null ) {
22
-		if ( is_null( $comparison_type ) ) {
21
+	public static function is_type($post_type = null, $comparison_type = null) {
22
+		if (is_null($comparison_type)) {
23 23
 			return false;
24 24
 		}
25
-		if ( is_null( $post_type ) ) {
25
+		if (is_null($post_type)) {
26 26
 			$post_type = get_post_type();
27 27
 		}
28 28
 		/**
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 		 *
31 31
 		 * @api string[] $post_types The post types for which we output Review.
32 32
 		 */
33
-		$post_types = apply_filters( 'wpseo_schema_' . $comparison_type . '_post_types', array( $comparison_type ) );
34
-		return in_array( $post_type, $post_types );
33
+		$post_types = apply_filters('wpseo_schema_' . $comparison_type . '_post_types', array($comparison_type));
34
+		return in_array($post_type, $post_types);
35 35
 	}
36 36
 	/**
37 37
 	 * Retrieve a users Schema ID.
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 	 *
43 43
 	 * @return string The user's schema ID.
44 44
 	 */
45
-	public static function get_places_schema_id( $place_id, $type, $context ) {
46
-		$url = $context->site_url . '#/schema/' . strtolower( $type ) . '/' . wp_hash( $place_id . get_the_title( $place_id ) );
47
-		return trailingslashit( $url );
45
+	public static function get_places_schema_id($place_id, $type, $context) {
46
+		$url = $context->site_url . '#/schema/' . strtolower($type) . '/' . wp_hash($place_id . get_the_title($place_id));
47
+		return trailingslashit($url);
48 48
 	}
49 49
 	/**
50 50
 	 * Retrieve a users Schema ID.
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 	 *
55 55
 	 * @return string The user's schema ID.
56 56
 	 */
57
-	public static function get_subtrip_schema_id( $name, $context ) {
58
-		$url = $context->site_url . '#/subtrip/' . wp_hash( $name . $context->id );
59
-		return trailingslashit( $url );
57
+	public static function get_subtrip_schema_id($name, $context) {
58
+		$url = $context->site_url . '#/subtrip/' . wp_hash($name . $context->id);
59
+		return trailingslashit($url);
60 60
 	}
61 61
 	/**
62 62
 	 * Retrieve an offer Schema ID.
@@ -67,15 +67,15 @@  discard block
 block discarded – undo
67 67
 	 *
68 68
 	 * @return string The user's schema ID.
69 69
 	 */
70
-	public static function get_offer_schema_id( $id, $context, $local = false ) {
71
-		if ( false === $local ) {
70
+	public static function get_offer_schema_id($id, $context, $local = false) {
71
+		if (false === $local) {
72 72
 			$url = $context->site_url;
73 73
 		} else {
74
-			$url = get_permalink( $context->id );
74
+			$url = get_permalink($context->id);
75 75
 		}
76 76
 		$url .= '#/schema/offer/';
77
-		$url .= wp_hash( $id . get_the_title( $id ) );
78
-		return trailingslashit( $url );
77
+		$url .= wp_hash($id . get_the_title($id));
78
+		return trailingslashit($url);
79 79
 	}
80 80
 	/**
81 81
 	 * Retrieve an review Schema ID.
@@ -86,15 +86,15 @@  discard block
 block discarded – undo
86 86
 	 *
87 87
 	 * @return string The user's schema ID.
88 88
 	 */
89
-	public static function get_review_schema_id( $id, $context, $local = false ) {
90
-		if ( false === $local ) {
89
+	public static function get_review_schema_id($id, $context, $local = false) {
90
+		if (false === $local) {
91 91
 			$url = $context->site_url;
92 92
 		} else {
93
-			$url = get_permalink( $context->id );
93
+			$url = get_permalink($context->id);
94 94
 		}
95 95
 		$url .= '#/schema/review/';
96
-		$url .= wp_hash( $id . get_the_title( $id ) );
97
-		return trailingslashit( $url );
96
+		$url .= wp_hash($id . get_the_title($id));
97
+		return trailingslashit($url);
98 98
 	}
99 99
 	/**
100 100
 	 * Retrieve an Article Schema ID.
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
 	 *
106 106
 	 * @return string The user's schema ID.
107 107
 	 */
108
-	public static function get_article_schema_id( $id, $context, $local = false ) {
109
-		if ( false === $local ) {
110
-			$url = get_permalink( $id ) . \WPSEO_Schema_IDs::ARTICLE_HASH;
108
+	public static function get_article_schema_id($id, $context, $local = false) {
109
+		if (false === $local) {
110
+			$url = get_permalink($id) . \WPSEO_Schema_IDs::ARTICLE_HASH;
111 111
 		} else {
112
-			$url = get_permalink( $context->id ) . '#/schema/article/' . wp_hash( $id . get_the_title( $id ) );
112
+			$url = get_permalink($context->id) . '#/schema/article/' . wp_hash($id . get_the_title($id));
113 113
 		}
114
-		return trailingslashit( $url );
114
+		return trailingslashit($url);
115 115
 	}
116 116
 	/**
117 117
 	 * Retrieve a users Schema ID.
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
 	 *
122 122
 	 * @return string The user's schema ID.
123 123
 	 */
124
-	public static function get_author_schema_id( $name, $email, $context ) {
125
-		return $context->site_url . \WPSEO_Schema_IDs::PERSON_HASH . wp_hash( $name . $email );
124
+	public static function get_author_schema_id($name, $email, $context) {
125
+		return $context->site_url . \WPSEO_Schema_IDs::PERSON_HASH . wp_hash($name . $email);
126 126
 	}
127 127
 	/**
128 128
 	 * Generates the place graph piece for the subtrip / Itinerary arrays.
@@ -135,16 +135,16 @@  discard block
 block discarded – undo
135 135
 	 *
136 136
 	 * @return mixed array $data Place data.
137 137
 	 */
138
-	public static function add_place( $data, $type, $post_id, $context, $contained_in = false ) {
139
-		$at_id = self::get_places_schema_id( $post_id, $type, $context );
138
+	public static function add_place($data, $type, $post_id, $context, $contained_in = false) {
139
+		$at_id = self::get_places_schema_id($post_id, $type, $context);
140 140
 		$place = array(
141 141
 			'@type'       => $type,
142 142
 			'@id'         => $at_id,
143
-			'name'        => get_the_title( $post_id ),
144
-			'description' => get_the_excerpt( $post_id ),
145
-			'url'         => get_permalink( $post_id ),
143
+			'name'        => get_the_title($post_id),
144
+			'description' => get_the_excerpt($post_id),
145
+			'url'         => get_permalink($post_id),
146 146
 		);
147
-		if ( false !== $contained_in ) {
147
+		if (false !== $contained_in) {
148 148
 			$place['containedInPlace'] = array(
149 149
 				'@type' => 'Country',
150 150
 				'@id'   => $contained_in,
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
 	 *
162 162
 	 * @return array $data The Review data.
163 163
 	 */
164
-	public static function add_image( $data, $context ) {
165
-		if ( $context->has_image ) {
164
+	public static function add_image($data, $context) {
165
+		if ($context->has_image) {
166 166
 			$data['image'] = array(
167 167
 				'@id' => $context->canonical . \WPSEO_Schema_IDs::PRIMARY_IMAGE_HASH,
168 168
 			);
@@ -176,18 +176,18 @@  discard block
 block discarded – undo
176 176
 	 * @param  string $type The schema type.
177 177
 	 * @return array $schema An array of the schema markup.
178 178
 	 */
179
-	public static function get_item_reviewed( $items = array(), $type = '' ) {
179
+	public static function get_item_reviewed($items = array(), $type = '') {
180 180
 		$schema = array();
181
-		if ( false !== $items && ! empty( $items ) && '' !== $type ) {
182
-			array_unique( $items );
183
-			foreach ( $items as $item ) {
184
-				$title = get_the_title( $item );
185
-				if ( '' !== $title ) {
181
+		if (false !== $items && ! empty($items) && '' !== $type) {
182
+			array_unique($items);
183
+			foreach ($items as $item) {
184
+				$title = get_the_title($item);
185
+				if ('' !== $title) {
186 186
 					$item_schema = array(
187 187
 						'@type' => $type,
188 188
 						'name'  => $title,
189 189
 					);
190
-					$schema[]    = $item_schema;
190
+					$schema[] = $item_schema;
191 191
 				}
192 192
 			}
193 193
 		}
@@ -203,18 +203,18 @@  discard block
 block discarded – undo
203 203
 	 *
204 204
 	 * @return mixed array $data Review data.
205 205
 	 */
206
-	public static function add_terms( $data, $post_id, $key, $taxonomy ) {
207
-		$terms = get_the_terms( $post_id, $taxonomy );
208
-		if ( is_array( $terms ) ) {
206
+	public static function add_terms($data, $post_id, $key, $taxonomy) {
207
+		$terms = get_the_terms($post_id, $taxonomy);
208
+		if (is_array($terms)) {
209 209
 			$keywords = array();
210
-			foreach ( $terms as $term ) {
210
+			foreach ($terms as $term) {
211 211
 				// We are checking against the WordPress internal translation.
212 212
 				// @codingStandardsIgnoreLine
213
-				if ( __( 'Uncategorized', 'lsx' ) !== $term->name ) {
213
+				if (__('Uncategorized', 'lsx') !== $term->name) {
214 214
 					$keywords[] = $term->name;
215 215
 				}
216 216
 			}
217
-			$data[ $key ] = implode( ',', $keywords );
217
+			$data[$key] = implode(',', $keywords);
218 218
 		}
219 219
 		return $data;
220 220
 	}
Please login to merge, or discard this patch.
includes/sensei/class-lsx-sensei.php 1 patch
Spacing   +171 added lines, -171 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage sensei
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! class_exists( 'LSX_Sensei' ) ) :
13
+if ( ! class_exists('LSX_Sensei')) :
14 14
 
15 15
 	/**
16 16
 	 * The LSX Sensei integration class
@@ -50,60 +50,60 @@  discard block
 block discarded – undo
50 50
 
51 51
 			global $woothemes_sensei;
52 52
 
53
-			add_action( 'wp_enqueue_scripts', array( $this, 'lsx_sensei_scripts_add_styles' ) );
53
+			add_action('wp_enqueue_scripts', array($this, 'lsx_sensei_scripts_add_styles'));
54 54
 
55
-			remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 );
56
-			add_action( 'sensei_before_main_content', array( $this, 'lsx_sensei_theme_wrapper_start' ) );
55
+			remove_action('sensei_before_main_content', array($woothemes_sensei->frontend, 'sensei_output_content_wrapper'), 10);
56
+			add_action('sensei_before_main_content', array($this, 'lsx_sensei_theme_wrapper_start'));
57 57
 
58
-			remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 );
59
-			add_action( 'sensei_after_main_content', array( $this, 'lsx_sensei_theme_wrapper_end' ) );
58
+			remove_action('sensei_after_main_content', array($woothemes_sensei->frontend, 'sensei_output_content_wrapper_end'), 10);
59
+			add_action('sensei_after_main_content', array($this, 'lsx_sensei_theme_wrapper_end'));
60 60
 
61
-			add_filter( 'get_the_archive_title', array( $this, 'lsx_sensei_modify_archive_title' ), 99, 1 );
61
+			add_filter('get_the_archive_title', array($this, 'lsx_sensei_modify_archive_title'), 99, 1);
62 62
 
63 63
 			// LSX.
64
-			add_filter( 'lsx_global_header_disable', array( $this, 'lsx_sensei_disable_lsx_banner' ) );
64
+			add_filter('lsx_global_header_disable', array($this, 'lsx_sensei_disable_lsx_banner'));
65 65
 			// LSX Banners - Plugin, Placeholders.
66
-			add_filter( 'lsx_banner_plugin_disable', array( $this, 'lsx_sensei_disable_lsx_banner' ) );
66
+			add_filter('lsx_banner_plugin_disable', array($this, 'lsx_sensei_disable_lsx_banner'));
67 67
 			// LSX Banners - Banner.
68
-			add_filter( 'lsx_banner_disable', array( $this, 'lsx_sensei_disable_lsx_banner' ) );
68
+			add_filter('lsx_banner_disable', array($this, 'lsx_sensei_disable_lsx_banner'));
69 69
 
70
-			add_filter( 'course_archive_title', array( $this, 'lsx_sensei_archive_title' ), 10, 1 );
71
-			add_filter( 'sensei_lesson_archive_title', array( $this, 'lsx_sensei_archive_title' ), 10, 1 );
70
+			add_filter('course_archive_title', array($this, 'lsx_sensei_archive_title'), 10, 1);
71
+			add_filter('sensei_lesson_archive_title', array($this, 'lsx_sensei_archive_title'), 10, 1);
72 72
 
73
-			add_filter( 'course_category_title', array( $this, 'lsx_sensei_category_title' ), 10, 1 );
73
+			add_filter('course_category_title', array($this, 'lsx_sensei_category_title'), 10, 1);
74 74
 
75
-			add_action( 'sensei_course_content_inside_after', array( $this, 'lsx_sensei_add_buttons' ), 9 );
75
+			add_action('sensei_course_content_inside_after', array($this, 'lsx_sensei_add_buttons'), 9);
76 76
 
77
-			add_filter( 'sensei_wc_paid_courses_add_to_cart_button_text', array( $this, 'lsx_sensei_add_to_cart_text' ) );
77
+			add_filter('sensei_wc_paid_courses_add_to_cart_button_text', array($this, 'lsx_sensei_add_to_cart_text'));
78 78
 
79
-			add_action( 'lsx_content_wrap_before', array( $this, 'lsx_sensei_results_header' ) );
79
+			add_action('lsx_content_wrap_before', array($this, 'lsx_sensei_results_header'));
80 80
 
81
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_course_breadcrumb_filter' ), 40, 1 );
82
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_course_breadcrumb_filter' ), 40, 1 );
81
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_course_breadcrumb_filter'), 40, 1);
82
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_course_breadcrumb_filter'), 40, 1);
83 83
 
84
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_lesson_breadcrumb_filter' ), 40, 1 );
85
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_lesson_breadcrumb_filter' ), 40, 1 );
84
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_lesson_breadcrumb_filter'), 40, 1);
85
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_lesson_breadcrumb_filter'), 40, 1);
86 86
 
87
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_module_breadcrumb_filter' ), 40, 1 );
88
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_module_breadcrumb_filter' ), 40, 1 );
87
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_module_breadcrumb_filter'), 40, 1);
88
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_module_breadcrumb_filter'), 40, 1);
89 89
 
90
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_learner_breadcrumb_filter' ), 40, 1 );
91
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_learner_breadcrumb_filter' ), 40, 1 );
90
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_learner_breadcrumb_filter'), 40, 1);
91
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_learner_breadcrumb_filter'), 40, 1);
92 92
 
93
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_quiz_breadcrumb_filter' ), 40, 1 );
94
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_quiz_breadcrumb_filter' ), 40, 1 );
93
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_quiz_breadcrumb_filter'), 40, 1);
94
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_quiz_breadcrumb_filter'), 40, 1);
95 95
 
96
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_messages_breadcrumb_filter' ), 40, 1 );
97
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_messages_breadcrumb_filter' ), 40, 1 );
96
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_messages_breadcrumb_filter'), 40, 1);
97
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_messages_breadcrumb_filter'), 40, 1);
98 98
 
99
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_single_message_breadcrumb_filter' ), 40, 1 );
100
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_single_message_breadcrumb_filter' ), 40, 1 );
99
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_single_message_breadcrumb_filter'), 40, 1);
100
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_single_message_breadcrumb_filter'), 40, 1);
101 101
 
102
-			add_filter( 'wpseo_breadcrumb_links', array( $this, 'lsx_sensei_results_breadcrumb_filter' ), 40, 1 );
103
-			add_filter( 'woocommerce_get_breadcrumb', array( $this, 'lsx_sensei_results_breadcrumb_filter' ), 40, 1 );
102
+			add_filter('wpseo_breadcrumb_links', array($this, 'lsx_sensei_results_breadcrumb_filter'), 40, 1);
103
+			add_filter('woocommerce_get_breadcrumb', array($this, 'lsx_sensei_results_breadcrumb_filter'), 40, 1);
104 104
 
105
-			add_action( 'sensei_archive_before_message_loop', array( $this, 'lsx_sensei_back_message_button' ) );
106
-			add_action( 'sensei_content_message_after', array( $this, 'lsx_sensei_view_message_button' ) );
105
+			add_action('sensei_archive_before_message_loop', array($this, 'lsx_sensei_back_message_button'));
106
+			add_action('sensei_content_message_after', array($this, 'lsx_sensei_view_message_button'));
107 107
 
108 108
 		}
109 109
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		 */
116 116
 		public static function get_instance() {
117 117
 			// If the single instance hasn't been set, set it now.
118
-			if ( null === self::$instance ) {
118
+			if (null === self::$instance) {
119 119
 				self::$instance = new self();
120 120
 			}
121 121
 			return self::$instance;
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 		 * @subpackage sensei
129 129
 		 */
130 130
 		public function lsx_sensei_scripts_add_styles() {
131
-			wp_enqueue_style( 'sensei-lsx', get_template_directory_uri() . '/assets/css/sensei/sensei.css', array( 'lsx_main' ), LSX_VERSION );
132
-			wp_style_add_data( 'sensei-lsx', 'rtl', 'replace' );
131
+			wp_enqueue_style('sensei-lsx', get_template_directory_uri() . '/assets/css/sensei/sensei.css', array('lsx_main'), LSX_VERSION);
132
+			wp_style_add_data('sensei-lsx', 'rtl', 'replace');
133 133
 		}
134 134
 
135 135
 		/**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 		 */
141 141
 		public function lsx_sensei_theme_wrapper_start() {
142 142
 			lsx_content_wrap_before();
143
-			echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">';
143
+			echo '<div id="primary" class="content-area ' . esc_attr(lsx_main_class()) . '">';
144 144
 			lsx_content_before();
145 145
 			echo '<main id="main" class="site-main" role="main">';
146 146
 			lsx_content_top();
@@ -166,18 +166,18 @@  discard block
 block discarded – undo
166 166
 		 * @param [type] $title
167 167
 		 * @return @title
168 168
 		 */
169
-		public function lsx_sensei_modify_archive_title( $title ) {
170
-			if ( is_archive() && is_post_type_archive( 'course' ) ) {
171
-				$title = __( 'Courses', 'lsx' );
169
+		public function lsx_sensei_modify_archive_title($title) {
170
+			if (is_archive() && is_post_type_archive('course')) {
171
+				$title = __('Courses', 'lsx');
172 172
 			}
173
-			if ( is_archive() && is_post_type_archive( 'sensei_message' ) ) {
174
-				$title = __( 'Messages', 'lsx' );
173
+			if (is_archive() && is_post_type_archive('sensei_message')) {
174
+				$title = __('Messages', 'lsx');
175 175
 			}
176
-			if ( is_archive() && is_post_type_archive( 'lesson' ) ) {
177
-				$title = __( 'Lessons', 'lsx' );
176
+			if (is_archive() && is_post_type_archive('lesson')) {
177
+				$title = __('Lessons', 'lsx');
178 178
 			}
179
-			if ( is_archive() && is_tax() ) {
180
-				$title = single_term_title( '', false );
179
+			if (is_archive() && is_tax()) {
180
+				$title = single_term_title('', false);
181 181
 			}
182 182
 			return $title;
183 183
 		}
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
 		 * @package    lsx
189 189
 		 * @subpackage sensei
190 190
 		 */
191
-		public function lsx_sensei_disable_lsx_banner( $disabled ) {
192
-			if ( is_sensei() ) {
191
+		public function lsx_sensei_disable_lsx_banner($disabled) {
192
+			if (is_sensei()) {
193 193
 				$disabled = true;
194 194
 			}
195 195
 
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
 		 * @package    lsx
203 203
 		 * @subpackage sensei
204 204
 		 */
205
-		public function lsx_sensei_archive_title( $html ) {
206
-			$html = preg_replace( '/<header class="archive-header"><h1>([^<]+)<\/h1><\/header>/i', '<h1>$1</h1>', $html );
205
+		public function lsx_sensei_archive_title($html) {
206
+			$html = preg_replace('/<header class="archive-header"><h1>([^<]+)<\/h1><\/header>/i', '<h1>$1</h1>', $html);
207 207
 			return $html;
208 208
 		}
209 209
 
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
 		 * @package    lsx
214 214
 		 * @subpackage sensei
215 215
 		 */
216
-		public function lsx_sensei_category_title( $html ) {
217
-			$html = str_replace( 'h2', 'h1', $html );
216
+		public function lsx_sensei_category_title($html) {
217
+			$html = str_replace('h2', 'h1', $html);
218 218
 			return $html;
219 219
 		}
220 220
 
@@ -224,18 +224,18 @@  discard block
 block discarded – undo
224 224
 		 * @package    lsx
225 225
 		 * @subpackage sensei
226 226
 		 */
227
-		public function lsx_sensei_add_buttons( $course_id ) {
227
+		public function lsx_sensei_add_buttons($course_id) {
228 228
 			global $post, $current_user;
229
-			$is_user_taking_course = Sensei_Utils::user_started_course( $post->ID, $current_user->ID );
230
-			if ( class_exists( 'Sensei_WC' ) ) {
231
-				$course_purchasable = Sensei_WC::is_course_purchasable( $post->ID );
229
+			$is_user_taking_course = Sensei_Utils::user_started_course($post->ID, $current_user->ID);
230
+			if (class_exists('Sensei_WC')) {
231
+				$course_purchasable = Sensei_WC::is_course_purchasable($post->ID);
232 232
 			}
233 233
 
234 234
 			?>
235 235
 				<section class="entry-actions">
236 236
 					<?php
237
-					if ( ( ! $is_user_taking_course ) && $course_purchasable ) {
238
-						Sensei_WC::the_add_to_cart_button_html( $post->ID );
237
+					if (( ! $is_user_taking_course) && $course_purchasable) {
238
+						Sensei_WC::the_add_to_cart_button_html($post->ID);
239 239
 					}
240 240
 					?>
241 241
 				</section>
@@ -248,8 +248,8 @@  discard block
 block discarded – undo
248 248
 		 * @package    lsx
249 249
 		 * @subpackage sensei
250 250
 		 */
251
-		public function lsx_sensei_add_to_cart_text( $text ) {
252
-			$text = esc_html__( 'Add to cart', 'lsx' );
251
+		public function lsx_sensei_add_to_cart_text($text) {
252
+			$text = esc_html__('Add to cart', 'lsx');
253 253
 			return $text;
254 254
 		}
255 255
 
@@ -259,46 +259,46 @@  discard block
 block discarded – undo
259 259
 		 * @package    lsx
260 260
 		 * @subpackage layout
261 261
 		 */
262
-		public function lsx_sensei_results_header( $user ) {
262
+		public function lsx_sensei_results_header($user) {
263 263
 
264 264
 			$default_size = 'sm';
265
-			$size         = apply_filters( 'lsx_bootstrap_column_size', $default_size );
265
+			$size         = apply_filters('lsx_bootstrap_column_size', $default_size);
266 266
 			global $wp_query;
267
-			if ( isset( $wp_query->query_vars['course_results'] ) ) {
267
+			if (isset($wp_query->query_vars['course_results'])) {
268 268
 				$is_results = $wp_query->query_vars['course_results'];
269 269
 			} else {
270 270
 				$is_results = false;
271 271
 			}
272
-			if ( isset( $wp_query->query_vars['learner_profile'] ) ) {
272
+			if (isset($wp_query->query_vars['learner_profile'])) {
273 273
 				$is_profile = $wp_query->query_vars['learner_profile'];
274 274
 			} else {
275 275
 				$is_profile = false;
276 276
 			}
277 277
 
278
-			if ( is_sticky() && $is_results ) :
279
-				$course_for_results = get_page_by_path( $is_results, OBJECT, 'course' );
278
+			if (is_sticky() && $is_results) :
279
+				$course_for_results = get_page_by_path($is_results, OBJECT, 'course');
280 280
 
281
-					$course_title = esc_html( $course_for_results->post_title );
281
+					$course_title = esc_html($course_for_results->post_title);
282 282
 				?>
283
-				<div class="archive-header-wrapper banner-single col-<?php echo esc_attr( $size ); ?>-12">
283
+				<div class="archive-header-wrapper banner-single col-<?php echo esc_attr($size); ?>-12">
284 284
 					<?php lsx_global_header_inner_bottom(); ?>
285 285
 					<header class="archive-header">
286
-						<h1 class="archive-title"><?php echo wp_kses_post( $course_title ); ?></h1>
286
+						<h1 class="archive-title"><?php echo wp_kses_post($course_title); ?></h1>
287 287
 					</header>
288 288
 
289 289
 				</div>
290 290
 				<?php
291 291
 			endif;
292 292
 
293
-			if ( $is_profile ) :
293
+			if ($is_profile) :
294 294
 				$query_var    = $wp_query->query_vars['learner_profile'];
295
-				$learner_user = Sensei_Learner::find_by_query_var( $query_var );
295
+				$learner_user = Sensei_Learner::find_by_query_var($query_var);
296 296
 				$learner_name = $learner_user->display_name;
297 297
 				?>
298
-				<div class="archive-header-wrapper banner-single col-<?php echo esc_attr( $size ); ?>-12">
298
+				<div class="archive-header-wrapper banner-single col-<?php echo esc_attr($size); ?>-12">
299 299
 					<?php lsx_global_header_inner_bottom(); ?>
300 300
 					<header class="archive-header">
301
-						<h1 class="archive-title"><?php echo esc_html( $learner_name ); ?></h1>
301
+						<h1 class="archive-title"><?php echo esc_html($learner_name); ?></h1>
302 302
 					</header>
303 303
 
304 304
 				</div>
@@ -311,21 +311,21 @@  discard block
 block discarded – undo
311 311
 		 * @param $crumbs
312 312
 		 * @return array
313 313
 		 */
314
-		public function lsx_sensei_course_breadcrumb_filter( $crumbs, $id = 0 ) {
315
-			if ( is_single() && ( is_singular( 'course' ) ) ) {
314
+		public function lsx_sensei_course_breadcrumb_filter($crumbs, $id = 0) {
315
+			if (is_single() && (is_singular('course'))) {
316 316
 				global $course;
317 317
 				$lesson          = get_the_title();
318
-				$course_page_url = intval( Sensei()->settings->settings['course_page'] );
319
-				$course_page_url = get_permalink( $course_page_url );
318
+				$course_page_url = intval(Sensei()->settings->settings['course_page']);
319
+				$course_page_url = get_permalink($course_page_url);
320 320
 
321
-				if ( $lesson ) {
321
+				if ($lesson) {
322 322
 
323 323
 					$new_crumbs    = array();
324 324
 					$new_crumbs[0] = $crumbs[0];
325 325
 
326
-					if ( function_exists( 'woocommerce_breadcrumb' ) ) {
326
+					if (function_exists('woocommerce_breadcrumb')) {
327 327
 						$new_crumbs[1] = array(
328
-							0 => __( 'All Courses', 'lsx' ),
328
+							0 => __('All Courses', 'lsx'),
329 329
 							1 => $course_page_url,
330 330
 						);
331 331
 						$new_crumbs[2] = array(
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 						);
334 334
 					} else {
335 335
 						$new_crumbs[1] = array(
336
-							'text' => __( 'All Courses', 'lsx' ),
336
+							'text' => __('All Courses', 'lsx'),
337 337
 							'url'  => $course_page_url,
338 338
 						);
339 339
 						$new_crumbs[2] = array(
@@ -351,34 +351,34 @@  discard block
 block discarded – undo
351 351
 		 * @param $crumbs
352 352
 		 * @return array
353 353
 		 */
354
-		public function lsx_sensei_lesson_breadcrumb_filter( $crumbs, $id = 0 ) {
355
-			if ( is_sensei() && is_single() && ( is_singular( 'lesson' ) ) ) {
354
+		public function lsx_sensei_lesson_breadcrumb_filter($crumbs, $id = 0) {
355
+			if (is_sensei() && is_single() && (is_singular('lesson'))) {
356 356
 				global $course;
357 357
 				$lesson          = get_the_title();
358
-				$course_page_url = intval( Sensei()->settings->settings['course_page'] );
359
-				$course_page_url = get_permalink( $course_page_url );
358
+				$course_page_url = intval(Sensei()->settings->settings['course_page']);
359
+				$course_page_url = get_permalink($course_page_url);
360 360
 
361
-				if ( empty( $id ) ) {
361
+				if (empty($id)) {
362 362
 					$id = get_the_ID();
363 363
 				}
364 364
 
365
-				if ( 0 < intval( $id ) ) {
366
-					$course       = intval( get_post_meta( $id, '_lesson_course', true ) );
367
-					$course_id    = esc_url( get_permalink( $course ) );
368
-					$course_title = esc_html( get_the_title( $course ) );
369
-					if ( ! $course ) {
365
+				if (0 < intval($id)) {
366
+					$course       = intval(get_post_meta($id, '_lesson_course', true));
367
+					$course_id    = esc_url(get_permalink($course));
368
+					$course_title = esc_html(get_the_title($course));
369
+					if ( ! $course) {
370 370
 						return;
371 371
 					}
372 372
 				}
373 373
 
374
-				if ( $course_id ) {
374
+				if ($course_id) {
375 375
 
376 376
 					$new_crumbs    = array();
377 377
 					$new_crumbs[0] = $crumbs[0];
378 378
 
379
-					if ( function_exists( 'woocommerce_breadcrumb' ) ) {
379
+					if (function_exists('woocommerce_breadcrumb')) {
380 380
 						$new_crumbs[1] = array(
381
-							0 => __( 'Courses', 'lsx' ),
381
+							0 => __('Courses', 'lsx'),
382 382
 							1 => $course_page_url,
383 383
 						);
384 384
 						$new_crumbs[2] = array(
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 						);
391 391
 					} else {
392 392
 						$new_crumbs[1] = array(
393
-							'text' => __( 'Courses', 'lsx' ),
393
+							'text' => __('Courses', 'lsx'),
394 394
 							'url'  => $course_page_url,
395 395
 						);
396 396
 						$new_crumbs[2] = array(
@@ -412,27 +412,27 @@  discard block
 block discarded – undo
412 412
 		 * @param $crumbs
413 413
 		 * @return array
414 414
 		 */
415
-		public function lsx_sensei_module_breadcrumb_filter( $crumbs, $id = 0 ) {
416
-			if ( ! empty( get_queried_object()->name ) ) {
417
-				$title = apply_filters( 'sensei_module_archive_title', get_queried_object()->name );
415
+		public function lsx_sensei_module_breadcrumb_filter($crumbs, $id = 0) {
416
+			if ( ! empty(get_queried_object()->name)) {
417
+				$title = apply_filters('sensei_module_archive_title', get_queried_object()->name);
418 418
 			}
419 419
 
420
-			if ( is_sensei() && is_tax() && is_archive() && ( ! empty( $title ) ) ) {
420
+			if (is_sensei() && is_tax() && is_archive() && ( ! empty($title))) {
421 421
 
422 422
 				$lesson          = get_the_archive_title();
423
-				$course_page_url = intval( Sensei()->settings->settings['course_page'] );
424
-				$course_page_url = get_permalink( $course_page_url );
423
+				$course_page_url = intval(Sensei()->settings->settings['course_page']);
424
+				$course_page_url = get_permalink($course_page_url);
425 425
 
426
-				if ( empty( $id ) ) {
426
+				if (empty($id)) {
427 427
 					$id = get_the_ID();
428 428
 				}
429 429
 
430 430
 				$new_crumbs    = array();
431 431
 				$new_crumbs[0] = $crumbs[0];
432 432
 
433
-				if ( function_exists( 'woocommerce_breadcrumb' ) ) {
433
+				if (function_exists('woocommerce_breadcrumb')) {
434 434
 					$new_crumbs[1] = array(
435
-						0 => __( 'Courses', 'lsx' ),
435
+						0 => __('Courses', 'lsx'),
436 436
 						1 => $course_page_url,
437 437
 					);
438 438
 					$new_crumbs[2] = array(
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 					);
441 441
 				} else {
442 442
 					$new_crumbs[1] = array(
443
-						'text' => __( 'Courses', 'lsx' ),
443
+						'text' => __('Courses', 'lsx'),
444 444
 						'url'  => $course_page_url,
445 445
 					);
446 446
 					$new_crumbs[2] = array(
@@ -457,38 +457,38 @@  discard block
 block discarded – undo
457 457
 		 * @param $crumbs
458 458
 		 * @return array
459 459
 		 */
460
-		public function lsx_sensei_learner_breadcrumb_filter( $crumbs, $id = 0 ) {
460
+		public function lsx_sensei_learner_breadcrumb_filter($crumbs, $id = 0) {
461 461
 			global $wp_query;
462 462
 
463
-			if ( isset( $wp_query->query_vars['learner_profile'] ) ) {
463
+			if (isset($wp_query->query_vars['learner_profile'])) {
464 464
 				$is_profile = $wp_query->query_vars['learner_profile'];
465 465
 			} else {
466 466
 				$is_profile = false;
467 467
 			}
468 468
 
469
-			if ( $is_profile ) {
469
+			if ($is_profile) {
470 470
 
471
-				if ( empty( $id ) ) {
471
+				if (empty($id)) {
472 472
 					$id = get_the_ID();
473 473
 				}
474 474
 
475 475
 				$query_var    = $wp_query->query_vars['learner_profile'];
476
-				$learner_user = Sensei_Learner::find_by_query_var( $query_var );
476
+				$learner_user = Sensei_Learner::find_by_query_var($query_var);
477 477
 				$learner_name = $learner_user->display_name;
478 478
 
479 479
 				$new_crumbs    = array();
480 480
 				$new_crumbs[0] = $crumbs[0];
481 481
 
482
-				if ( function_exists( 'woocommerce_breadcrumb' ) ) {
482
+				if (function_exists('woocommerce_breadcrumb')) {
483 483
 					$new_crumbs[1] = array(
484
-						0 => __( 'Learners', 'lsx' ),
484
+						0 => __('Learners', 'lsx'),
485 485
 					);
486 486
 					$new_crumbs[2] = array(
487 487
 						0 => $learner_name,
488 488
 					);
489 489
 				} else {
490 490
 					$new_crumbs[1] = array(
491
-						'text' => __( 'Learners', 'lsx' ),
491
+						'text' => __('Learners', 'lsx'),
492 492
 					);
493 493
 					$new_crumbs[2] = array(
494 494
 						'text' => $learner_name,
@@ -504,36 +504,36 @@  discard block
 block discarded – undo
504 504
 		 * @param $crumbs
505 505
 		 * @return array
506 506
 		 */
507
-		public function lsx_sensei_messages_breadcrumb_filter( $crumbs, $id = 0 ) {
508
-			if ( is_archive() && ( is_post_type_archive( 'sensei_message' ) ) ) {
507
+		public function lsx_sensei_messages_breadcrumb_filter($crumbs, $id = 0) {
508
+			if (is_archive() && (is_post_type_archive('sensei_message'))) {
509 509
 
510
-				$course_page_url = intval( Sensei()->settings->settings['course_page'] );
511
-				$course_page_url = get_permalink( $course_page_url );
510
+				$course_page_url = intval(Sensei()->settings->settings['course_page']);
511
+				$course_page_url = get_permalink($course_page_url);
512 512
 
513
-				if ( empty( $id ) ) {
513
+				if (empty($id)) {
514 514
 					$id = get_the_ID();
515 515
 				}
516 516
 
517
-				if ( $id ) {
517
+				if ($id) {
518 518
 
519 519
 					$new_crumbs    = array();
520 520
 					$new_crumbs[0] = $crumbs[0];
521 521
 
522
-					if ( function_exists( 'woocommerce_breadcrumb' ) ) {
522
+					if (function_exists('woocommerce_breadcrumb')) {
523 523
 						$new_crumbs[1] = array(
524
-							0 => __( 'Courses', 'lsx' ),
524
+							0 => __('Courses', 'lsx'),
525 525
 							1 => $course_page_url,
526 526
 						);
527 527
 						$new_crumbs[2] = array(
528
-							0 => __( 'Messages', 'lsx' ),
528
+							0 => __('Messages', 'lsx'),
529 529
 						);
530 530
 					} else {
531 531
 						$new_crumbs[1] = array(
532
-							'text' => __( 'Courses', 'lsx' ),
532
+							'text' => __('Courses', 'lsx'),
533 533
 							'url'  => $course_page_url,
534 534
 						);
535 535
 						$new_crumbs[2] = array(
536
-							'text' => __( 'Messages', 'lsx' ),
536
+							'text' => __('Messages', 'lsx'),
537 537
 						);
538 538
 					}
539 539
 					$crumbs = $new_crumbs;
@@ -547,35 +547,35 @@  discard block
 block discarded – undo
547 547
 		 * @param $crumbs
548 548
 		 * @return array
549 549
 		 */
550
-		public function lsx_sensei_single_message_breadcrumb_filter( $crumbs, $id = 0 ) {
551
-			if ( is_single() && ( is_singular( 'sensei_message' ) ) ) {
550
+		public function lsx_sensei_single_message_breadcrumb_filter($crumbs, $id = 0) {
551
+			if (is_single() && (is_singular('sensei_message'))) {
552 552
 
553 553
 				$messages_page_url = '/messages/';
554 554
 
555
-				if ( empty( $id ) ) {
555
+				if (empty($id)) {
556 556
 					$id = get_the_ID();
557 557
 				}
558 558
 
559
-				if ( $id ) {
559
+				if ($id) {
560 560
 
561 561
 					$new_crumbs    = array();
562 562
 					$new_crumbs[0] = $crumbs[0];
563 563
 
564
-					if ( function_exists( 'woocommerce_breadcrumb' ) ) {
564
+					if (function_exists('woocommerce_breadcrumb')) {
565 565
 						$new_crumbs[1] = array(
566
-							0 => __( 'Messages', 'lsx' ),
566
+							0 => __('Messages', 'lsx'),
567 567
 							1 => $messages_page_url,
568 568
 						);
569 569
 						$new_crumbs[2] = array(
570
-							0 => __( 'Message', 'lsx' ),
570
+							0 => __('Message', 'lsx'),
571 571
 						);
572 572
 					} else {
573 573
 						$new_crumbs[1] = array(
574
-							'text' => __( 'Messages', 'lsx' ),
574
+							'text' => __('Messages', 'lsx'),
575 575
 							'url'  => $messages_page_url,
576 576
 						);
577 577
 						$new_crumbs[2] = array(
578
-							'text' => __( 'Message', 'lsx' ),
578
+							'text' => __('Message', 'lsx'),
579 579
 						);
580 580
 					}
581 581
 					$crumbs = $new_crumbs;
@@ -589,35 +589,35 @@  discard block
 block discarded – undo
589 589
 		 * @param $crumbs
590 590
 		 * @return array
591 591
 		 */
592
-		public function lsx_sensei_quiz_breadcrumb_filter( $crumbs, $id = 0 ) {
593
-			if ( ( is_single() && ( is_singular( 'quiz' ) ) ) ) {
592
+		public function lsx_sensei_quiz_breadcrumb_filter($crumbs, $id = 0) {
593
+			if ((is_single() && (is_singular('quiz')))) {
594 594
 				global $course;
595
-				$course_page_url = intval( Sensei()->settings->settings['course_page'] );
596
-				$course_page_url = get_permalink( $course_page_url );
595
+				$course_page_url = intval(Sensei()->settings->settings['course_page']);
596
+				$course_page_url = get_permalink($course_page_url);
597 597
 				$lesson          = get_the_title();
598 598
 
599
-				if ( empty( $id ) ) {
599
+				if (empty($id)) {
600 600
 					$id = get_the_ID();
601 601
 				}
602 602
 
603
-				if ( 0 < intval( $id ) ) {
603
+				if (0 < intval($id)) {
604 604
 
605
-					$course       = intval( get_post_meta( $id, '_quiz_lesson', true ) );
606
-					$course_id    = esc_url( get_permalink( $course ) );
607
-					$course_title = esc_html( get_the_title( $course ) );
608
-					if ( ! $course ) {
605
+					$course       = intval(get_post_meta($id, '_quiz_lesson', true));
606
+					$course_id    = esc_url(get_permalink($course));
607
+					$course_title = esc_html(get_the_title($course));
608
+					if ( ! $course) {
609 609
 						return;
610 610
 					}
611 611
 				}
612 612
 
613
-				if ( $course_id ) {
613
+				if ($course_id) {
614 614
 
615 615
 					$new_crumbs    = array();
616 616
 					$new_crumbs[0] = $crumbs[0];
617 617
 
618
-					if ( function_exists( 'woocommerce_breadcrumb' ) ) {
618
+					if (function_exists('woocommerce_breadcrumb')) {
619 619
 						$new_crumbs[1] = array(
620
-							0 => __( 'Courses', 'lsx' ),
620
+							0 => __('Courses', 'lsx'),
621 621
 							1 => $course_page_url,
622 622
 						);
623 623
 						$new_crumbs[2] = array(
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
 						);
630 630
 					} else {
631 631
 						$new_crumbs[1] = array(
632
-							'text' => __( 'Courses', 'lsx' ),
632
+							'text' => __('Courses', 'lsx'),
633 633
 							'url'  => $course_page_url,
634 634
 						);
635 635
 						$new_crumbs[2] = array(
@@ -652,36 +652,36 @@  discard block
 block discarded – undo
652 652
 		 * @param $crumbs
653 653
 		 * @return array
654 654
 		 */
655
-		public function lsx_sensei_results_breadcrumb_filter( $crumbs, $id = 0 ) {
656
-			if ( is_sticky() ) {
655
+		public function lsx_sensei_results_breadcrumb_filter($crumbs, $id = 0) {
656
+			if (is_sticky()) {
657 657
 				global $wp_query;
658 658
 				$course_id = '';
659
-				if ( isset( $wp_query->query_vars['course_results'] ) ) {
659
+				if (isset($wp_query->query_vars['course_results'])) {
660 660
 					$is_results = $wp_query->query_vars['course_results'];
661 661
 				}
662
-				$course_page_url = intval( Sensei()->settings->settings['course_page'] );
663
-				$course_page_url = get_permalink( $course_page_url );
662
+				$course_page_url = intval(Sensei()->settings->settings['course_page']);
663
+				$course_page_url = get_permalink($course_page_url);
664 664
 
665
-				if ( empty( $id ) ) {
665
+				if (empty($id)) {
666 666
 					$id = get_the_ID();
667 667
 				}
668 668
 
669
-				if ( isset( $is_results ) ) {
670
-					$course_for_results = get_page_by_path( $is_results, OBJECT, 'course' );
669
+				if (isset($is_results)) {
670
+					$course_for_results = get_page_by_path($is_results, OBJECT, 'course');
671 671
 
672
-					$course_id    = esc_url( get_permalink( $course_for_results ) );
673
-					$course_title = esc_html( $course_for_results->post_title );
672
+					$course_id    = esc_url(get_permalink($course_for_results));
673
+					$course_title = esc_html($course_for_results->post_title);
674 674
 
675 675
 				}
676 676
 
677
-				if ( $course_id ) {
677
+				if ($course_id) {
678 678
 					$new_crumbs    = array();
679 679
 					$new_crumbs[0] = $crumbs[0];
680 680
 
681
-					if ( $is_results ) {
682
-						if ( function_exists( 'woocommerce_breadcrumb' ) ) {
681
+					if ($is_results) {
682
+						if (function_exists('woocommerce_breadcrumb')) {
683 683
 							$new_crumbs[1] = array(
684
-								0 => __( 'Courses', 'lsx' ),
684
+								0 => __('Courses', 'lsx'),
685 685
 								1 => $course_page_url,
686 686
 							);
687 687
 							$new_crumbs[2] = array(
@@ -689,15 +689,15 @@  discard block
 block discarded – undo
689 689
 								1 => $course_id,
690 690
 							);
691 691
 							$new_crumbs[3] = array(
692
-								0 => __( 'Results', 'lsx' ),
692
+								0 => __('Results', 'lsx'),
693 693
 							);
694 694
 						} else {
695 695
 							$new_crumbs[1] = array(
696
-								'text' => __( 'Courses', 'lsx' ),
696
+								'text' => __('Courses', 'lsx'),
697 697
 								'url'  => $course_page_url,
698 698
 							);
699 699
 							$new_crumbs[2] = array(
700
-								'text' => __( 'Results', 'lsx' ),
700
+								'text' => __('Results', 'lsx'),
701 701
 							);
702 702
 						}
703 703
 					}
@@ -713,9 +713,9 @@  discard block
 block discarded – undo
713 713
 		 * @param [type] $message_post_id
714 714
 		 * @return void
715 715
 		 */
716
-		public function lsx_sensei_view_message_button( $message_post_id ) {
717
-			$message_link = get_the_permalink( $message_post_id );
718
-			echo '<a href="' . esc_url_raw( $message_link ) . '" class="btn view-msg-btn">' . wp_kses_post( 'View Message', 'lsx' ) . '</a>';
716
+		public function lsx_sensei_view_message_button($message_post_id) {
717
+			$message_link = get_the_permalink($message_post_id);
718
+			echo '<a href="' . esc_url_raw($message_link) . '" class="btn view-msg-btn">' . wp_kses_post('View Message', 'lsx') . '</a>';
719 719
 		}
720 720
 
721 721
 		/**
@@ -724,9 +724,9 @@  discard block
 block discarded – undo
724 724
 		 * @param [type] $message_post_id
725 725
 		 * @return void
726 726
 		 */
727
-		public function lsx_sensei_back_message_button( $courses_link ) {
727
+		public function lsx_sensei_back_message_button($courses_link) {
728 728
 			$courses_link = '/my-courses/';
729
-			echo '<a href="' . esc_url_raw( $courses_link ) . '" class="btn border-btn my-courses-btn">' . wp_kses_post( 'My Courses', 'lsx' ) . '</a>';
729
+			echo '<a href="' . esc_url_raw($courses_link) . '" class="btn border-btn my-courses-btn">' . wp_kses_post('My Courses', 'lsx') . '</a>';
730 730
 		}
731 731
 	}
732 732
 
Please login to merge, or discard this patch.
single.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <?php lsx_content_wrap_before(); ?>
11 11
 
12
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 	<?php lsx_content_before(); ?>
15 15
 
@@ -17,18 +17,18 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22 22
 			<?php
23
-			while ( have_posts() ) :
23
+			while (have_posts()) :
24 24
 				the_post();
25 25
 			?>
26 26
 
27 27
 				<?php
28
-				if ( is_singular( 'post' ) ) {
29
-					get_template_part( 'partials/content', 'post' );
28
+				if (is_singular('post')) {
29
+					get_template_part('partials/content', 'post');
30 30
 				} else {
31
-					get_template_part( 'partials/content', 'custom' );
31
+					get_template_part('partials/content', 'custom');
32 32
 				}
33 33
 				?>
34 34
 
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 	<?php lsx_content_after(); ?>
44 44
 
45 45
 	<?php
46
-	if ( is_singular( 'post' ) ) {
46
+	if (is_singular('post')) {
47 47
 		lsx_post_nav();
48 48
 	}
49 49
 	?>
50 50
 
51 51
 	<?php
52
-	if ( comments_open() ) {
52
+	if (comments_open()) {
53 53
 		comments_template();
54 54
 	}
55 55
 	?>
Please login to merge, or discard this patch.
page-templates/template-wc-thank-you.php 1 patch
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -22,74 +22,74 @@  discard block
 block discarded – undo
22 22
 			<ul class="lsx-wc-checkout-steps-items">
23 23
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-done">
24 24
 						<i class="fa fa-check-circle" aria-hidden="true"></i>
25
-						<span><span><?php esc_html_e( 'Choose your product', 'lsx' ); ?></span></span>
25
+						<span><span><?php esc_html_e('Choose your product', 'lsx'); ?></span></span>
26 26
 						<i class="fa fa-angle-right" aria-hidden="true"></i>
27 27
 					</li>
28 28
 
29 29
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-done lsx-wc-checkout-steps-item-cart">
30 30
 						<i class="fa fa-check-circle" aria-hidden="true"></i>
31
-						<span><span><?php esc_html_e( 'My Cart', 'lsx' ); ?></span></span>
31
+						<span><span><?php esc_html_e('My Cart', 'lsx'); ?></span></span>
32 32
 					</li>
33 33
 
34 34
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-done lsx-wc-checkout-steps-item-payment">
35 35
 					<i class="fa fa-check-circle" aria-hidden="true"></i>
36
-						<span><span><?php esc_html_e( 'Payment details', 'lsx' ); ?></span></span>
36
+						<span><span><?php esc_html_e('Payment details', 'lsx'); ?></span></span>
37 37
 						<i class="fa fa-angle-right" aria-hidden="true"></i>
38 38
 					</li>
39 39
 
40 40
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-current lsx-wc-checkout-steps-item-thankyou">
41
-						<i class="lsx-wc-checkout-steps-counter" aria-hidden="true"><?php esc_html_e( '4', 'lsx' ); ?></i>
42
-						<span><span><?php esc_html_e( 'Thank you!', 'lsx' ); ?></span></span>
41
+						<i class="lsx-wc-checkout-steps-counter" aria-hidden="true"><?php esc_html_e('4', 'lsx'); ?></i>
42
+						<span><span><?php esc_html_e('Thank you!', 'lsx'); ?></span></span>
43 43
 					</li>
44 44
 			</ul>
45 45
 		</div>
46 46
 
47 47
 		<?php lsx_content_top(); ?>
48 48
 
49
-		<?php if ( have_posts() ) : ?>
49
+		<?php if (have_posts()) : ?>
50 50
 
51 51
 			<?php
52
-			while ( have_posts() ) :
52
+			while (have_posts()) :
53 53
 				the_post();
54 54
 				?>
55 55
 
56 56
 				<?php
57 57
 					WC()->payment_gateways()->payment_gateways;
58
-					$order_key = isset( $_GET['key'] ) ? wc_clean( $_GET['key'] ) : '';
59
-					$order_id  = absint( $wp->query_vars['order-received'] );
60
-					$order     = wc_get_order( $order_id );
58
+					$order_key = isset($_GET['key']) ? wc_clean($_GET['key']) : '';
59
+					$order_id  = absint($wp->query_vars['order-received']);
60
+					$order     = wc_get_order($order_id);
61 61
 				?>
62 62
 
63
-				<?php if ( $order && $order->get_id() === $order_id && $order->get_order_key() === $order_key ) : ?>
63
+				<?php if ($order && $order->get_id() === $order_id && $order->get_order_key() === $order_key) : ?>
64 64
 
65 65
 					<?php // @codingStandardsIgnoreStart ?>
66 66
 
67
-					<div class="alert alert-success"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'lsx' ), $order ); ?></div>
67
+					<div class="alert alert-success"><?php echo apply_filters('woocommerce_thankyou_order_received_text', esc_html__('Thank you. Your order has been received.', 'lsx'), $order); ?></div>
68 68
 
69 69
 					<div class="row">
70 70
 						<div class="col-xs-12 col-sm-6">
71
-							<h2><?php esc_html_e( 'Order Details', 'lsx' ); ?></h2>
71
+							<h2><?php esc_html_e('Order Details', 'lsx'); ?></h2>
72 72
 
73 73
 							<table class="table">
74 74
 								<tbody>
75 75
 									<tr>
76
-										<th><?php esc_html_e( 'Order:', 'lsx' ); ?></th>
76
+										<th><?php esc_html_e('Order:', 'lsx'); ?></th>
77 77
 										<td><?php echo $order->get_order_number(); ?></td>
78 78
 									</tr>
79 79
 
80 80
 									<tr>
81
-										<th><?php esc_html_e( 'Date:', 'lsx' ); ?></th>
82
-										<td><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></td>
81
+										<th><?php esc_html_e('Date:', 'lsx'); ?></th>
82
+										<td><?php echo date_i18n(get_option('date_format'), strtotime($order->order_date)); ?></td>
83 83
 									</tr>
84 84
 
85 85
 									<tr>
86
-										<th><?php esc_html_e( 'Total:', 'lsx' ); ?></th>
86
+										<th><?php esc_html_e('Total:', 'lsx'); ?></th>
87 87
 										<td><?php echo $order->get_formatted_order_total(); ?></td>
88 88
 									</tr>
89 89
 
90
-									<?php if ( $order->payment_method_title ) : ?>
90
+									<?php if ($order->payment_method_title) : ?>
91 91
 										<tr>
92
-											<th><?php esc_html_e( 'Payment method:', 'lsx' ); ?></th>
92
+											<th><?php esc_html_e('Payment method:', 'lsx'); ?></th>
93 93
 											<td><?php echo $order->payment_method_title; ?></td>
94 94
 										</tr>
95 95
 									<?php endif; ?>
@@ -98,48 +98,48 @@  discard block
 block discarded – undo
98 98
 
99 99
 							<?php // do_action( 'woocommerce_order_details_after_order_table', $order ); ?>
100 100
 
101
-							<h2><?php esc_html_e( 'Customer details', 'lsx' ); ?></h2>
101
+							<h2><?php esc_html_e('Customer details', 'lsx'); ?></h2>
102 102
 
103 103
 							<dl class="customer_details">
104 104
 								<?php
105
-									if ( $order->billing_email ) echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>';
106
-									if ( $order->billing_phone ) echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
105
+									if ($order->billing_email) echo '<dt>' . esc_html__('Email:', 'lsx') . '</dt><dd>' . $order->billing_email . '</dd>';
106
+									if ($order->billing_phone) echo '<dt>' . esc_html__('Telephone:', 'lsx') . '</dt><dd>' . $order->billing_phone . '</dd>';
107 107
 
108 108
 									// Additional customer details hook
109
-									do_action( 'woocommerce_order_details_after_customer_details', $order );
109
+									do_action('woocommerce_order_details_after_customer_details', $order);
110 110
 								?>
111 111
 							</dl>
112 112
 
113
-							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
113
+							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option('woocommerce_calc_shipping') !== 'no') : ?>
114 114
 
115 115
 								<div class="row">
116 116
 									<div class="col-xs-12 col-sm-6">
117 117
 
118 118
 							<?php endif; ?>
119 119
 
120
-										<h3><?php esc_html_e( 'Billing Address', 'lsx' ); ?></h3>
120
+										<h3><?php esc_html_e('Billing Address', 'lsx'); ?></h3>
121 121
 
122 122
 										<address>
123 123
 											<?php
124
-												if ( ! $order->get_formatted_billing_address() ) {
125
-													esc_html_e( 'N/A', 'lsx' );
124
+												if ( ! $order->get_formatted_billing_address()) {
125
+													esc_html_e('N/A', 'lsx');
126 126
 												} else {
127 127
 													echo $order->get_formatted_billing_address();
128 128
 												}
129 129
 											?>
130 130
 										</address>
131 131
 
132
-							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
132
+							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option('woocommerce_calc_shipping') !== 'no') : ?>
133 133
 
134 134
 									</div>
135 135
 
136 136
 									<div class="col-xs-12 col-sm-6">
137
-										<h3><?php esc_html_e( 'Shipping Address', 'lsx' ); ?></h3>
137
+										<h3><?php esc_html_e('Shipping Address', 'lsx'); ?></h3>
138 138
 
139 139
 										<address>
140 140
 											<?php
141
-												if ( ! $order->get_formatted_shipping_address() ) {
142
-													esc_html_e( 'N/A', 'lsx' );
141
+												if ( ! $order->get_formatted_shipping_address()) {
142
+													esc_html_e('N/A', 'lsx');
143 143
 												} else {
144 144
 													echo $order->get_formatted_shipping_address();
145 145
 												}
@@ -152,68 +152,68 @@  discard block
 block discarded – undo
152 152
 						</div>
153 153
 
154 154
 						<div class="col-xs-12 col-sm-6">
155
-							<h2><?php esc_html_e( 'Products details', 'lsx' ); ?></h2>
155
+							<h2><?php esc_html_e('Products details', 'lsx'); ?></h2>
156 156
 
157 157
 							<table class="table">
158 158
 								<thead>
159 159
 									<tr>
160
-										<th><?php esc_html_e( 'Product', 'lsx' ); ?></th>
161
-										<th><?php esc_html_e( 'Total', 'lsx' ); ?></th>
160
+										<th><?php esc_html_e('Product', 'lsx'); ?></th>
161
+										<th><?php esc_html_e('Total', 'lsx'); ?></th>
162 162
 									</tr>
163 163
 								</thead>
164 164
 
165 165
 								<tbody>
166 166
 									<?php
167
-										if ( sizeof( $order->get_items() ) > 0 ) :
168
-											foreach( $order->get_items() as $item ) :
169
-												$_product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item );
170
-												$item_meta = new WC_Order_Item_Meta( $item['item_meta'], $_product );
167
+										if (sizeof($order->get_items()) > 0) :
168
+											foreach ($order->get_items() as $item) :
169
+												$_product = apply_filters('woocommerce_order_item_product', $order->get_product_from_item($item), $item);
170
+												$item_meta = new WC_Order_Item_Meta($item['item_meta'], $_product);
171 171
 											?>
172 172
 
173 173
 											<tr>
174 174
 												<td>
175 175
 													<?php
176
-														if ( $_product && ! $_product->is_visible() ) {
177
-															echo apply_filters( 'woocommerce_order_item_name', $item['name'], $item );
176
+														if ($_product && ! $_product->is_visible()) {
177
+															echo apply_filters('woocommerce_order_item_name', $item['name'], $item);
178 178
 														} else {
179
-															echo apply_filters( 'woocommerce_order_item_name', sprintf( '<a href="%s">%s</a>', get_permalink( $item['product_id'] ), $item['name'] ), $item );
179
+															echo apply_filters('woocommerce_order_item_name', sprintf('<a href="%s">%s</a>', get_permalink($item['product_id']), $item['name']), $item);
180 180
 														}
181 181
 
182
-														echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '&times; %s', $item['qty'] ) . '</strong>', $item );
182
+														echo apply_filters('woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf('&times; %s', $item['qty']) . '</strong>', $item);
183 183
 
184 184
 														ob_start();
185 185
 														$item_meta->display();
186 186
 														$_item_meta = ob_get_clean();
187 187
 
188
-														if ( ! empty( $_item_meta ) ) {
188
+														if ( ! empty($_item_meta)) {
189 189
 															echo $_item_meta;
190 190
 														} else {
191 191
 															echo '<br>';
192 192
 														}
193 193
 
194
-														if ( $_product && $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted() ) {
195
-															$download_files = $order->get_item_downloads( $item );
194
+														if ($_product && $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted()) {
195
+															$download_files = $order->get_item_downloads($item);
196 196
 															$i = 0;
197 197
 															$links = array();
198 198
 
199
-															if ( empty( $download_files ) ) {
199
+															if (empty($download_files)) {
200 200
 																$download_files = $_product->get_files();
201 201
 															}
202 202
 
203
-															foreach ( $download_files as $download_id => $file ) {
203
+															foreach ($download_files as $download_id => $file) {
204 204
 																++$i;
205 205
 
206
-																if ( $i > 1 ) {
206
+																if ($i > 1) {
207 207
 																	echo '<br>';
208 208
 																}
209 209
 
210
-																if ( ! empty( $_item_meta ) ) {
210
+																if ( ! empty($_item_meta)) {
211 211
 																	echo '<span style="margin-top: -2.4rem; display: block;">';
212 212
 																} else {
213 213
 																	echo '<span>';
214 214
 																}
215 215
 
216
-																echo '<a href="' . esc_url( $file['download_url'] ? $file['download_url'] : $file['file'] ) . '">' . sprintf( esc_html__( 'Download file%s', 'lsx' ), ( count( $download_files ) > 1 ? ' ' . $i . ': ' : ': ' ) ) . esc_html( $file['name'] ) . '</a>';
216
+																echo '<a href="' . esc_url($file['download_url'] ? $file['download_url'] : $file['file']) . '">' . sprintf(esc_html__('Download file%s', 'lsx'), (count($download_files) > 1 ? ' ' . $i . ': ' : ': ')) . esc_html($file['name']) . '</a>';
217 217
 																echo '</span>';
218 218
 															}
219 219
 														}
@@ -221,15 +221,15 @@  discard block
 block discarded – undo
221 221
 												</td>
222 222
 
223 223
 												<td>
224
-													<?php echo $order->get_formatted_line_subtotal( $item ); ?>
224
+													<?php echo $order->get_formatted_line_subtotal($item); ?>
225 225
 												</td>
226 226
 											</tr>
227 227
 
228 228
 											<?php
229
-												if ( $order->has_status( array( 'completed', 'processing' ) ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) {
229
+												if ($order->has_status(array('completed', 'processing')) && ($purchase_note = get_post_meta($_product->id, '_purchase_note', true))) {
230 230
 													?>
231 231
 													<tr class="product-purchase-note">
232
-														<td colspan="3"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
232
+														<td colspan="3"><?php echo wpautop(do_shortcode(wp_kses_post($purchase_note))); ?></td>
233 233
 													</tr>
234 234
 													<?php
235 235
 												}
@@ -242,8 +242,8 @@  discard block
 block discarded – undo
242 242
 
243 243
 								<tfoot>
244 244
 									<?php
245
-										if ( $totals = $order->get_order_item_totals() ) :
246
-											foreach ( $totals as $total ) :
245
+										if ($totals = $order->get_order_item_totals()) :
246
+											foreach ($totals as $total) :
247 247
 												?>
248 248
 												<tr>
249 249
 													<th scope="row"><?php echo $total['label']; ?></th>
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
 								</tfoot>
257 257
 							</table>
258 258
 
259
-							<?php if ( 'bacs' === $order->get_payment_method() ) { ?>
260
-								<h2><?php esc_html_e( 'Bank Details', 'lsx' ); ?></h2>
261
-								<?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?>
259
+							<?php if ('bacs' === $order->get_payment_method()) { ?>
260
+								<h2><?php esc_html_e('Bank Details', 'lsx'); ?></h2>
261
+								<?php do_action('woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id()); ?>
262 262
 							<?php } ?>
263 263
 						</div>
264 264
 					</div>
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
 				<?php else : ?>
269 269
 
270
-					<div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); ?></div>
270
+					<div class="alert alert-danger"><?php esc_html_e('Invalid order.', 'lsx'); ?></div>
271 271
 
272 272
 				<?php endif; ?>
273 273
 
Please login to merge, or discard this patch.
page-templates/template-full-width-no-margins.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 				?>
29 29
 
30
-				<?php get_template_part( 'partials/content', 'page' ); ?>
30
+				<?php get_template_part('partials/content', 'page'); ?>
31 31
 
32 32
 			<?php endwhile; ?>
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		<?php lsx_content_bottom(); ?>
37 37
 
38 38
 		<?php
39
-		if ( comments_open() ) {
39
+		if (comments_open()) {
40 40
 			comments_template();
41 41
 		}
42 42
 		?>
Please login to merge, or discard this patch.
page-templates/template-sitemap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php lsx_content_wrap_before(); ?>
14 14
 
15
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
15
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
16 16
 
17 17
 	<?php lsx_content_before(); ?>
18 18
 
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 				?>
29 29
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 <?php lsx_content_wrap_after(); ?>
59 59
 
60
-<?php get_sidebar( 'sitemap' ); ?>
60
+<?php get_sidebar('sitemap'); ?>
61 61
 
62 62
 <?php
63 63
 get_footer();
Please login to merge, or discard this patch.