Passed
Push — purged ( 47fc08...1a7250 )
by Jacques
07:28 queued 02:18
created
includes/yoast/class-lsx-yoast.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -7,59 +7,59 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! class_exists( 'LSX_Yoast' ) ) :
14 14
 
15
-	/**
16
-	 * The LSX Yoast integration class
17
-	 */
18
-	class LSX_Yoast {
15
+     /**
16
+      * The LSX Yoast integration class
17
+      */
18
+     class LSX_Yoast {
19 19
 
20
-		/**
21
-		 * Holds class instance
22
-		 *
23
-		 * @since 1.0.0
24
-		 * @var      object
25
-		 */
26
-		protected static $instance = null;
20
+          /**
21
+           * Holds class instance
22
+           *
23
+           * @since 1.0.0
24
+           * @var      object
25
+           */
26
+          protected static $instance = null;
27 27
 
28
-		/**
29
-		 * Setup class.
30
-		 *
31
-		 * @since 1.0
32
-		 */
33
-		public function __construct() {
28
+          /**
29
+           * Setup class.
30
+           *
31
+           * @since 1.0
32
+           */
33
+          public function __construct() {
34 34
 
35
-			add_action( 'wp_enqueue_scripts', array( $this, 'lsx_yoast_scripts_add_styles' ) );
36
-		}
35
+               add_action( 'wp_enqueue_scripts', array( $this, 'lsx_yoast_scripts_add_styles' ) );
36
+          }
37 37
 
38
-		/**
39
-		 * Return an instance of this class.
40
-		 *
41
-		 * @since 1.0.0
42
-		 * @return    object    A single instance of this class.
43
-		 */
44
-		public static function get_instance() {
45
-			// If the single instance hasn't been set, set it now.
46
-			if ( null === self::$instance ) {
47
-				self::$instance = new self();
48
-			}
49
-			return self::$instance;
50
-		}
38
+          /**
39
+           * Return an instance of this class.
40
+           *
41
+           * @since 1.0.0
42
+           * @return    object    A single instance of this class.
43
+           */
44
+          public static function get_instance() {
45
+               // If the single instance hasn't been set, set it now.
46
+               if ( null === self::$instance ) {
47
+                    self::$instance = new self();
48
+               }
49
+               return self::$instance;
50
+          }
51 51
 
52
-		/**
53
-		 * Yoast enqueue styles.
54
-		 *
55
-		 * @package    lsx
56
-		 * @subpackage yoast
57
-		 */
58
-		public function lsx_yoast_scripts_add_styles() {
59
-			wp_enqueue_script( 'lsx_yoast_js', get_template_directory_uri() . '/assets/js/yoast/yoast.js', array( 'jquery' ), LSX_VERSION, true );
60
-			wp_enqueue_style( 'lsx_yoast_css', get_template_directory_uri() . '/assets/css/yoast/yoast.css', array( 'lsx_main' ), LSX_VERSION );
61
-		}
62
-	}
52
+          /**
53
+           * Yoast enqueue styles.
54
+           *
55
+           * @package    lsx
56
+           * @subpackage yoast
57
+           */
58
+          public function lsx_yoast_scripts_add_styles() {
59
+               wp_enqueue_script( 'lsx_yoast_js', get_template_directory_uri() . '/assets/js/yoast/yoast.js', array( 'jquery' ), LSX_VERSION, true );
60
+               wp_enqueue_style( 'lsx_yoast_css', get_template_directory_uri() . '/assets/css/yoast/yoast.css', array( 'lsx_main' ), LSX_VERSION );
61
+          }
62
+     }
63 63
 
64 64
 endif;
65 65
 
Please login to merge, or discard this patch.
includes/hooks.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 /**
14 14
  * This is the 1st action in the theme that fires after <head>.
15 15
  */
16 16
 function lsx_head_top() {
17
-	do_action( 'lsx_head_top' );
17
+     do_action( 'lsx_head_top' );
18 18
 }
19 19
 
20 20
 /**
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
  * @return void
24 24
  */
25 25
 function lsx_head_bottom() {
26
-	do_action( 'lsx_head_bottom' );
26
+     do_action( 'lsx_head_bottom' );
27 27
 }
28 28
 
29 29
 /**
30 30
  * The 3rd action thta fires after <body>
31 31
  */
32 32
 function lsx_body_top() {
33
-	do_action( 'lsx_body_top' );
33
+     do_action( 'lsx_body_top' );
34 34
 }
35 35
 
36 36
 /**
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  * $lsx_supports[] = 'header';
40 40
  */
41 41
 function lsx_header_before() {
42
-	do_action( 'lsx_header_before' );
42
+     do_action( 'lsx_header_before' );
43 43
 }
44 44
 
45 45
 /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
  * @return void
49 49
  */
50 50
 function lsx_header_top() {
51
-	do_action( 'lsx_header_top' );
51
+     do_action( 'lsx_header_top' );
52 52
 }
53 53
 
54 54
 /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
  * @return void
58 58
  */
59 59
 function lsx_nav_before() {
60
-	do_action( 'lsx_nav_before' );
60
+     do_action( 'lsx_nav_before' );
61 61
 }
62 62
 
63 63
 /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
  * @return void
67 67
  */
68 68
 function lsx_nav_after() {
69
-	do_action( 'lsx_nav_after' );
69
+     do_action( 'lsx_nav_after' );
70 70
 }
71 71
 
72 72
 /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
  * @return void
76 76
  */
77 77
 function lsx_header_bottom() {
78
-	do_action( 'lsx_header_bottom' );
78
+     do_action( 'lsx_header_bottom' );
79 79
 }
80 80
 
81 81
 /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
  * @return void
85 85
  */
86 86
 function lsx_header_after() {
87
-	do_action( 'lsx_header_after' );
87
+     do_action( 'lsx_header_after' );
88 88
 }
89 89
 
90 90
 /**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
  * @return void
94 94
  */
95 95
 function lsx_header_wrap_after() {
96
-	do_action( 'lsx_header_wrap_after' );
96
+     do_action( 'lsx_header_wrap_after' );
97 97
 }
98 98
 
99 99
 /**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
  * @return void
103 103
  */
