Passed
Push — purged ( 47fc08...1a7250 )
by Jacques
07:28 queued 02:18
created
includes/classes/class-lsx-customize-header-layout-control.php 2 patches
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   header-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_Header_Layout_Control' ) ) :
18
+if ( ! class_exists('LSX_Customize_Header_Layout_Control')) :
19 19
 
20 20
 	/**
21 21
 	 * LSX_Customize_Header_Layout_Control Class
@@ -30,10 +30,10 @@  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 );
33
+		public function __construct($manager, $id, $args = array()) {
34
+			parent::__construct($manager, $id, $args);
35 35
 
36
-			if ( ! empty( $args['choices'] ) ) {
36
+			if ( ! empty($args['choices'])) {
37 37
 				$this->layouts = $args['choices'];
38 38
 			}
39 39
 		}
@@ -42,39 +42,39 @@  discard block
 block discarded – undo
42 42
 		 * Enqueue scripts/styles for the color picker.
43 43
 		 */
44 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 );
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 46
 		}
47 47
 
48 48
 		/**
49 49
 		 * Render output.
50 50
 		 */
51 51
 		public function render_content() {
52
-			$post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
52
+			$post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id));
53 53
 			$class   = 'customize-control customize-control-' . $this->type;
54 54
 			$value   = $this->value();
55 55
 			?>
56 56
 			<label>
57 57
 				<?php