104 104
 function lsx_header_wrap_container_top() {
105
-	do_action( 'lsx_header_wrap_container_top' );
105
+     do_action( 'lsx_header_wrap_container_top' );
106 106
 }
107 107
 
108 108
 /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
  * @return void
112 112
  */
113 113
 function lsx_body_bottom() {
114
-	do_action( 'lsx_body_bottom' );
114
+     do_action( 'lsx_body_bottom' );
115 115
 }
116 116
 
117 117
 /**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
  * $lsx_supports[] = 'banner';
121 121
  */
122 122
 function lsx_banner_content() {
123
-	do_action( 'lsx_banner_content' );
123
+     do_action( 'lsx_banner_content' );
124 124
 }
125 125
 
126 126
 /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
  * @return void
130 130
  */
131 131
 function lsx_banner_inner_top() {
132
-	do_action( 'lsx_banner_inner_top' );
132
+     do_action( 'lsx_banner_inner_top' );
133 133
 }
134 134
 
135 135
 /**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
  * @return void
139 139
  */
140 140
 function lsx_banner_inner_bottom() {
141
-	do_action( 'lsx_banner_inner_bottom' );
141
+     do_action( 'lsx_banner_inner_bottom' );
142 142
 }
143 143
 
144 144
 /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
  * $lsx_supports[] = 'global_header';
148 148
  */
149 149
 function lsx_global_header_inner_bottom() {
150
-	do_action( 'lsx_global_header_inner_bottom' );
150
+     do_action( 'lsx_global_header_inner_bottom' );
151 151
 }
152 152
 
153 153
 /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
  * $lsx_supports[] = 'content';
157 157
  */
158 158
 function lsx_content_wrap_before() {
159
-	do_action( 'lsx_content_wrap_before' );
159
+     do_action( 'lsx_content_wrap_before' );
160 160
 }
161 161
 
162 162
 /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
  * @return void
166 166
  */
167 167
 function lsx_content_wrap_after() {
168
-	do_action( 'lsx_content_wrap_after' );
168
+     do_action( 'lsx_content_wrap_after' );
169 169
 }
170 170
 
171 171
 /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @return void
175 175
  */
176 176
 function lsx_content_before() {
177
-	do_action( 'lsx_content_before' );
177
+     do_action( 'lsx_content_before' );
178 178
 }
179 179
 
180 180
 /**
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
  * @return void
184 184
  */
185 185
 function lsx_content_after() {
186
-	do_action( 'lsx_content_after' );
186
+     do_action( 'lsx_content_after' );
187 187
 }
188 188
 
189 189
 /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
  * @return void
193 193
  */
194 194
 function lsx_content_top() {
195
-	do_action( 'lsx_content_top' );
195
+     do_action( 'lsx_content_top' );
196 196
 }
197 197
 
198 198
 /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
  * @return void
202 202
  */
203 203
 function lsx_content_bottom() {
204
-	do_action( 'lsx_content_bottom' );
204
+     do_action( 'lsx_content_bottom' );
205 205
 }
206 206
 
207 207
 /**
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
  * @return void
211 211
  */
212 212
 function lsx_content_post_tags() {
213
-	do_action( 'lsx_content_post_tags' );
213
+     do_action( 'lsx_content_post_tags' );
214 214
 }
215 215
 
216 216
 /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
  * @return void
220 220
  */
221 221
 function lsx_content_sharing() {
222
-	do_action( 'lsx_content_sharing' );
222
+     do_action( 'lsx_content_sharing' );
223 223
 }
224 224
 
225 225
 /**
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
  * $lsx_supports[] = 'entry';
229 229
  */
230 230
 function lsx_entry_before() {
231
-	do_action( 'lsx_entry_before' );
231
+     do_action( 'lsx_entry_before' );
232 232
 }
233 233
 
234 234
 /**
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
  * @return void
238 238
  */
239 239
 function lsx_entry_after() {
240
-	do_action( 'lsx_entry_after' );
240
+     do_action( 'lsx_entry_after' );
241 241
 }
242 242
 
243 243
 /**
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
  * @return void
247 247
  */
248 248
 function lsx_entry_top() {
249
-	do_action( 'lsx_entry_top' );
249
+     do_action( 'lsx_entry_top' );
250 250
 }
251 251
 
252 252
 /**
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
  * @return void
256 256
  */
257 257
 function lsx_entry_inside_top() {
258
-	do_action( 'lsx_entry_inside_top' );
258
+     do_action( 'lsx_entry_inside_top' );
259 259
 }
260 260
 
261 261
 /**
@@ -264,14 +264,14 @@  discard block
 block discarded – undo
264 264
  * @return void
265 265
  */
266 266
 function lsx_entry_bottom() {
267
-	do_action( 'lsx_entry_bottom' );
267
+     do_action( 'lsx_entry_bottom' );
268 268
 }
269 269
 
270 270
 /**
271 271
  * Semantic <entry> hooks
272 272
  */
273 273
 function lsx_post_meta_top() {
274
-	do_action( 'lsx_post_meta_top' );
274
+     do_action( 'lsx_post_meta_top' );
275 275
 }
276 276
 
277 277
 /**
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
  * $lsx_supports[] = 'entry';
281 281
  */
282 282
 function lsx_widget_entry_before() {
283
-	do_action( 'lsx_widget_entry_before' );
283
+     do_action( 'lsx_widget_entry_before' );
284 284
 }
285 285
 
286 286
 /**
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
  * @return void
290 290
  */
291 291
 function lsx_widget_entry_after() {
292
-	do_action( 'lsx_widget_entry_after' );
292
+     do_action( 'lsx_widget_entry_after' );
293 293
 }
294 294
 
295 295
 /**
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
  * @return void
299 299
  */
300 300
 function lsx_widget_entry_top() {
301
-	do_action( 'lsx_widget_entry_top' );
301
+     do_action( 'lsx_widget_entry_top' );
302 302
 }
303 303
 
304 304
 /**
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
  * @return void
308 308
  */
309 309
 function lsx_widget_entry_bottom() {
310
-	do_action( 'lsx_widget_entry_bottom' );
310
+     do_action( 'lsx_widget_entry_bottom' );
311 311
 }
312 312
 
313 313
 /**
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
  * @return void
317 317
  */
318 318
 function lsx_widget_entry_content_top() {
319
-	do_action( 'lsx_widget_entry_content_top' );
319
+     do_action( 'lsx_widget_entry_content_top' );
320 320
 }
321 321
 
322 322
 /**
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
  * @return void
326 326
  */
327 327
 function lsx_widget_entry_content_bottom() {
328
-	do_action( 'lsx_widget_entry_content_bottom' );
328
+     do_action( 'lsx_widget_entry_content_bottom' );
329 329
 }
330 330
 
331 331
 /**
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
  * $lsx_supports[] = 'comments';
335 335
  */
336 336
 function lsx_comments_before() {
337
-	do_action( 'lsx_comments_before' );
337
+     do_action( 'lsx_comments_before' );
338 338
 }
339 339
 
340 340
 /**
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
  * @return void
344 344
  */
345 345
 function lsx_comments_after() {
346
-	do_action( 'lsx_comments_after' );
346
+     do_action( 'lsx_comments_after' );
347 347
 }
348 348
 
349 349
 /**
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
  * $lsx_supports[] = 'sidebar';
353 353
  */
354 354
 function lsx_sidebars_before() {
355
-	do_action( 'lsx_sidebars_before' );
355
+     do_action( 'lsx_sidebars_before' );
356 356
 }
357 357
 
358 358
 /**
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
  * @return void
362 362
  */
363 363
 function lsx_sidebars_after() {
364
-	do_action( 'lsx_sidebars_after' );
364
+     do_action( 'lsx_sidebars_after' );
365 365
 }
366 366
 
367 367
 /**
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
  * @return void
371 371
  */
372 372
 function lsx_sidebar_top() {
373
-	do_action( 'lsx_sidebar_top' );
373
+     do_action( 'lsx_sidebar_top' );
374 374
 }
375 375
 
376 376
 /**
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
  * @return void
380 380
  */
381 381
 function lsx_sidebar_bottom() {
382
-	do_action( 'lsx_sidebar_bottom' );
382
+     do_action( 'lsx_sidebar_bottom' );
383 383
 }
384 384
 
385 385
 /**
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
  * $lsx_supports[] = 'footer';
389 389
  */
390 390
 function lsx_footer_before() {
391
-	do_action( 'lsx_footer_before' );
391
+     do_action( 'lsx_footer_before' );
392 392
 }
393 393
 
394 394
 /**
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
  * @return void
398 398
  */
399 399
 function lsx_footer_after() {
400
-	do_action( 'lsx_footer_after' );
400
+     do_action( 'lsx_footer_after' );
401 401
 }
402 402
 
403 403
 /**
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
  * @return void
407 407
  */
408 408
 function lsx_footer_top() {
409
-	do_action( 'lsx_footer_top' );
409
+     do_action( 'lsx_footer_top' );
410 410
 }
411 411
 
412 412
 /**
@@ -415,5 +415,5 @@  discard block
 block discarded – undo
415 415
  * @return void
416 416
  */
417 417
 function lsx_footer_bottom() {
418
-	do_action( 'lsx_footer_bottom' );
418
+     do_action( 'lsx_footer_bottom' );
419 419
 }
Please login to merge, or discard this patch.
includes/walker-comment.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -7,54 +7,54 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! function_exists( 'lsx_get_avatar' ) ) :
14 14
 
15
-	/**
16
-	 * Comment Form Field Filter.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage comment-walker
20
-	 */
21
-	function lsx_get_avatar( $avatar ) {
22
-		$avatar = str_replace( "class='avatar", "class='avatar pull-left media-object ", $avatar );
23
-		$avatar = str_replace( 'class="avatar', 'class="avatar pull-left media-object ', $avatar );
24
-		return $avatar;
25
-	}
15
+     /**
16
+      * Comment Form Field Filter.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage comment-walker
20
+      */
21
+     function lsx_get_avatar( $avatar ) {
22
+          $avatar = str_replace( "class='avatar", "class='avatar pull-left media-object ", $avatar );
23
+          $avatar = str_replace( 'class="avatar', 'class="avatar pull-left media-object ', $avatar );
24
+          return $avatar;
25
+     }
26 26
 
27 27
 endif;
28 28
 
29 29
 add_filter( 'get_avatar', 'lsx_get_avatar' );
30 30
 
31 31
 add_action( 'admin_bar_menu', function() {
32
-	remove_filter( 'get_avatar', 'lsx_get_avatar' );
32
+     remove_filter( 'get_avatar', 'lsx_get_avatar' );
33 33
 }, 0 );
34 34
 
35 35
 add_action( 'wp_after_admin_bar_render', function() {
36
-	add_filter( 'get_avatar', 'lsx_get_avatar' );
36
+     add_filter( 'get_avatar', 'lsx_get_avatar' );
37 37
 } );
38 38
 
39 39
 if ( ! function_exists( 'lsx_comment_form_fields_filter' ) ) :
40 40
 
41
-	/**
42
-	 * Comment Form Field Filter.
43
-	 *
44
-	 * @package    lsx
45
-	 * @subpackage comment-walker
46
-	 */
47
-	function lsx_comment_form_fields_filter( $fields ) {
48
-		foreach ( $fields as &$field ) {
49
-			if ( stristr( 'class=', $field ) ) {
50
-				$field = str_replace( 'class="', 'class="form-control ', $field );
51
-			} else {
52
-				$field = str_replace( '<input', '<input class="form-control" ', $field );
53
-			}
54
-		}
55
-
56
-		return $fields;
57
-	}
41
+     /**
42
+      * Comment Form Field Filter.
43
+      *
44
+      * @package    lsx
45
+      * @subpackage comment-walker
46
+      */
47
+     function lsx_comment_form_fields_filter( $fields ) {
48
+          foreach ( $fields as &$field ) {
49
+               if ( stristr( 'class=', $field ) ) {
50
+                    $field = str_replace( 'class="', 'class="form-control ', $field );
51
+               } else {
52
+                    $field = str_replace( '<input', '<input class="form-control" ', $field );
53
+               }
54
+          }
55
+
56
+          return $fields;
57
+     }
58 58
 