58
-				if ( ! empty( $this->label ) ) {
58
+				if ( ! empty($this->label)) {
59 59
 					?>
60
-						<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
60
+						<span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
61 61
 					<?php
62 62
 				}
63
-				if ( ! empty( $this->description ) ) {
63
+				if ( ! empty($this->description)) {
64 64
 					?>
65
-					<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
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 ) {
69
+					foreach ($this->layouts as $layout) {
70 70
 						$sel = 'border: 1px solid transparent;';
71
-						if ( $value === $layout ) {
71
+						if ($value === $layout) {
72 72
 							$sel = 'border: 1px solid rgb(43, 166, 203);';
73 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 ) . '">';
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 75
 					}
76 76
 					?>
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(); ?>>
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
Please login to merge, or discard this 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.
comments.php 2 patches
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -5,35 +5,35 @@  discard block
 block discarded – undo
5 5
  * @package lsx
6 6
  */
7 7
 
8
-if ( post_password_required() ) {
8
+if (post_password_required()) {
9 9
 	return;
10 10
 }
11 11
 
12 12
 $commenter = wp_get_current_commenter();
13
-$req       = get_option( 'require_name_email' );
14
-$aria_req  = ( $req ? " aria-required='true'" : '' );
15
-$html_req  = ( $req ? " required='required'" : '' );
13
+$req       = get_option('require_name_email');
14
+$aria_req  = ($req ? " aria-required='true'" : '');
15
+$html_req  = ($req ? " required='required'" : '');
16 16
 
17 17
 $comment_form_args = array(
18
-	'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__( 'Comment', 'lsx' ) . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
18
+	'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__('Comment', 'lsx') . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
19 19
 
20 20
 	'fields'        => array(
21
-		'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'lsx' ) . '</label> ' .
22
-			( $req ? '<span class="required">*</span>' : '' ) .
23
-			'<input class="form-control" placeholder="' . esc_html__( 'Name', 'lsx' ) . '" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
21
+		'author' => '<p class="comment-form-author"><label for="author">' . esc_html__('Name', 'lsx') . '</label> ' .
22
+			($req ? '<span class="required">*</span>' : '') .
23
+			'<input class="form-control" placeholder="' . esc_html__('Name', 'lsx') . '" id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . $html_req . '></p>',
24 24
 
25
-		'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'lsx' ) . '</label> ' .
26
-			( $req ? '<span class="required">*</span>' : '' ) .
27
-			'<input class="form-control" placeholder="' . esc_html__( 'Email', 'lsx' ) . '" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
25
+		'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__('Email', 'lsx') . '</label> ' .
26
+			($req ? '<span class="required">*</span>' : '') .
27
+			'<input class="form-control" placeholder="' . esc_html__('Email', 'lsx') . '" id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . $html_req . '></p>',
28 28
 
29
-		'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__( 'Website', 'lsx' ) . '</label>' .
30
-			'<input class="form-control" placeholder="' . esc_html__( 'Website', 'lsx' ) . '" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></p>',
29
+		'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__('Website', 'lsx') . '</label>' .
30
+			'<input class="form-control" placeholder="' . esc_html__('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>',
31 31
 	),
32 32
 );
33 33
 
34
-comment_form( $comment_form_args );
34
+comment_form($comment_form_args);
35 35
 
36
-if ( have_comments() ) : ?>
36
+if (have_comments()) : ?>
37 37
 
38 38
 	<?php lsx_comments_before(); ?>
39 39
 
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 			<?php
43 43
 				$comments_number = get_comments_number();
44 44
 
45
-			if ( '1' === $comments_number ) {
45
+			if ('1' === $comments_number) {
46 46
 				printf(
47 47
 					/* Translators: %s: post title */
48
-					esc_html_x( 'One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx' ),
48
+					esc_html_x('One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx'),
49 49
 					get_the_title()
50 50
 				);
51 51
 			} else {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 							'lsx'
61 61
 						)
62 62
 					),
63
-					esc_html( number_format_i18n( $comments_number ) ),
63
+					esc_html(number_format_i18n($comments_number)),
64 64
 					get_the_title()
65 65
 				);
66 66
 			}
@@ -79,24 +79,24 @@  discard block
 block discarded – undo
79 79
 
80 80
 		<?php
81 81
 		$comment_pages_count = get_comment_pages_count();
82
-		if ( $comment_pages_count > 1 && get_option( 'page_comments' ) ) :
82
+		if ($comment_pages_count > 1 && get_option('page_comments')) :
83 83
 			?>
84 84
 			<nav>
85 85
 				<ul class="pager">
86
-					<?php if ( get_previous_comments_link() ) : ?>
87
-						<li class="previous"><?php previous_comments_link( esc_html__( '&larr; Older comments', 'lsx' ) ); ?></li>
86
+					<?php if (get_previous_comments_link()) : ?>
87
+						<li class="previous"><?php previous_comments_link(esc_html__('&larr; Older comments', 'lsx')); ?></li>
88 88
 					<?php endif; ?>
89 89
 
90
-					<?php if ( get_next_comments_link() ) : ?>
91
-						<li class="next"><?php next_comments_link( esc_html__( 'Newer comments &rarr;', 'lsx' ) ); ?></li>
90
+					<?php if (get_next_comments_link()) : ?>
91
+						<li class="next"><?php next_comments_link(esc_html__('Newer comments &rarr;', 'lsx')); ?></li>
92 92
 					<?php endif; ?>
93 93
 				</ul>
94 94
 			</nav>
95 95
 		<?php endif; ?>
96 96
 
97
-		<?php if ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
97
+		<?php if ( ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
98 98
 			<div class="alert alert-warning">
99
-				<?php esc_html_e( 'Comments are closed.', 'lsx' ); ?>
99
+				<?php esc_html_e('Comments are closed.', 'lsx'); ?>
100 100
 			</div>
101 101
 		<?php endif; ?>
102 102
 	</section><!-- /#comments -->
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
 
106 106
 <?php endif; ?>
107 107
 
108
-<?php if ( ! have_comments() && ! comments_open() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
108
+<?php if ( ! have_comments() && ! comments_open() && post_type_supports(get_post_type(), 'comments')) : ?>
109 109
 
110 110
 	<section id="comments">
111 111
 		<div class="alert alert-warning">
112
-			<?php esc_html_e( 'Comments are closed.', 'lsx' ); ?>
112
+			<?php esc_html_e('Comments are closed.', 'lsx'); ?>
113 113
 		</div>
114 114
 	</section><!-- /#comments -->
115 115
 
Please login to merge, or discard this patch.
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( post_password_required() ) {
9
-	return;
9
+     return;
10 10
 }
11 11
 
12 12
 $commenter = wp_get_current_commenter();
@@ -15,20 +15,20 @@  discard block
 block discarded – undo
15 15
 $html_req  = ( $req ? " required='required'" : '' );
16 16
 
17 17
 $comment_form_args = array(
18
-	'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__( 'Comment', 'lsx' ) . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
18
+     'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__( 'Comment', 'lsx' ) . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
19 19
 
20
-	'fields'        => array(
21
-		'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'lsx' ) . '</label> ' .
22
-			( $req ? '<span class="required">*</span>' : '' ) .
23
-			'<input class="form-control" placeholder="' . esc_html__( 'Name', 'lsx' ) . '" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
20
+     'fields'        => array(
21
+          'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'lsx' ) . '</label> ' .
22
+               ( $req ? '<span class="required">*</span>' : '' ) .
23
+               '<input class="form-control" placeholder="' . esc_html__( 'Name', 'lsx' ) . '" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
24 24
 
25
-		'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'lsx' ) . '</label> ' .
26
-			( $req ? '<span class="required">*</span>' : '' ) .
27
-			'<input class="form-control" placeholder="' . esc_html__( 'Email', 'lsx' ) . '" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
25
+          'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'lsx' ) . '</label> ' .
26
+               ( $req ? '<span class="required">*</span>' : '' ) .
27
+               '<input class="form-control" placeholder="' . esc_html__( 'Email', 'lsx' ) . '" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
28 28
 
29
-		'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__( 'Website', 'lsx' ) . '</label>' .
30
-			'<input class="form-control" placeholder="' . esc_html__( 'Website', 'lsx' ) . '" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></p>',
31
-	),
29
+          'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__( 'Website', 'lsx' ) . '</label>' .
30
+               '<input class="form-control" placeholder="' . esc_html__( 'Website', 'lsx' ) . '" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></p>',
31
+     ),
32 32
 );
33 33
 
34 34
 comment_form( $comment_form_args );
@@ -40,47 +40,47 @@  discard block
 block discarded – undo
40 40
 	<section id="comments">
41 41
 		<h3>
42 42
 			<?php
43
-				$comments_number = get_comments_number();
44
-
45
-			if ( '1' === $comments_number ) {
46
-				printf(
47
-					/* Translators: %s: post title */
48
-					esc_html_x( 'One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx' ),
49
-					get_the_title()
50
-				);
51
-			} else {
52
-				printf(
53
-					esc_html(
54
-						/* Translators: 1: number of comments, 2: post title */
55
-						_nx(
56
-							'%1$s Response to &ldquo;%2$s&rdquo;',
57
-							'%1$s Responses to &ldquo;%2$s&rdquo;',
58
-							$comments_number,
59
-							'comments.php',
60
-							'lsx'
61
-						)
62
-					),
63
-					esc_html( number_format_i18n( $comments_number ) ),
64
-					get_the_title()
65
-				);
66
-			}
67
-			?>
43
+                    $comments_number = get_comments_number();
44
+
45
+               if ( '1' === $comments_number ) {
46
+                    printf(
47
+                         /* Translators: %s: post title */
48
+                         esc_html_x( 'One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx' ),
49
+                         get_the_title()
50
+                    );
51
+               } else {
52
+                    printf(
53
+                         esc_html(
54
+                              /* Translators: 1: number of comments, 2: post title */
55
+                              _nx(
56
+                                   '%1$s Response to &ldquo;%2$s&rdquo;',
57
+                                   '%1$s Responses to &ldquo;%2$s&rdquo;',
58
+                                   $comments_number,
59
+                                   'comments.php',
60
+                                   'lsx'
61
+                              )
62
+                         ),
63
+                         esc_html( number_format_i18n( $comments_number ) ),
64
+                         get_the_title()
65
+                    );
66
+               }
67
+               ?>
68 68
 		</h3>
69 69
 
70 70
 		<ol class="media-list">
71 71
 			<?php
72
-				wp_list_comments(
73
-					array(
74
-						'walker' => new LSX_Walker_Comment(),
75
-					)
76
-				);
77
-			?>
72
+                    wp_list_comments(
73
+                         array(
74
+                              'walker' => new LSX_Walker_Comment(),
75
+                         )
76
+                    );
77
+               ?>
78 78
 		</ol>
79 79
 
80 80
 		<?php
81
-		$comment_pages_count = get_comment_pages_count();
82
-		if ( $comment_pages_count > 1 && get_option( 'page_comments' ) ) :
83
-			?>
81
+          $comment_pages_count = get_comment_pages_count();
82
+          if ( $comment_pages_count > 1 && get_option( 'page_comments' ) ) :
83
+               ?>
84 84
 			<nav>
85 85
 				<ul class="pager">
86 86
 					<?php if ( get_previous_comments_link() ) : ?>
@@ -116,5 +116,5 @@  discard block
 block discarded – undo
116 116
 	<?php lsx_comments_after(); ?>
117 117
 
118 118
 	<?php
119
-	endif;
119
+     endif;
120 120
 ?>
Please login to merge, or discard this patch.
includes/classes/class-lsx-customize-mobile-header-layout-control.php 2 patches
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   mobile-header-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_Mobile_Header_Layout_Control' ) ) :
18
+if ( ! class_exists('LSX_Customize_Mobile_Header_Layout_Control')) :
19 19
 
20 20
 	/**
21 21
 	 * LSX_Customize_Mobile_Header_Layout_Control Class
@@ -30,10 +30,10 @@  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 );
33
+		public function __construct($manager, $id, $args = array()) {
34
+			parent::__construct($manager, $id, $args);
35 35
 
36
-			if ( ! empty( $args['choices'] ) ) {
36
+			if ( ! empty($args['choices'])) {
37 37
 				$this->layouts = $args['choices'];
38 38
 			}
39 39
 		}
@@ -42,39 +42,39 @@  discard block
 block discarded – undo
42 42
 		 * Enqueue scripts/styles for the color picker.
43 43
 		 */
44 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 );
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 46
 		}
47 47
 
48 48
 		/**
49 49
 		 * Render output.
50 50
 		 */
51 51
 		public function render_content() {
52
-			$post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
52
+			$post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id));
53 53
 			$class   = 'customize-control customize-control-' . $this->type;
54 54
 			$value   = $this->value();
55 55
 			?>
56 56
 			<label>
57 57
 				<?php
58
-				if ( ! empty( $this->label ) ) {
58
+				if ( ! empty($this->label)) {
59 59
 					?>
60
-						<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
60
+						<span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
61 61
 					<?php
62 62
 				}
63
-				if ( ! empty( $this->description ) ) {
63
+				if ( ! empty($this->description)) {
64 64
 					?>
65
-					<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
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 ) {
69
+					foreach ($this->layouts as $layout) {
70 70
 						$sel = 'border: 1px solid transparent;';
71
-						if ( $value === $layout ) {
71
+						if ($value === $layout) {
72 72
 							$sel = 'border: 1px solid rgb(43, 166, 203);';
73 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 ) . '">';
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 75
 					}
76 76
 					?>
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(); ?>>
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
Please login to merge, or discard this 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/widgets.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage widgets
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_widget_area_init' ) ) :
13
+if ( ! function_exists('lsx_widget_area_init')) :
14 14
 
15 15
 	/**
16 16
 	 * Register widgetized area and update sidebar with default widgets.
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	function lsx_widget_area_init() {
22 22
 		register_sidebar(
23 23
 			array(
24
-				'name'          => esc_html__( 'Home', 'lsx' ),
24
+				'name'          => esc_html__('Home', 'lsx'),
25 25
 				'id'            => 'sidebar-home',
26 26
 				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
27 27
 				'after_widget'  => '</aside>',
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 		register_sidebar(
34 34
 			array(
35
-				'name'          => esc_html__( 'Sidebar', 'lsx' ),
35
+				'name'          => esc_html__('Sidebar', 'lsx'),
36 36
 				'id'            => 'sidebar-1',
37 37
 				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
38 38
 				'after_widget'  => '</aside>',
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
 		register_sidebar(
45 45
 			array(
46
-				'name'          => esc_html__( 'Footer', 'lsx' ),
46
+				'name'          => esc_html__('Footer', 'lsx'),
47 47
 				'id'            => 'sidebar-footer',
48 48
 				'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
49 49
 				'after_widget'  => '</aside></div>',
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 		register_sidebar(
56 56
 			array(
57
-				'name'          => esc_html__( 'Footer Call to Action', 'lsx' ),
57
+				'name'          => esc_html__('Footer Call to Action', 'lsx'),
58 58
 				'id'            => 'sidebar-footer-cta',
59 59
 				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
60 60
 				'after_widget'  => '</aside>',
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
 
67 67
 endif;
68 68
 
69
-add_action( 'widgets_init', 'lsx_widget_area_init' );
69
+add_action('widgets_init', 'lsx_widget_area_init');
70 70
 
71
-if ( ! function_exists( 'lsx_sidebar_footer_params' ) ) :
71
+if ( ! function_exists('lsx_sidebar_footer_params')) :
72 72
 
73 73
 	/**
74 74
 	 * Register widgetized area and update sidebar with default widgets.
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
 	 * @subpackage widgets
78 78
 	 * @return $params
79 79
 	 */
80
-	function lsx_sidebar_footer_params( $params ) {
80
+	function lsx_sidebar_footer_params($params) {
81 81
 		$sidebar_id = $params[0]['id'];
82 82
 
83
-		if ( 'sidebar-footer' === $sidebar_id ) {
83
+		if ('sidebar-footer' === $sidebar_id) {
84 84
 			$total_widgets              = wp_get_sidebars_widgets();
85
-			$sidebar_widgets            = count( $total_widgets[ $sidebar_id ] );
86
-			$params[0]['before_widget'] = str_replace( 'class="styler', 'class="col-md-' . floor( 12 / $sidebar_widgets ), $params[0]['before_widget'] );
85
+			$sidebar_widgets            = count($total_widgets[$sidebar_id]);
86
+			$params[0]['before_widget'] = str_replace('class="styler', 'class="col-md-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']);
87 87
 		}
88 88
 
89 89
 		return $params;
@@ -91,4 +91,4 @@  discard block
 block discarded – undo
91 91
 
92 92
 endif;
93 93
 
94
-add_filter( 'dynamic_sidebar_params', 'lsx_sidebar_footer_params' );
94
+add_filter('dynamic_sidebar_params', 'lsx_sidebar_footer_params');
Please login to merge, or discard this patch.
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -7,62 +7,62 @@  discard block
 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_widget_area_init' ) ) :
14 14
 
15
-	/**
16
-	 * Register widgetized area and update sidebar with default widgets.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage widgets
20
-	 */
21
-	function lsx_widget_area_init() {
22
-		register_sidebar(
23
-			array(
24
-				'name'          => esc_html__( 'Home', 'lsx' ),
25
-				'id'            => 'sidebar-home',
26
-				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
27
-				'after_widget'  => '</aside>',
28
-				'before_title'  => '<h3 class="widget-title">',
29
-				'after_title'   => '</h3>',
30
-			)
31
-		);
15
+     /**
16
+      * Register widgetized area and update sidebar with default widgets.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage widgets
20
+      */
21
+     function lsx_widget_area_init() {
22
+          register_sidebar(
23
+               array(
24
+                    'name'          => esc_html__( 'Home', 'lsx' ),
25
+                    'id'            => 'sidebar-home',
26
+                    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
27
+                    'after_widget'  => '</aside>',
28
+                    'before_title'  => '<h3 class="widget-title">',
29
+                    'after_title'   => '</h3>',
30
+               )
31
+          );
32 32
 
33
-		register_sidebar(
34
-			array(
35
-				'name'          => esc_html__( 'Sidebar', 'lsx' ),
36
-				'id'            => 'sidebar-1',
37
-				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
38
-				'after_widget'  => '</aside>',
39
-				'before_title'  => '<h3 class="widget-title">',
40
-				'after_title'   => '</h3>',
41
-			)
42
-		);
33
+          register_sidebar(
34
+               array(
35
+                    'name'          => esc_html__( 'Sidebar', 'lsx' ),
36
+                    'id'            => 'sidebar-1',
37
+                    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
38
+                    'after_widget'  => '</aside>',
39
+                    'before_title'  => '<h3 class="widget-title">',
40
+                    'after_title'   => '</h3>',
41
+               )
42
+          );
43 43
 
44
-		register_sidebar(
45
-			array(
46
-				'name'          => esc_html__( 'Footer', 'lsx' ),
47
-				'id'            => 'sidebar-footer',
48
-				'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
49
-				'after_widget'  => '</aside></div>',
50
-				'before_title'  => '<h3 class="widget-title">',
51
-				'after_title'   => '</h3>',
52
-			)
53
-		);
44
+          register_sidebar(
45
+               array(
46
+                    'name'          => esc_html__( 'Footer', 'lsx' ),
47
+                    'id'            => 'sidebar-footer',
48
+                    'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
49
+                    'after_widget'  => '</aside></div>',
50
+                    'before_title'  => '<h3 class="widget-title">',
51
+                    'after_title'   => '</h3>',
52
+               )
53
+          );
54 54
 
55
-		register_sidebar(
56
-			array(
57
-				'name'          => esc_html__( 'Footer Call to Action', 'lsx' ),
58
-				'id'            => 'sidebar-footer-cta',
59
-				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
60
-				'after_widget'  => '</aside>',
61
-				'before_title'  => '<h3 class="widget-title">',
62
-				'after_title'   => '</h3>',
63
-			)
64
-		);
65
-	}
55
+          register_sidebar(
56
+               array(
57
+                    'name'          => esc_html__( 'Footer Call to Action', 'lsx' ),
58
+                    'id'            => 'sidebar-footer-cta',
59
+                    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
60
+                    'after_widget'  => '</aside>',
61
+                    'before_title'  => '<h3 class="widget-title">',
62
+                    'after_title'   => '</h3>',
63
+               )
64
+          );
65
+     }
66 66
 
67 67
 endif;
68 68
 
@@ -70,24 +70,24 @@  discard block
 block discarded – undo
70 70
 
71 71
 if ( ! function_exists( 'lsx_sidebar_footer_params' ) ) :
72 72
 
73
-	/**
74
-	 * Register widgetized area and update sidebar with default widgets.
75
-	 *
76
-	 * @package    lsx
77
-	 * @subpackage widgets
78
-	 * @return $params
79
-	 */
80
-	function lsx_sidebar_footer_params( $params ) {
81
-		$sidebar_id = $params[0]['id'];
73
+     /**
74
+      * Register widgetized area and update sidebar with default widgets.
75
+      *
76
+      * @package    lsx
77
+      * @subpackage widgets
78
+      * @return $params
79
+      */
80
+     function lsx_sidebar_footer_params( $params ) {
81
+          $sidebar_id = $params[0]['id'];
82 82
 
83
-		if ( 'sidebar-footer' === $sidebar_id ) {
84
-			$total_widgets              = wp_get_sidebars_widgets();
85
-			$sidebar_widgets            = count( $total_widgets[ $sidebar_id ] );
86
-			$params[0]['before_widget'] = str_replace( 'class="styler', 'class="col-md-' . floor( 12 / $sidebar_widgets ), $params[0]['before_widget'] );
87
-		}
83
+          if ( 'sidebar-footer' === $sidebar_id ) {
84
+               $total_widgets              = wp_get_sidebars_widgets();
85
+               $sidebar_widgets            = count( $total_widgets[ $sidebar_id ] );
86
+               $params[0]['before_widget'] = str_replace( 'class="styler', 'class="col-md-' . floor( 12 / $sidebar_widgets ), $params[0]['before_widget'] );
87
+          }
88 88
 
89
-		return $params;
90
-	}
89
+          return $params;
90
+     }
91 91
 
92 92
 endif;
93 93
 
Please login to merge, or discard this patch.
includes/sanitize.php 2 patches
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.
Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -7,112 +7,112 @@
 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_sanitize_choices' ) ) :
14 14
 
15
-	/**
16
-	 * Sanitize a value from a list of allowed values.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage sanitize
20
-	 *
21
-	 * @param mixed $value      The value to sanitize.
22
-	 * @param mixed $setting    The setting for which the sanitizing is occurring.
23
-	 * @return mixed                The sanitized value.
24
-	 */
25
-	function lsx_sanitize_choices( $value, $setting ) {
26
-		if ( is_object( $setting ) ) {
27
-			$setting = $setting->id;
28
-		}
29
-
30
-		$choices = lsx_customizer_sanitize_get_choices( $setting );
31
-
32
-		if ( ! is_wp_error( $choices ) && ! empty( $choices ) ) {
33
-			$allowed_choices = array_keys( $choices );
34
-
35
-			if ( ! in_array( $value, $allowed_choices ) ) {
36
-				$value = lsx_customizer_sanitize_get_default( $setting );
37
-			}
38
-
39
-			return $value;
40
-		} else {
41
-			return $choices;
42
-		}
43
-	}
15
+     /**
16
+      * Sanitize a value from a list of allowed values.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage sanitize
20
+      *
21
+      * @param mixed $value      The value to sanitize.
22
+      * @param mixed $setting    The setting for which the sanitizing is occurring.
23
+      * @return mixed                The sanitized value.
24
+      */
25
+     function lsx_sanitize_choices( $value, $setting ) {
26
+          if ( is_object( $setting ) ) {
27
+               $setting = $setting->id;
28
+          }
29
+
30
+          $choices = lsx_customizer_sanitize_get_choices( $setting );
31
+
32
+          if ( ! is_wp_error( $choices ) && ! empty( $choices ) ) {
33
+               $allowed_choices = array_keys( $choices );
34
+
35
+               if ( ! in_array( $value, $allowed_choices ) ) {
36
+                    $value = lsx_customizer_sanitize_get_default( $setting );
37
+               }
38
+
39
+               return $value;
40
+          } else {
41
+               return $choices;
42
+          }
43
+     }
44 44
 
45 45
 endif;
46 46
 
47 47
 if ( ! function_exists( 'lsx_customizer_sanitize_get_choices' ) ) :
48 48
 
49
-	/**
50
-	 * Helper function to return the choices for a field.
51
-	 *
52
-	 * @package    lsx
53
-	 * @subpackage sanitize
54
-	 *
55
-	 * @param string
56
-	 * @return mixed $field
57
-	 */
58
-	function lsx_customizer_sanitize_get_choices( $id ) {
59
-		global $lsx_customizer;
49
+     /**
50
+      * Helper function to return the choices for a field.
51
+      *
52
+      * @package    lsx
53
+      * @subpackage sanitize
54
+      *
55
+      * @param string
56
+      * @return mixed $field
57
+      */
58
+     function lsx_customizer_sanitize_get_choices( $id ) {
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;
66
-		}
64
+          if ( ! isset( $field['choices'] ) ) {
65
+               return $can_validate ? new WP_Error( 'notexists', esc_html__( 'Choice doesn\'t exist', 'lsx' ) ) : false;
66
+          }
67 67
 
68
-		return $field['choices'];
69
-	}
68
+          return $field['choices'];
69
+     }
70 70
 
71 71
 endif;
72 72
 
73 73
 if ( ! function_exists( 'lsx_customizer_sanitize_get_default' ) ) :
74 74
 
75
-	/**
76
-	 * Helper function to return defaults.
77
-	 *
78
-	 * @package    lsx
79
-	 * @subpackage sanitize
80
-	 *
81
-	 * @param string
82
-	 * @return mixed $default
83
-	 */
84
-	function lsx_customizer_sanitize_get_default( $id ) {
85
-		global $lsx_customizer;
86
-		$setting = $lsx_customizer->get_setting( $id );
87
-
88
-		if ( isset( $setting['default'] ) ) {
89
-			return $setting['default'];
90
-		}
91
-
92
-		return false;
93
-	}
75
+     /**
76
+      * Helper function to return defaults.
77
+      *
78
+      * @package    lsx
79
+      * @subpackage sanitize
80
+      *
81
+      * @param string
82
+      * @return mixed $default
83
+      */
84
+     function lsx_customizer_sanitize_get_default( $id ) {
85
+          global $lsx_customizer;
86
+          $setting = $lsx_customizer->get_setting( $id );
87
+
88
+          if ( isset( $setting['default'] ) ) {
89
+               return $setting['default'];
90
+          }
91
+
92
+          return false;
93
+     }
94 94
 
95 95
 endif;
96 96
 
97 97
 if ( ! function_exists( 'lsx_sanitize_checkbox' ) ) :
98 98
 
99
-	/**
100
-	 * Sanitizes an single or multiple checkbox input.
101
-	 *
102
-	 * @package    lsx
103
-	 * @subpackage sanitize
104
-	 *
105
-	 * @param array $input
106
-	 * @return array $output
107
-	 */
108
-	function lsx_sanitize_checkbox( $input ) {
109
-		$can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
110
-
111
-		if ( ! is_bool( $input ) ) {
112
-			return $can_validate ? new WP_Error( 'notboolean', esc_html__( 'Not a boolean', 'lsx' ) ) : false;
113
-		}
114
-
115
-		return $input;
116
-	}
99
+     /**
100
+      * Sanitizes an single or multiple checkbox input.
101
+      *
102
+      * @package    lsx
103
+      * @subpackage sanitize
104
+      *
105
+      * @param array $input
106
+      * @return array $output
107
+      */
108
+     function lsx_sanitize_checkbox( $input ) {
109
+          $can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
110
+
111
+          if ( ! is_bool( $input ) ) {
112
+               return $can_validate ? new WP_Error( 'notboolean', esc_html__( 'Not a boolean', 'lsx' ) ) : false;
113
+          }
114
+
115
+          return $input;
116
+     }
117 117
 
118 118
 endif;
Please login to merge, or discard this patch.
includes/classes/class-lsx-customize-layout-control.php 2 patches
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.
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -8,77 +8,77 @@
 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_Layout_Control' ) ) :
19 19
 
20
-	/**
21
-	 * LSX_Customize_Layout_Control Class.
22
-	 *
23
-	 * @package    lsx
24
-	 * @subpackage customizer
25
-	 * @category   layout
26
-	 */
27
-	class LSX_Customize_Layout_Control extends WP_Customize_Control {
20
+     /**
21
+      * LSX_Customize_Layout_Control Class.
22
+      *
23
+      * @package    lsx
24
+      * @subpackage customizer
25
+      * @category   layout
26
+      */
27
+     class LSX_Customize_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 );
35
-			if ( ! empty( $args['choices'] ) ) {
36
-				$this->layouts = $args['choices'];
37
-			}
38
-		}
33
+          public function __construct( $manager, $id, $args = array() ) {
34
+               parent::__construct( $manager, $id, $args );
35
+               if ( ! empty( $args['choices'] ) ) {
36
+                    $this->layouts = $args['choices'];
37
+               }
38
+          }
39 39
 
40
-		/**
41
-		 * Enqueue scripts/styles for the color picker.
42
-		 */
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 );
45
-		}
40
+          /**
41
+           * Enqueue scripts/styles for the color picker.
42
+           */
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 );
45
+          }
46 46
 
47
-		/**
48
-		 * Render output.
49
-		 */
50
-		public function render_content() {
51
-			$post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
52
-			$class   = 'customize-control customize-control-' . $this->type;
53
-			$value   = $this->value();
54
-			?>
47
+          /**
48
+           * Render output.
49
+           */
50
+          public function render_content() {
51
+               $post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
52
+               $class   = 'customize-control customize-control-' . $this->type;
53
+               $value   = $this->value();
54
+               ?>
55 55
 			<label>
56 56
 				<?php
57
-				if ( ! empty( $this->label ) ) {
58
-					?>
57
+                    if ( ! empty( $this->label ) ) {
58
+                         ?>
59 59
 					<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
60 60
 					<?php
61
-				}
62
-				if ( ! empty( $this->description ) ) {
63
-					?>
61
+                    }
62
+                    if ( ! empty( $this->description ) ) {
63
+                         ?>
64 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 ) {
69
-						$sel = 'border: 1px solid transparent;';
70
-						if ( $value === $layout ) {
71
-							$sel = 'border: 1px solid rgb(43, 166, 203);';
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 ) . '">';
74
-					}
75
-					?>
68
+                         foreach ( $this->layouts as $layout ) {
69
+                              $sel = 'border: 1px solid transparent;';
70
+                              if ( $value === $layout ) {
71
+                                   $sel = 'border: 1px solid rgb(43, 166, 203);';
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 ) . '">';
74
+                         }
75
+                         ?>
76 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
80
-		}
80
+          }
81 81
 
82
-	}
82
+     }
83 83
 
84 84
 endif;
Please login to merge, or discard this patch.
single.php 2 patches
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.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@  discard block
 block discarded – undo
20 20
 		<?php if ( have_posts() ) : ?>
21 21
 
22 22
 			<?php
23
-			while ( have_posts() ) :
24
-				the_post();
25
-			?>
23
+               while ( have_posts() ) :
24
+                    the_post();
25
+               ?>
26 26
 
27 27
 				<?php
28
-				if ( is_singular( 'post' ) ) {
29
-					get_template_part( 'partials/content', 'post' );
30
-				} else {
31
-					get_template_part( 'partials/content', 'custom' );
32
-				}
33
-				?>
28
+                    if ( is_singular( 'post' ) ) {
29
+                         get_template_part( 'partials/content', 'post' );
30
+                    } else {
31
+                         get_template_part( 'partials/content', 'custom' );
32
+                    }
33
+                    ?>
34 34
 
35 35
 			<?php endwhile; ?>
36 36
 
@@ -43,16 +43,16 @@  discard block
 block discarded – undo
43 43
 	<?php lsx_content_after(); ?>
44 44
 
45 45
 	<?php
46
-	if ( is_singular( 'post' ) ) {
47
-		lsx_post_nav();
48
-	}
49
-	?>
46
+     if ( is_singular( 'post' ) ) {
47
+          lsx_post_nav();
48
+     }
49
+     ?>
50 50
 
51 51
 	<?php
52
-	if ( comments_open() ) {
53
-		comments_template();
54
-	}
55
-	?>
52
+     if ( comments_open() ) {
53
+          comments_template();
54
+     }
55
+     ?>
56 56
 
57 57
 </div><!-- #primary -->
58 58
 
Please login to merge, or discard this patch.
page-templates/template-sitemap.php 2 patches
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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
 		<?php if ( have_posts() ) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
27
-				the_post();
28
-				?>
26
+               while ( have_posts() ) :
27
+                    the_post();
28
+                    ?>
29 29
 
30 30
 				<?php lsx_entry_before(); ?>
31 31
 
Please login to merge, or discard this patch.
page-templates/template-archives.php 2 patches
Spacing   +11 added lines, -11 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
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 					<?php lsx_entry_top(); ?>
35 35
 
36 36
 					<div class="entry-content">
37
-						<h2><?php esc_html_e( 'The Last 30 Posts', 'lsx' ); ?></h2>
37
+						<h2><?php esc_html_e('The Last 30 Posts', 'lsx'); ?></h2>
38 38
 
39 39
 						<ul>
40 40
 							<?php
@@ -45,16 +45,16 @@  discard block
 block discarded – undo
45 45
 								);
46 46
 							?>
47 47
 
48
-							<?php if ( $loop->have_posts() ) : ?>
48
+							<?php if ($loop->have_posts()) : ?>
49 49
 
50
-								<?php while ( $loop->have_posts() ) : ?>
50
+								<?php while ($loop->have_posts()) : ?>
51 51
 
52 52
 									<?php
53 53
 										$loop->the_post();
54 54
 										$loop->is_home = false;
55 55
 									?>
56 56
 
57
-									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li>
57
+									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo esc_html($post->comment_count); ?> <?php esc_html_e('comments', 'lsx'); ?></li>
58 58
 
59 59
 								<?php endwhile; ?>
60 60
 
@@ -63,16 +63,16 @@  discard block
 block discarded – undo
63 63
 							<?php wp_reset_postdata(); ?>
64 64
 						</ul>
65 65
 
66
-						<h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2>
66
+						<h2><?php esc_html_e('Categories', 'lsx'); ?></h2>
67 67
 
68 68
 						<ul>
69
-							<?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?>
69
+							<?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?>
70 70
 						</ul>
71 71
 
72
-						<h2><?php esc_html_e( 'Monthly Archives', 'lsx' ); ?></h2>
72
+						<h2><?php esc_html_e('Monthly Archives', 'lsx'); ?></h2>
73 73
 
74 74
 						<ul>
75
-							<?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?>
75
+							<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
76 76
 						</ul>
77 77
 					</div><!-- .entry-content -->
78 78
 
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 		<?php if ( have_posts() ) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
27
-				the_post();
28
-				?>
26
+               while ( have_posts() ) :
27
+                    the_post();
28
+                    ?>
29 29
 
30 30
 				<?php lsx_entry_before(); ?>
31 31
 
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
 
39 39
 						<ul>
40 40
 							<?php
41
-								$loop = new WP_Query(
42
-									array(
43
-										'posts_per_page' => 30,
44
-									)
45
-								);
46
-							?>
41
+                                        $loop = new WP_Query(
42
+                                             array(
43
+                                                  'posts_per_page' => 30,
44
+                                             )
45
+                                        );
46
+                                   ?>
47 47
 
48 48
 							<?php if ( $loop->have_posts() ) : ?>
49 49
 
50 50
 								<?php while ( $loop->have_posts() ) : ?>
51 51
 
52 52
 									<?php
53
-										$loop->the_post();
54
-										$loop->is_home = false;
55
-									?>
53
+                                                  $loop->the_post();
54
+                                                  $loop->is_home = false;
55
+                                             ?>
56 56
 
57 57
 									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li>
58 58
 
Please login to merge, or discard this patch.