59 59
 endif;
60 60
 
Please login to merge, or discard this patch.
includes/classes/class-lsx-wc-widget-recent-reviews.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if ( ! defined( 'ABSPATH' ) ) {
4
-	exit;
4
+     exit;
5 5
 }
6 6
 
7 7
 /**
@@ -15,79 +15,79 @@  discard block
 block discarded – undo
15 15
  */
16 16
 class LSX_WC_Widget_Recent_Reviews extends WC_Widget {
17 17
 
18
-	/**
19
-	 * Constructor.
20
-	 */
21
-	public function __construct() {
22
-		$this->widget_cssclass    = 'woocommerce widget_recent_reviews';
23
-		$this->widget_description = __( 'Display a list of your most recent reviews on your site.', 'lsx' );
24
-		$this->widget_id          = 'woocommerce_recent_reviews';
25
-		$this->widget_name        = __( 'WooCommerce recent reviews', 'lsx' );
26
-		$this->settings           = array(
27
-			'title'  => array(
28
-				'type'  => 'text',
29
-				'std'   => __( 'Recent reviews', 'lsx' ),
30
-				'label' => __( 'Title', 'lsx' ),
31
-			),
32
-			'number' => array(
33
-				'type'  => 'number',
34
-				'step'  => 1,
35
-				'min'   => 1,
36
-				'max'   => '',
37
-				'std'   => 10,
38
-				'label' => __( 'Number of reviews to show', 'lsx' ),
39
-			),
40
-		);
18
+     /**
19
+      * Constructor.
20
+      */
21
+     public function __construct() {
22
+          $this->widget_cssclass    = 'woocommerce widget_recent_reviews';
23
+          $this->widget_description = __( 'Display a list of your most recent reviews on your site.', 'lsx' );
24
+          $this->widget_id          = 'woocommerce_recent_reviews';
25
+          $this->widget_name        = __( 'WooCommerce recent reviews', 'lsx' );
26
+          $this->settings           = array(
27
+               'title'  => array(
28
+                    'type'  => 'text',
29
+                    'std'   => __( 'Recent reviews', 'lsx' ),
30
+                    'label' => __( 'Title', 'lsx' ),
31
+               ),
32
+               'number' => array(
33
+                    'type'  => 'number',
34
+                    'step'  => 1,
35
+                    'min'   => 1,
36
+                    'max'   => '',
37
+                    'std'   => 10,
38
+                    'label' => __( 'Number of reviews to show', 'lsx' ),
39
+               ),
40
+          );
41 41
 
42
-		parent::__construct();
43
-	}
42
+          parent::__construct();
43
+     }
44 44
 
45
-	/**
46
-	 * Output widget.
47
-	 *
48
-	 * @see WP_Widget
49
-	 *
50
-	 * @param array $args
51
-	 * @param array $instance
52
-	 */
53
-	public function widget( $args, $instance ) {
54
-		if ( $this->get_cached_widget( $args ) ) {
55
-			return;
56
-		}
57
-		ob_start();
58
-		$number   = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : $this->settings['number']['std'];
59
-		$comments = get_comments(
60
-			array(
61
-				'number'      => $number,
62
-				'status'      => 'approve',
63
-				'post_status' => 'publish',
64
-				'post_type'   => 'product',
65
-				'parent'      => 0,
66
-			)
67
-		);
45
+     /**
46
+      * Output widget.
47
+      *
48
+      * @see WP_Widget
49
+      *
50
+      * @param array $args
51
+      * @param array $instance
52
+      */
53
+     public function widget( $args, $instance ) {
54
+          if ( $this->get_cached_widget( $args ) ) {
55
+               return;
56
+          }
57
+          ob_start();
58
+          $number   = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : $this->settings['number']['std'];
59
+          $comments = get_comments(
60
+               array(
61
+                    'number'      => $number,
62
+                    'status'      => 'approve',
63
+                    'post_status' => 'publish',
64
+                    'post_type'   => 'product',
65
+                    'parent'      => 0,
66
+               )
67
+          );
68 68
 
69
-		if ( $comments ) {
70
-			$this->widget_start( $args, $instance );
69
+          if ( $comments ) {
70
+               $this->widget_start( $args, $instance );
71 71
 
72
-			echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );
72
+               echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );
73 73
 
74
-			global $stored_comment, $_product, $rating;
74
+               global $stored_comment, $_product, $rating;
75 75
 
76
-			the_comment();
77
-			foreach ( (array) $comments as $comment ) {
78
-				$_product = wc_get_product( $comment->comment_post_ID );
79
-				$rating = intval( get_comment_meta( $comment->comment_ID, 'rating', true ) );
80
-				$stored_comment = $comment;
76
+               the_comment();
77
+               foreach ( (array) $comments as $comment ) {
78
+                    $_product = wc_get_product( $comment->comment_post_ID );
79
+                    $rating = intval( get_comment_meta( $comment->comment_ID, 'rating', true ) );
80
+                    $stored_comment = $comment;
81 81
 
82
-				wc_get_template( 'content-widget-review.php' );
83
-			}
82
+                    wc_get_template( 'content-widget-review.php' );
83
+               }
84 84
 
85
-			echo wp_kses_post( apply_filters( 'woocommerce_after_widget_product_list', '</ul>' ) );
85
+               echo wp_kses_post( apply_filters( 'woocommerce_after_widget_product_list', '</ul>' ) );
86 86
 
87
-			$this->widget_end( $args );
88
-		}
89
-		$content = ob_get_clean();
90
-		echo wp_kses_post( $content );
91
-		$this->cache_widget( $args, $content );
92
-	}
87
+               $this->widget_end( $args );
88
+          }
89
+          $content = ob_get_clean();
90
+          echo wp_kses_post( $content );
91
+          $this->cache_widget( $args, $content );
92
+     }
93 93
 }
Please login to merge, or discard this patch.
includes/classes/class-lsx-nav-walker.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -8,74 +8,74 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit;
11
+     exit;
12 12
 }
13 13
 
14 14
 if ( ! class_exists( 'Walker_Nav_Menu' ) ) {
15
-	return;
15
+     return;
16 16
 }
17 17
 
18 18
 if ( ! class_exists( 'LSX_Nav_Walker' ) ) :
19 19
 
20
-	/**
21
-	 * Cleaner walker for wp_nav_menu()
22
-	 *
23
-	 * Walker_Nav_Menu (WordPress default) example output:
24
-	 *   <li id="menu-item-8" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8"><a href="/">Home</a></li>
25
-	 *   <li id="menu-item-9" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="/sample-page/">Sample Page</a></l
26
-	 *
27
-	 * LSX_Nav_Walker example output:
28
-	 *   <li class="menu-home"><a href="/">Home</a></li>
29
-	 *   <li class="menu-sample-page"><a href="/sample-page/">Sample Page</a></li>
30
-	 *
31
-	 * @package    lsx
32
-	 * @subpackage navigation
33
-	 * @category   bootstrap-walker
34
-	 */
35
-	class LSX_Nav_Walker extends Walker_Nav_Menu {
20
+     /**
21
+      * Cleaner walker for wp_nav_menu()
22
+      *
23
+      * Walker_Nav_Menu (WordPress default) example output:
24
+      *   <li id="menu-item-8" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8"><a href="/">Home</a></li>
25
+      *   <li id="menu-item-9" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="/sample-page/">Sample Page</a></l
26
+      *
27
+      * LSX_Nav_Walker example output:
28
+      *   <li class="menu-home"><a href="/">Home</a></li>
29
+      *   <li class="menu-sample-page"><a href="/sample-page/">Sample Page</a></li>
30
+      *
31
+      * @package    lsx
32
+      * @subpackage navigation
33
+      * @category   bootstrap-walker
34
+      */
35
+     class LSX_Nav_Walker extends Walker_Nav_Menu {
36 36
 
37
-		function check_current( $classes ) {
38
-			return preg_match( '/^(current[-_])|active|dropdown$/', $classes );
39
-		}
37
+          function check_current( $classes ) {
38
+               return preg_match( '/^(current[-_])|active|dropdown$/', $classes );
39
+          }
40 40
 
41
-		function start_lvl( &$output, $depth = 0, $args = array() ) {
42
-			$output .= "\n<ul class=\"dropdown-menu\">\n";
43
-		}
41
+          function start_lvl( &$output, $depth = 0, $args = array() ) {
42
+               $output .= "\n<ul class=\"dropdown-menu\">\n";
43
+          }
44 44
 
45
-		function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
46
-			$item_html = '';
45
+          function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
46
+               $item_html = '';
47 47
 
48
-			if ( isset( $item->title ) ) {
49
-				parent::start_el( $item_html, $item, $depth, $args );
48
+               if ( isset( $item->title ) ) {
49
+                    parent::start_el( $item_html, $item, $depth, $args );
50 50
 
51
-				if ( $item->is_dropdown && ( 0 === $depth ) ) {
52
-					$item_html = str_replace( '<a', '<a class="dropdown-toggle" data-target="#"', $item_html );
53
-					$item_html = str_replace( '</a>', ' <b class="caret"></b></a>', $item_html );
54
-				} elseif ( stristr( $item_html, 'li class="divider"' ) ) {
55
-					$item_html = preg_replace( '/<a[^>]*>.*?<\/a>/iU', '', $item_html );
56
-				} elseif ( stristr( $item_html, 'li class="dropdown-header"' ) ) {
57
-					$item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '$1', $item_html );
58
-				}
51
+                    if ( $item->is_dropdown && ( 0 === $depth ) ) {
52
+                         $item_html = str_replace( '<a', '<a class="dropdown-toggle" data-target="#"', $item_html );
53
+                         $item_html = str_replace( '</a>', ' <b class="caret"></b></a>', $item_html );
54
+                    } elseif ( stristr( $item_html, 'li class="divider"' ) ) {
55
+                         $item_html = preg_replace( '/<a[^>]*>.*?<\/a>/iU', '', $item_html );
56
+                    } elseif ( stristr( $item_html, 'li class="dropdown-header"' ) ) {
57
+                         $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '$1', $item_html );
58
+                    }
59 59
 
60
-				$item_html = apply_filters( 'lsx_wp_nav_menu_item', $item_html );
61
-				$output   .= $item_html;
62
-			}
63
-		}
60
+                    $item_html = apply_filters( 'lsx_wp_nav_menu_item', $item_html );
61
+                    $output   .= $item_html;
62
+               }
63
+          }
64 64
 
65
-		function display_element( $element, &$children_elements, $max_depth, $depth = 0, $args, &$output ) {
66
-			$element->is_dropdown = ( ( ! empty( $children_elements[ $element->ID ] ) && ( ( $depth + 1 ) < $max_depth || ( 0 === $max_depth ) ) ) );
65
+          function display_element( $element, &$children_elements, $max_depth, $depth = 0, $args, &$output ) {
66
+               $element->is_dropdown = ( ( ! empty( $children_elements[ $element->ID ] ) && ( ( $depth + 1 ) < $max_depth || ( 0 === $max_depth ) ) ) );
67 67
 
68
-			if ( $element->is_dropdown ) {
69
-				if ( $depth > 0 ) {
70
-					$element->classes[] = 'dropdown-submenu';
71
-				} else {
72
-					$element->classes[] = 'dropdown';
73
-				}
74
-			}
68
+               if ( $element->is_dropdown ) {
69
+                    if ( $depth > 0 ) {
70
+                         $element->classes[] = 'dropdown-submenu';
71
+                    } else {
72
+                         $element->classes[] = 'dropdown';
73
+                    }
74
+               }
75 75
 
76
-			parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
77
-		}
76
+               parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
77
+          }
78 78
 
79
-	}
79
+     }
80 80
 
81 81
 endif;
Please login to merge, or discard this patch.
includes/classes/class-lsx-customize-mobile-header-layout-control.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -8,78 +8,78 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit;
11
+     exit;
12 12
 }
13 13
 
14 14
 if ( ! class_exists( 'WP_Customize_Control' ) ) {
15
-	return;
15
+     return;
16 16
 }
17 17
 
18 18
 if ( ! class_exists( 'LSX_Customize_Mobile_Header_Layout_Control' ) ) :
19 19
 
20
-	/**
21
-	 * LSX_Customize_Mobile_Header_Layout_Control Class
22
-	 *
23
-	 * @package    lsx
24
-	 * @subpackage customizer
25
-	 * @category   mobile-header-layout
26
-	 */
27
-	class LSX_Customize_Mobile_Header_Layout_Control extends WP_Customize_Control {
20
+     /**
21
+      * LSX_Customize_Mobile_Header_Layout_Control Class
22
+      *
23
+      * @package    lsx
24
+      * @subpackage customizer
25
+      * @category   mobile-header-layout
26
+      */
27
+     class LSX_Customize_Mobile_Header_Layout_Control extends WP_Customize_Control {
28 28
 
29
-		public $type = 'layout';
30
-		public $statuses;
31
-		public $layouts = array();
29
+          public $type = 'layout';
30
+          public $statuses;
31
+          public $layouts = array();
32 32
 
33
-		public function __construct( $manager, $id, $args = array() ) {
34
-			parent::__construct( $manager, $id, $args );
33
+          public function __construct( $manager, $id, $args = array() ) {
34
+               parent::__construct( $manager, $id, $args );
35 35
 
36
-			if ( ! empty( $args['choices'] ) ) {
37
-				$this->layouts = $args['choices'];
38
-			}
39
-		}
36
+               if ( ! empty( $args['choices'] ) ) {
37
+                    $this->layouts = $args['choices'];
38
+               }
39
+          }
40 40
 
41
-		/**
42
-		 * Enqueue scripts/styles for the color picker.
43
-		 */
44
-		public function enqueue() {
45
-			wp_enqueue_script( 'lsx-mobile-header-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-mobile-header-layout.js', array( 'jquery' ), LSX_VERSION, true );
46
-		}
41
+          /**
42
+           * Enqueue scripts/styles for the color picker.
43
+           */
44
+          public function enqueue() {
45
+               wp_enqueue_script( 'lsx-mobile-header-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-mobile-header-layout.js', array( 'jquery' ), LSX_VERSION, true );
46
+          }
47 47
 
48
-		/**
49
-		 * Render output.
50
-		 */
51
-		public function render_content() {
52
-			$post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
53
-			$class   = 'customize-control customize-control-' . $this->type;
54
-			$value   = $this->value();
55
-			?>
48
+          /**
49
+           * Render output.
50
+           */
51
+          public function render_content() {
52
+               $post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
53
+               $class   = 'customize-control customize-control-' . $this->type;
54
+               $value   = $this->value();
55
+               ?>
56 56
 			<label>
57 57
 				<?php
58
-				if ( ! empty( $this->label ) ) {
59
-					?>
58
+                    if ( ! empty( $this->label ) ) {
59
+                         ?>
60 60
 						<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
61 61
 					<?php
62
-				}
63
-				if ( ! empty( $this->description ) ) {
64
-					?>
62
+                    }
63
+                    if ( ! empty( $this->description ) ) {
64
+                         ?>
65 65
 					<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
66 66
 				<?php } ?>
67 67
 				<div class="mobile-header-layouts-selector">
68 68
 					<?php
69
-					foreach ( $this->layouts as $layout ) {
70
-						$sel = 'border: 1px solid transparent;';
71
-						if ( $value === $layout ) {
72
-							$sel = 'border: 1px solid rgb(43, 166, 203);';
73
-						}
74
-						echo '<img class="mobile-header-layout-button" style="max-width:180px;padding:2px;' . esc_attr( $sel ) . '" src="' . esc_attr( get_template_directory_uri() ) . '/assets/images/admin/header-' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">';
75
-					}
76
-					?>
69
+                         foreach ( $this->layouts as $layout ) {
70
+                              $sel = 'border: 1px solid transparent;';
71
+                              if ( $value === $layout ) {
72
+                                   $sel = 'border: 1px solid rgb(43, 166, 203);';
73
+                              }
74
+                              echo '<img class="mobile-header-layout-button" style="max-width:180px;padding:2px;' . esc_attr( $sel ) . '" src="' . esc_attr( get_template_directory_uri() ) . '/assets/images/admin/header-' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">';
75
+                         }
76
+                         ?>
77 77
 					<input <?php $this->link(); ?> class="selected-mobile-header-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(); ?>>
78 78
 				</div>
79 79
 			</label>
80 80
 			<?php
81
-		}
81
+          }
82 82
 
83
-	}
83
+     }
84 84
 
85 85
 endif;
Please login to merge, or discard this patch.
includes/classes/class-lsx-customize-header-layout-control.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -8,78 +8,78 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit;
11
+     exit;
12 12
 }
13 13
 
14 14
 if ( ! class_exists( 'WP_Customize_Control' ) ) {
15
-	return;
15
+     return;
16 16
 }
17 17
 
18 18
 if ( ! class_exists( 'LSX_Customize_Header_Layout_Control' ) ) :
19 19
 
20
-	/**
21
-	 * LSX_Customize_Header_Layout_Control Class
22
-	 *
23
-	 * @package    lsx
24
-	 * @subpackage customizer
25
-	 * @category   header-layout
26
-	 */
27
-	class LSX_Customize_Header_Layout_Control extends WP_Customize_Control {
20
+     /**
21
+      * LSX_Customize_Header_Layout_Control Class
22
+      *
23
+      * @package    lsx
24
+      * @subpackage customizer
25
+      * @category   header-layout
26
+      */
27
+     class LSX_Customize_Header_Layout_Control extends WP_Customize_Control {
28 28
 
29
-		public $type = 'layout';
30
-		public $statuses;
31
-		public $layouts = array();
29
+          public $type = 'layout';
30
+          public $statuses;
31
+          public $layouts = array();
32 32
 
33
-		public function __construct( $manager, $id, $args = array() ) {
34
-			parent::__construct( $manager, $id, $args );
33
+          public function __construct( $manager, $id, $args = array() ) {
34
+               parent::__construct( $manager, $id, $args );
35 35
 
36
-			if ( ! empty( $args['choices'] ) ) {
37
-				$this->layouts = $args['choices'];
38
-			}
39
-		}
36
+               if ( ! empty( $args['choices'] ) ) {
37
+                    $this->layouts = $args['choices'];
38
+               }
39
+          }
40 40
 
41
-		/**
42
-		 * Enqueue scripts/styles for the color picker.
43
-		 */
44
-		public function enqueue() {
45
-			wp_enqueue_script( 'lsx-header-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-header-layout.js', array( 'jquery' ), LSX_VERSION, true );
46
-		}
41
+          /**
42
+           * Enqueue scripts/styles for the color picker.
43
+           */
44
+          public function enqueue() {
45
+               wp_enqueue_script( 'lsx-header-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-header-layout.js', array( 'jquery' ), LSX_VERSION, true );
46
+          }
47 47
 
48
-		/**
49
-		 * Render output.
50
-		 */
51
-		public function render_content() {
52
-			$post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
53
-			$class   = 'customize-control customize-control-' . $this->type;
54
-			$value   = $this->value();
55
-			?>
48
+          /**
49
+           * Render output.
50
+           */
51
+          public function render_content() {
52
+               $post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
53
+               $class   = 'customize-control customize-control-' . $this->type;
54
+               $value   = $this->value();
55
+               ?>
56 56
 			<label>
57 57
 				<?php
58
-				if ( ! empty( $this->label ) ) {
59
-					?>
58
+                    if ( ! empty( $this->label ) ) {
59
+                         ?>
60 60
 						<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
61 61
 					<?php
62
-				}
63
-				if ( ! empty( $this->description ) ) {
64
-					?>
62
+                    }
63
+                    if ( ! empty( $this->description ) ) {
64
+                         ?>
65 65
 					<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
66 66
 				<?php } ?>
67 67
 				<div class="header-layouts-selector">
68 68
 					<?php
69
-					foreach ( $this->layouts as $layout ) {
70
-						$sel = 'border: 1px solid transparent;';
71
-						if ( $value === $layout ) {
72
-							$sel = 'border: 1px solid rgb(43, 166, 203);';
73
-						}
74
-						echo '<img class="header-layout-button" style="padding:2px;' . esc_attr( $sel ) . '" src="' . esc_attr( get_template_directory_uri() ) . '/assets/images/admin/header-' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">';
75
-					}
76
-					?>
69
+                         foreach ( $this->layouts as $layout ) {
70
+                              $sel = 'border: 1px solid transparent;';
71
+                              if ( $value === $layout ) {
72
+                                   $sel = 'border: 1px solid rgb(43, 166, 203);';
73
+                              }
74
+                              echo '<img class="header-layout-button" style="padding:2px;' . esc_attr( $sel ) . '" src="' . esc_attr( get_template_directory_uri() ) . '/assets/images/admin/header-' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">';
75
+                         }
76
+                         ?>
77 77
 					<input <?php $this->link(); ?> class="selected-header-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(); ?>>
78 78
 				</div>
79 79
 			</label>
80 80
 			<?php
81
-		}
81
+          }
82 82
 
83
-	}
83
+     }
84 84
 
85 85
 endif;
Please login to merge, or discard this patch.
includes/classes/class-lsx-walker-comment.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -7,61 +7,61 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! class_exists( 'Walker_Comment' ) ) {
14
-	return;
14
+     return;
15 15
 }
16 16
 
17 17
 if ( ! class_exists( 'LSX_Walker_Comment' ) ) :
18 18
 
19
-	/**
20
-	 * Use Bootstrap's media object for listing comments.
21
-	 *
22
-	 * @link http://getbootstrap.com/components/#media
23
-	 *
24
-	 * @package    lsx
25
-	 * @subpackage comment
26
-	 */
27
-	class LSX_Walker_Comment extends Walker_Comment {
19
+     /**
20
+      * Use Bootstrap's media object for listing comments.
21
+      *
22
+      * @link http://getbootstrap.com/components/#media
23
+      *
24
+      * @package    lsx
25
+      * @subpackage comment
26
+      */
27
+     class LSX_Walker_Comment extends Walker_Comment {
28 28
 
29
-		function start_lvl( &$output, $depth = 0, $args = array() ) {
30
-			$GLOBALS['comment_depth'] = $depth + 1; ?>
29
+          function start_lvl( &$output, $depth = 0, $args = array() ) {
30
+               $GLOBALS['comment_depth'] = $depth + 1; ?>
31 31
 			<ul <?php comment_class( 'media media-reply unstyled list-unstyled comment-' . get_comment_ID() ); ?>>
32 32
 			<?php
33
-		}
33
+          }
34 34
 
35
-		function end_lvl( &$output, $depth = 0, $args = array() ) {
36
-			$GLOBALS['comment_depth'] = $depth + 1;
37
-			echo '</ul>';
38
-		}
35
+          function end_lvl( &$output, $depth = 0, $args = array() ) {
36
+               $GLOBALS['comment_depth'] = $depth + 1;
37
+               echo '</ul>';
38
+          }
39 39
 
40
-		function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
41
-			++$depth;
42
-			$GLOBALS['comment_depth'] = $depth;
43
-			$GLOBALS['comment']       = $comment;
40
+          function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
41
+               ++$depth;
42
+               $GLOBALS['comment_depth'] = $depth;
43
+               $GLOBALS['comment']       = $comment;
44 44
 
45
-			if ( ! empty( $args['callback'] ) ) {
46
-				call_user_func( $args['callback'], $comment, $args, $depth );
47
-				return;
48
-			}
49
-			?>
45
+               if ( ! empty( $args['callback'] ) ) {
46
+                    call_user_func( $args['callback'], $comment, $args, $depth );
47
+                    return;
48
+               }
49
+               ?>
50 50
 
51 51
 			<li id="comment-<?php comment_ID(); ?>" <?php comment_class( 'media comment-' . get_comment_ID() ); ?>>
52 52
 			<?php get_template_part( 'comment' ); ?>
53 53
 			<?php
54
-		}
54
+          }
55 55
 
56
-		function end_el( &$output, $comment, $depth = 0, $args = array() ) {
57
-			if ( ! empty( $args['end-callback'] ) ) {
58
-				call_user_func( $args['end-callback'], $comment, $args, $depth );
59
-				return;
60
-			}
56
+          function end_el( &$output, $comment, $depth = 0, $args = array() ) {
57
+               if ( ! empty( $args['end-callback'] ) ) {
58
+                    call_user_func( $args['end-callback'], $comment, $args, $depth );
59
+                    return;
60
+               }
61 61
 
62
-			echo "</div></li>\n";
63
-		}
62
+               echo "</div></li>\n";
63
+          }
64 64
 
65
-	}
65
+     }
66 66
 
67 67
 endif;
Please login to merge, or discard this patch.
includes/classes/class-lsx-optimisation.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if ( ! defined( 'ABSPATH' ) ) {
4
-	exit;
4
+     exit;
5 5
 }
6 6
 
7 7
 /**
@@ -14,67 +14,67 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class LSX_Optimisation {
16 16
 
17
-	/**
18
-	 * Holds class instance
19
-	 *
20
-	 * @since 1.0.0
21
-	 * @var      object
22
-	 */
23
-	protected static $instance = null;
17
+     /**
18
+      * Holds class instance
19
+      *
20
+      * @since 1.0.0
21
+      * @var      object
22
+      */
23
+     protected static $instance = null;
24 24
 
25
-	/**
26
-	 * Constructor.
27
-	 */
28
-	public function __construct() {
29
-		//add_filter( 'style_loader_tag', array( $this, 'preload_css' ), 100, 4 );
30
-		//add_filter( 'script_loader_tag', array( $this, 'defer_parsing_of_js' ), 100, 3 );
31
-		add_action( 'init', array( $this, 'pum_remove_admin_bar_tools' ), 100 );
32
-	}
33
-	/**
34
-	 * Return an instance of this class.
35
-	 *
36
-	 * @since 1.0.0
37
-	 * @return    object    A single instance of this class.
38
-	 */
39
-	public static function get_instance() {
40
-		// If the single instance hasn't been set, set it now.
41
-		if ( null === self::$instance ) {
42
-			self::$instance = new self;
43
-		}
44
-		return self::$instance;
45
-	}
25
+     /**
26
+      * Constructor.
27
+      */
28
+     public function __construct() {
29
+          //add_filter( 'style_loader_tag', array( $this, 'preload_css' ), 100, 4 );
30
+          //add_filter( 'script_loader_tag', array( $this, 'defer_parsing_of_js' ), 100, 3 );
31
+          add_action( 'init', array( $this, 'pum_remove_admin_bar_tools' ), 100 );
32
+     }
33
+     /**
34
+      * Return an instance of this class.
35
+      *
36
+      * @since 1.0.0
37
+      * @return    object    A single instance of this class.
38
+      */
39
+     public static function get_instance() {
40
+          // If the single instance hasn't been set, set it now.
41
+          if ( null === self::$instance ) {
42
+               self::$instance = new self;
43
+          }
44
+          return self::$instance;
45
+     }
46 46
 
47
-	/**
48
-	 * Defers the JS loading till Last
49
-	 *
50
-	 * @param  string $url The url to check and defer.
51
-	 * @return string
52
-	 */
53
-	public function preload_css( $tag, $handle, $href, $media ) {
54
-		if ( 'lsx_fonts' === $handle || 'fontawesome' === $handle ) {
55
-			$tag = str_replace( 'href', ' preload href', $tag );
56
-		}
57
-		return $tag;
58
-	}
47
+     /**
48
+      * Defers the JS loading till Last
49
+      *
50
+      * @param  string $url The url to check and defer.
51
+      * @return string
52
+      */
53
+     public function preload_css( $tag, $handle, $href, $media ) {
54
+          if ( 'lsx_fonts' === $handle || 'fontawesome' === $handle ) {
55
+               $tag = str_replace( 'href', ' preload href', $tag );
56
+          }
57
+          return $tag;
58
+     }
59 59
 
60
-	/**
61
-	 * Defers the JS loading till Last
62
-	 *
63
-	 * @param  string $url The url to check and defer.
64
-	 * @return string
65
-	 */
66
-	public function defer_parsing_of_js( $tag, $handle, $href ) {
67
-		$skip_defer = apply_filters( 'lsx_defer_parsing_of_js', false, $tag, $handle, $href );
68
-		if ( ! is_admin() && false !== stripos( $href, '.js' ) && false === stripos( $href, 'jquery.js' ) && false === $skip_defer ) {
69
-			$tag = str_replace( 'src=', ' defer src=', $tag );
70
-		}
71
-		return $tag;
72
-	}
60
+     /**
61
+      * Defers the JS loading till Last
62
+      *
63
+      * @param  string $url The url to check and defer.
64
+      * @return string
65
+      */
66
+     public function defer_parsing_of_js( $tag, $handle, $href ) {
67
+          $skip_defer = apply_filters( 'lsx_defer_parsing_of_js', false, $tag, $handle, $href );
68
+          if ( ! is_admin() && false !== stripos( $href, '.js' ) && false === stripos( $href, 'jquery.js' ) && false === $skip_defer ) {
69
+               $tag = str_replace( 'src=', ' defer src=', $tag );
70
+          }
71
+          return $tag;
72
+     }
73 73
 
74
-	public function pum_remove_admin_bar_tools() {
75
-		remove_action( 'admin_bar_menu', array( 'PUM_Modules_Admin_Bar', 'toolbar_links' ), 999 );
76
-		remove_action( 'wp_footer', array( 'PUM_Modules_Admin_Bar', 'admin_bar_styles' ), 999 );
77
-		remove_action( 'init', array( 'PUM_Modules_Admin_Bar', 'show_debug_bar' ) );
78
-	}
74
+     public function pum_remove_admin_bar_tools() {
75
+          remove_action( 'admin_bar_menu', array( 'PUM_Modules_Admin_Bar', 'toolbar_links' ), 999 );
76
+          remove_action( 'wp_footer', array( 'PUM_Modules_Admin_Bar', 'admin_bar_styles' ), 999 );
77
+          remove_action( 'init', array( 'PUM_Modules_Admin_Bar', 'show_debug_bar' ) );
78
+     }
79 79
 }
80 80
 LSX_Optimisation::get_instance();
Please login to merge, or discard this patch.