Completed
Pull Request — master (#342)
by Warwick
02:11
created
partials/content-related.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 <?php lsx_entry_before(); ?>
11 11
 
12 12
 <?php
13
-	$no_thumb_post_types   = array(
13
+	$no_thumb_post_types = array(
14 14
 		'audio'   => 'audio',
15 15
 		'gallery' => 'gallery',
16 16
 		'image'   => 'image',
@@ -18,38 +18,38 @@  discard block
 block discarded – undo
18 18
 		'quote'   => 'quote',
19 19
 		'video'   => 'video',
20 20
 	);
21
-	$no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
21
+	$no_thumb_post_formats = apply_filters('lsx_no_thumb_post_formats', $no_thumb_post_types);
22 22
 
23
-	$has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
23
+	$has_thumb = has_post_thumbnail() && ! has_post_format($no_thumb_post_formats);
24 24
 
25
-	if ( $has_thumb ) {
25
+	if ($has_thumb) {
26 26
 		$thumb_class = 'has-thumb';
27 27
 	} else {
28 28
 		$thumb_class = 'no-thumb';
29 29
 	}
30 30
 
31
-	$blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
31
+	$blog_layout = apply_filters('lsx_blog_layout', 'default');
32 32
 
33 33
 	$image_class = '';
34 34
 
35
-	$thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
-	$image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
35
+	$thumbnail_id = get_post_thumbnail_id(get_the_ID());
36
+	$image_arr    = wp_get_attachment_image_src($thumbnail_id, 'lsx-thumbnail-single');
37 37
 
38
-	if ( is_array( $image_arr ) ) {
38
+	if (is_array($image_arr)) {
39 39
 		$image_src = $image_arr[0];
40 40
 	}
41 41
 ?>
42 42
 
43
-<article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>>
43
+<article id="post-<?php the_ID(); ?>" <?php post_class(array('lsx-slot', $thumb_class)); ?>>
44 44
 	<?php lsx_entry_top(); ?>
45 45
 
46 46
 	<div class="entry-layout">
47 47
 		<div class="entry-layout-content entry-layout-content-<?php echo has_post_thumbnail() ? '67' : '100'; ?>">
48 48
 			<header class="entry-header">
49
-				<?php if ( $has_thumb ) : ?>
50
-					<div class="entry-image <?php echo esc_attr( $image_class ); ?>">
49
+				<?php if ($has_thumb) : ?>
50
+					<div class="entry-image <?php echo esc_attr($image_class); ?>">
51 51
 						<a class="thumbnail" href="<?php the_permalink(); ?>">
52
-							<?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?>
52
+							<?php lsx_thumbnail('lsx-thumbnail-single'); ?>
53 53
 						</a>
54 54
 					</div>
55 55
 				<?php endif; ?>
@@ -57,37 +57,37 @@  discard block
 block discarded – undo
57 57
 				<?php
58 58
 				$format = get_post_format();
59 59
 
60
-				if ( false === $format ) {
60
+				if (false === $format) {
61 61
 					$format        = 'standard';
62
-					$show_on_front = get_option( 'show_on_front', 'posts' );
62
+					$show_on_front = get_option('show_on_front', 'posts');
63 63
 
64
-					if ( 'page' === $show_on_front ) {
65
-						$archive_link = get_permalink( get_option( 'page_for_posts' ) );
64
+					if ('page' === $show_on_front) {
65
+						$archive_link = get_permalink(get_option('page_for_posts'));
66 66
 					} else {
67 67
 						$archive_link = home_url();
68 68
 					}
69 69
 				} else {
70
-					$archive_link = get_post_format_link( $format );
70
+					$archive_link = get_post_format_link($format);
71 71
 				}
72 72
 
73
-				$format = lsx_translate_format_to_fontawesome( $format );
73
+				$format = lsx_translate_format_to_fontawesome($format);
74 74
 				?>
75 75
 
76 76
 				<h2 class="entry-title">
77
-					<?php if ( has_post_thumbnail() ) : ?>
78
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a>
77
+					<?php if (has_post_thumbnail()) : ?>
78
+						<a href="<?php echo esc_url($archive_link); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format); ?>"></a>
79 79
 					<?php else : ?>
80
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a>
80
+						<a href="<?php echo esc_url($archive_link); ?>" class="format-link fa fa-<?php echo esc_attr($format); ?>"></a>
81 81
 					<?php endif; ?>
82 82
 
83
-					<?php if ( has_post_format( array( 'link' ) ) ) : ?>
84
-						<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
83
+					<?php if (has_post_format(array('link'))) : ?>
84
+						<a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
85 85
 					<?php else : ?>
86 86
 						<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
87 87
 					<?php endif; ?>
88 88
 
89
-					<?php if ( is_sticky() ) : ?>
90
-						<span class="label label-default label-sticky"><?php esc_html_e( 'Featured', 'lsx' ); ?></span>
89
+					<?php if (is_sticky()) : ?>
90
+						<span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span>
91 91
 					<?php endif; ?>
92 92
 				</h2>
93 93
 				<div class="entry-meta">
@@ -98,27 +98,27 @@  discard block
 block discarded – undo
98 98
 
99 99
 			</header><!-- .entry-header -->
100 100
 
101
-			<?php if ( has_post_format( array( 'quote' ) ) || apply_filters( 'lsx_blog_display_text_on_list', true ) ) : ?>
101
+			<?php if (has_post_format(array('quote')) || apply_filters('lsx_blog_display_text_on_list', true)) : ?>
102 102
 
103
-				<?php if ( lsx_post_format_force_content_on_list() && ! apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
103
+				<?php if (lsx_post_format_force_content_on_list() && ! apply_filters('lsx_blog_force_content_on_list', false)) : ?>
104 104
 
105 105
 					<div class="entry-summary">
106 106
 					<?php
107
-					if ( ! has_excerpt() ) {
107
+					if ( ! has_excerpt()) {
108 108
 
109
-						$excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
110
-						$content      = wp_trim_words( get_the_content(), 50 );
109
+						$excerpt_more = '<p><a class="moretag" href="' . esc_url(get_permalink()) . '">' . esc_html__('Read More', 'lsx') . '</a></p>';
110
+						$content      = wp_trim_words(get_the_content(), 50);
111 111
 						$content      = '<p>' . $content . '</p>' . $excerpt_more;
112
-						echo wp_kses_post( $content );
112
+						echo wp_kses_post($content);
113 113
 					} else {
114 114
 						the_excerpt();
115 115
 					}
116 116
 					?>
117 117
 					</div><!-- .entry-summary -->
118 118
 
119
-				<?php elseif ( has_post_format( array( 'link' ) ) ) : ?>
119
+				<?php elseif (has_post_format(array('link'))) : ?>
120 120
 
121
-				<?php elseif ( apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
121
+				<?php elseif (apply_filters('lsx_blog_force_content_on_list', false)) : ?>
122 122
 
123 123
 					<div class="entry-content">
124 124
 						<?php the_content(); ?>
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
 						<?php
131 131
 							the_content();
132 132
 
133
-							wp_link_pages( array(
133
+							wp_link_pages(array(
134 134
 								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
135 135
 								'after'       => '</div></div>',
136 136
 								'link_before' => '<span>',
137 137
 								'link_after'  => '</span>',
138
-							) );
138
+							));
139 139
 						?>
140 140
 					</div><!-- .entry-content -->
141 141
 
@@ -151,23 +151,23 @@  discard block
 block discarded – undo
151 151
 
152 152
 				<?php lsx_content_post_tags(); ?>
153 153
 
154
-				<?php if ( comments_open() && ! empty( $comments_number ) ) : ?>
154
+				<?php if (comments_open() && ! empty($comments_number)) : ?>
155 155
 					<div class="post-comments">
156 156
 						<a href="<?php the_permalink(); ?>#comments">
157 157
 							<?php
158
-							if ( '1' === $comments_number ) {
159
-								echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
158
+							if ('1' === $comments_number) {
159
+								echo esc_html_x('One Comment', 'content.php', 'lsx');
160 160
 							} else {
161 161
 								printf(
162 162
 									/* Translators: %s: number of comments */
163
-									esc_html( _nx(
163
+									esc_html(_nx(
164 164
 										'%s Comment',
165 165
 										'%s Comments',
166 166
 										$comments_number,
167 167
 										'content.php',
168 168
 										'lsx'
169
-									) ),
170
-									esc_html( number_format_i18n( $comments_number ) )
169
+									)),
170
+									esc_html(number_format_i18n($comments_number))
171 171
 								);
172 172
 							}
173 173
 							?>
@@ -177,11 +177,11 @@  discard block
 block discarded – undo
177 177
 			</div>
178 178
 		</div>
179 179
 
180
-		<?php if ( has_post_thumbnail() ) : ?>
180
+		<?php if (has_post_thumbnail()) : ?>
181 181
 
182 182
 			<div class="entry-image hidden-xs">
183
-				<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url( $image_src ); ?>);">
184
-					<?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?>
183
+				<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url($image_src); ?>);">
184
+					<?php lsx_thumbnail('lsx-thumbnail-single'); ?>
185 185
 				</a>
186 186
 			</div>
187 187
 
Please login to merge, or discard this patch.
partials/content.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 <?php lsx_entry_before(); ?>
11 11
 
12 12
 <?php
13
-	$no_thumb_post_types   = array(
13
+	$no_thumb_post_types = array(
14 14
 		'audio'   => 'audio',
15 15
 		'gallery' => 'gallery',
16 16
 		'image'   => 'image',
@@ -18,38 +18,38 @@  discard block
 block discarded – undo
18 18
 		'quote'   => 'quote',
19 19
 		'video'   => 'video',
20 20
 	);
21
-	$no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
21
+	$no_thumb_post_formats = apply_filters('lsx_no_thumb_post_formats', $no_thumb_post_types);
22 22
 
23
-	$has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
23
+	$has_thumb = has_post_thumbnail() && ! has_post_format($no_thumb_post_formats);
24 24
 
25
-	if ( $has_thumb ) {
25
+	if ($has_thumb) {
26 26
 		$thumb_class = 'has-thumb';
27 27
 	} else {
28 28
 		$thumb_class = 'no-thumb';
29 29
 	}
30 30
 
31
-	$blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
31
+	$blog_layout = apply_filters('lsx_blog_layout', 'default');
32 32
 
33 33
 	$image_class = '';
34 34
 
35
-	$thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
-	$image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
35
+	$thumbnail_id = get_post_thumbnail_id(get_the_ID());
36
+	$image_arr    = wp_get_attachment_image_src($thumbnail_id, 'lsx-thumbnail-single');
37 37
 
38
-	if ( is_array( $image_arr ) ) {
38
+	if (is_array($image_arr)) {
39 39
 		$image_src = $image_arr[0];
40 40
 	}
41 41
 ?>
42 42
 
43
-<article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>>
43
+<article id="post-<?php the_ID(); ?>" <?php post_class(array('lsx-slot', $thumb_class)); ?>>
44 44
 	<?php lsx_entry_top(); ?>
45 45
 
46 46
 	<div class="entry-layout">
47 47
 		<div class="entry-layout-content entry-layout-content-<?php echo has_post_thumbnail() ? '67' : '100'; ?>">
48 48
 			<header class="entry-header">
49
-				<?php if ( $has_thumb ) : ?>
50
-					<div class="entry-image <?php echo esc_attr( $image_class ); ?>">
49
+				<?php if ($has_thumb) : ?>
50
+					<div class="entry-image <?php echo esc_attr($image_class); ?>">
51 51
 						<a class="thumbnail" href="<?php the_permalink(); ?>">
52
-							<?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?>
52
+							<?php lsx_thumbnail('lsx-thumbnail-single'); ?>
53 53
 						</a>
54 54
 					</div>
55 55
 				<?php endif; ?>
@@ -57,37 +57,37 @@  discard block
 block discarded – undo
57 57
 				<?php
58 58
 				$format = get_post_format();
59 59
 
60
-				if ( false === $format ) {
60
+				if (false === $format) {
61 61
 					$format        = 'standard';
62
-					$show_on_front = get_option( 'show_on_front', 'posts' );
62
+					$show_on_front = get_option('show_on_front', 'posts');
63 63
 
64
-					if ( 'page' === $show_on_front ) {
65
-						$archive_link = get_permalink( get_option( 'page_for_posts' ) );
64
+					if ('page' === $show_on_front) {
65
+						$archive_link = get_permalink(get_option('page_for_posts'));
66 66
 					} else {
67 67
 						$archive_link = home_url();
68 68
 					}
69 69
 				} else {
70
-					$archive_link = get_post_format_link( $format );
70
+					$archive_link = get_post_format_link($format);
71 71
 				}
72 72
 
73
-				$format = lsx_translate_format_to_fontawesome( $format );
73
+				$format = lsx_translate_format_to_fontawesome($format);
74 74
 				?>
75 75
 
76 76
 				<h1 class="entry-title">
77
-					<?php if ( has_post_thumbnail() ) : ?>
78
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a>
77
+					<?php if (has_post_thumbnail()) : ?>
78
+						<a href="<?php echo esc_url($archive_link); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format); ?>"></a>
79 79
 					<?php else : ?>
80
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a>
80
+						<a href="<?php echo esc_url($archive_link); ?>" class="format-link fa fa-<?php echo esc_attr($format); ?>"></a>
81 81
 					<?php endif; ?>
82 82
 
83
-					<?php if ( has_post_format( array( 'link' ) ) ) : ?>
84
-						<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
83
+					<?php if (has_post_format(array('link'))) : ?>
84
+						<a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
85 85
 					<?php else : ?>
86 86
 						<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
87 87
 					<?php endif; ?>
88 88
 
89
-					<?php if ( is_sticky() ) : ?>
90
-						<span class="label label-default label-sticky"><?php esc_html_e( 'Featured', 'lsx' ); ?></span>
89
+					<?php if (is_sticky()) : ?>
90
+						<span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span>
91 91
 					<?php endif; ?>
92 92
 				</h1>
93 93
 
@@ -99,18 +99,18 @@  discard block
 block discarded – undo
99 99
 
100 100
 			</header><!-- .entry-header -->
101 101
 
102
-			<?php if ( has_post_format( array( 'quote' ) ) || apply_filters( 'lsx_blog_display_text_on_list', true ) ) : ?>
102
+			<?php if (has_post_format(array('quote')) || apply_filters('lsx_blog_display_text_on_list', true)) : ?>
103 103
 
104
-				<?php if ( lsx_post_format_force_content_on_list() && ! apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
104
+				<?php if (lsx_post_format_force_content_on_list() && ! apply_filters('lsx_blog_force_content_on_list', false)) : ?>
105 105
 
106 106
 					<div class="entry-summary">
107 107
 						<?php
108
-						if ( ! has_excerpt() ) {
108
+						if ( ! has_excerpt()) {
109 109
 
110
-							$excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
111
-							$content      = wp_trim_words( get_the_content(), 30 );
110
+							$excerpt_more = '<p><a class="moretag" href="' . esc_url(get_permalink()) . '">' . esc_html__('Read More', 'lsx') . '</a></p>';
111
+							$content      = wp_trim_words(get_the_content(), 30);
112 112
 							$content      = '<p>' . $content . '</p>' . $excerpt_more;
113
-							echo wp_kses_post( $content );
113
+							echo wp_kses_post($content);
114 114
 						} else {
115 115
 							the_excerpt();
116 116
 						}
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
 
119 119
 					</div><!-- .entry-summary -->
120 120
 
121
-				<?php elseif ( has_post_format( array( 'link' ) ) ) : ?>
121
+				<?php elseif (has_post_format(array('link'))) : ?>
122 122
 
123
-				<?php elseif ( apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
123
+				<?php elseif (apply_filters('lsx_blog_force_content_on_list', false)) : ?>
124 124
 
125 125
 					<div class="entry-content">
126 126
 						<?php the_content(); ?>
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
 						<?php
133 133
 							the_content();
134 134
 
135
-							wp_link_pages( array(
135
+							wp_link_pages(array(
136 136
 								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
137 137
 								'after'       => '</div></div>',
138 138
 								'link_before' => '<span>',
139 139
 								'link_after'  => '</span>',
140
-							) );
140
+							));
141 141
 						?>
142 142
 					</div><!-- .entry-content -->
143 143
 
@@ -149,28 +149,28 @@  discard block
 block discarded – undo
149 149
 
150 150
 			<?php $comments_number = get_comments_number(); ?>
151 151
 
152
-			<?php if ( has_tag() || ! empty( $comments_number ) ) { ?>
152
+			<?php if (has_tag() || ! empty($comments_number)) { ?>
153 153
 				<div class="post-tags-wrapper">
154 154
 
155 155
 					<?php lsx_content_post_tags(); ?>
156 156
 
157
-					<?php if ( comments_open() && ! empty( $comments_number ) ) : ?>
157
+					<?php if (comments_open() && ! empty($comments_number)) : ?>
158 158
 						<div class="post-comments">
159 159
 							<a href="<?php the_permalink(); ?>#comments">
160 160
 								<?php
161
-								if ( '1' === $comments_number ) {
162
-									echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
161
+								if ('1' === $comments_number) {
162
+									echo esc_html_x('One Comment', 'content.php', 'lsx');
163 163
 								} else {
164 164
 									printf(
165 165
 										/* Translators: %s: number of comments */
166
-										esc_html( _nx(
166
+										esc_html(_nx(
167 167
 											'%s Comment',
168 168
 											'%s Comments',
169 169
 											$comments_number,
170 170
 											'content.php',
171 171
 											'lsx'
172
-										) ),
173
-										esc_html( number_format_i18n( $comments_number ) )
172
+										)),
173
+										esc_html(number_format_i18n($comments_number))
174 174
 									);
175 175
 								}
176 176
 								?>
@@ -181,11 +181,11 @@  discard block
 block discarded – undo
181 181
 			<?php } ?>
182 182
 		</div>
183 183
 
184
-		<?php if ( has_post_thumbnail() ) : ?>
184
+		<?php if (has_post_thumbnail()) : ?>
185 185
 
186 186
 			<div class="entry-image hidden-xs">
187
-				<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url( $image_src ); ?>);">
188
-					<?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?>
187
+				<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url($image_src); ?>);">
188
+					<?php lsx_thumbnail('lsx-thumbnail-single'); ?>
189 189
 				</a>
190 190
 			</div>
191 191
 
Please login to merge, or discard this patch.
partials/content-post.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,31 +17,31 @@
 block discarded – undo
17 17
 		<?php
18 18
 			the_content();
19 19
 
20
-			wp_link_pages( array(
20
+			wp_link_pages(array(
21 21
 				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22 22
 				'after'       => '</div></div>',
23 23
 				'link_before' => '<span>',
24 24
 				'link_after'  => '</span>',
25
-			) );
25
+			));
26 26
 		?>
27 27
 	</div><!-- .entry-content -->
28 28
 
29 29
 	<footer class="footer-meta clearfix">
30
-		<?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
30
+		<?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
31 31
 			<div class="post-tags-wrapper">
32 32
 				<?php lsx_content_post_tags(); ?>
33 33
 
34 34
 				<?php
35
-				if ( class_exists( 'LSX_Sharing' ) ) {
35
+				if (class_exists('LSX_Sharing')) {
36 36
 					lsx_content_sharing();
37 37
 				} else {
38
-					if ( function_exists( 'sharing_display' ) ) {
39
-						sharing_display( '', true );
38
+					if (function_exists('sharing_display')) {
39
+						sharing_display('', true);
40 40
 					}
41 41
 
42
-					if ( class_exists( 'Jetpack_Likes' ) ) {
42
+					if (class_exists('Jetpack_Likes')) {
43 43
 						$custom_likes = new Jetpack_Likes();
44
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
44
+						echo wp_kses_post($custom_likes->post_likes(''));
45 45
 					}
46 46
 				}
47 47
 				?>
Please login to merge, or discard this patch.
partials/content-widget-review.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,42 +5,42 @@
 block discarded – undo
5 5
  * @package lsx
6 6
  */
7 7
 
8
-if ( ! defined( 'ABSPATH' ) ) {
8
+if ( ! defined('ABSPATH')) {
9 9
 	exit;
10 10
 }
11 11
 global $comment, $stored_comment, $_product, $rating;
12 12
 $the_comment = $comment;
13
-if ( null !== $stored_comment ) {
13
+if (null !== $stored_comment) {
14 14
 	$the_comment = $stored_comment;
15 15
 }
16 16
 ?>
17 17
 <div class="lsx-woocommerce-review-slot">
18 18
 	<div class="lsx-woocommerce-review-flex">
19
-		<a href="<?php echo esc_url( get_comment_link( $the_comment->comment_ID ) ); ?>">
19
+		<a href="<?php echo esc_url(get_comment_link($the_comment->comment_ID)); ?>">
20 20
 			<figure class="lsx-woocommerce-avatar">
21
-				<?php echo wp_kses_post( $_product->get_image( 'lsx-thumbnail-square' ) ); ?>
21
+				<?php echo wp_kses_post($_product->get_image('lsx-thumbnail-square')); ?>
22 22
 			</figure>
23 23
 		</a>
24 24
 
25 25
 		<div class="lsx-woocommerce-review-box">
26 26
 			<div class="lsx-woocommerce-rating">
27
-				<?php echo wp_kses_post( wc_get_rating_html( $rating ) ); ?>
27
+				<?php echo wp_kses_post(wc_get_rating_html($rating)); ?>
28 28
 			</div>
29 29
 
30 30
 			<h5 class="lsx-woocommerce-title">
31
-				<a href="<?php echo esc_url( get_comment_link( $the_comment->comment_ID ) ); ?>"><?php echo wp_kses_post( $_product->get_name() ); ?></a>
31
+				<a href="<?php echo esc_url(get_comment_link($the_comment->comment_ID)); ?>"><?php echo wp_kses_post($_product->get_name()); ?></a>
32 32
 			</h5>
33 33
 
34 34
 			<p class="lsx-woocommerce-reviewer">
35 35
 				<?php
36 36
 					/* translators: %s: review author */
37
-					echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) );
37
+					echo wp_kses_post(esc_html__('by ', 'lsx') . get_comment_author($the_comment->comment_ID));
38 38
 				?>
39 39
 			</p>
40 40
 
41 41
 			<div class="lsx-woocommerce-content">
42
-				<p><?php echo wp_kses_post( $the_comment->comment_content ); ?></p>
43
-				<p><a href="<?php echo esc_url( get_comment_link( $the_comment->comment_ID ) ); ?>" class="moretag"><?php esc_attr_e( 'View more', 'lsx' ); ?></a></p>
42
+				<p><?php echo wp_kses_post($the_comment->comment_content); ?></p>
43
+				<p><a href="<?php echo esc_url(get_comment_link($the_comment->comment_ID)); ?>" class="moretag"><?php esc_attr_e('View more', 'lsx'); ?></a></p>
44 44
 			</div>
45 45
 		</div>
46 46
 	</div>
Please login to merge, or discard this patch.
partials/content-widget-product.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,42 +15,42 @@
 block discarded – undo
15 15
  */
16 16
 
17 17
 // Exit if accessed directly.
18
-if ( ! defined( 'ABSPATH' ) ) {
18
+if ( ! defined('ABSPATH')) {
19 19
 	exit;
20 20
 }
21 21
 
22 22
 global $product;
23 23
 
24
-if ( ! is_a( $product, 'WC_Product' ) ) {
24
+if ( ! is_a($product, 'WC_Product')) {
25 25
 	return;
26 26
 } ?>
27 27
 
28 28
 <div class="lsx-woocommerce-slot">
29
-	<a href="<?php echo esc_url( $product->get_permalink() ); ?>">
29
+	<a href="<?php echo esc_url($product->get_permalink()); ?>">
30 30
 		<figure class="lsx-woocommerce-avatar">
31
-			<?php echo wp_kses_post( $product->get_image( 'lsx-thumbnail-square' ) ); ?>
31
+			<?php echo wp_kses_post($product->get_image('lsx-thumbnail-square')); ?>
32 32
 		</figure>
33 33
 	</a>
34 34
 
35 35
 	<h5 class="lsx-woocommerce-title">
36
-		<a href="<?php echo esc_url( $product->get_permalink() ); ?>"><?php echo wp_kses_post( $product->get_name() ); ?></a>
36
+		<a href="<?php echo esc_url($product->get_permalink()); ?>"><?php echo wp_kses_post($product->get_name()); ?></a>
37 37
 	</h5>
38 38
 
39
-	<?php if ( ! empty( $show_rating ) ) : ?>
39
+	<?php if ( ! empty($show_rating)) : ?>
40 40
 		<div class="lsx-woocommerce-rating">
41
-			<?php echo wp_kses_post( wc_get_rating_html( $product->get_average_rating() ) ); ?>
41
+			<?php echo wp_kses_post(wc_get_rating_html($product->get_average_rating())); ?>
42 42
 		</div>
43 43
 	<?php endif; ?>
44 44
 
45 45
 	<?php
46 46
 	$price_html = $product->get_price_html();
47
-	if ( $price_html ) : ?>
47
+	if ($price_html) : ?>
48 48
 		<div class="lsx-woocommerce-price">
49
-			<?php echo wp_kses_post( $price_html ); ?>
49
+			<?php echo wp_kses_post($price_html); ?>
50 50
 		</div>
51 51
 	<?php endif; ?>
52 52
 
53 53
 	<div class="lsx-woocommerce-content">
54
-		<a href="<?php echo esc_url( $product->get_permalink() ); ?>" class="moretag"><?php esc_attr_e( 'View more', 'lsx' ); ?></a>
54
+		<a href="<?php echo esc_url($product->get_permalink()); ?>" class="moretag"><?php esc_attr_e('View more', 'lsx'); ?></a>
55 55
 	</div>
56 56
 </div>
Please login to merge, or discard this patch.
page-templates/template-full-width.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 				?>
29 29
 
30
-				<?php get_template_part( 'partials/content', 'page' ); ?>
30
+				<?php get_template_part('partials/content', 'page'); ?>
31 31
 
32 32
 			<?php endwhile; ?>
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		<?php lsx_content_bottom(); ?>
37 37
 
38 38
 		<?php
39
-		if ( comments_open() ) {
39
+		if (comments_open()) {
40 40
 			comments_template();
41 41
 		}
42 42
 		?>
Please login to merge, or discard this patch.
page-templates/template-no-sidebar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 				?>
29 29
 
30
-				<?php get_template_part( 'partials/content', 'page' ); ?>
30
+				<?php get_template_part('partials/content', 'page'); ?>
31 31
 
32 32
 			<?php endwhile; ?>
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		<?php lsx_content_bottom(); ?>
37 37
 
38 38
 		<?php
39
-		if ( comments_open() ) {
39
+		if (comments_open()) {
40 40
 			comments_template();
41 41
 		}
42 42
 		?>
Please login to merge, or discard this patch.
includes/hooks.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * @subpackage hooks
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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_body_bottom() {
105
-	do_action( 'lsx_body_bottom' );
105
+	do_action('lsx_body_bottom');
106 106
 }
107 107
 
108 108
 /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
  * $lsx_supports[] = 'banner';
112 112
  */
113 113
 function lsx_banner_content() {
114
-	do_action( 'lsx_banner_content' );
114
+	do_action('lsx_banner_content');
115 115
 }
116 116
 
117 117
 /**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
  * @return void
121 121
  */
122 122
 function lsx_banner_inner_top() {
123
-	do_action( 'lsx_banner_inner_top' );
123
+	do_action('lsx_banner_inner_top');
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_bottom() {
132
-	do_action( 'lsx_banner_inner_bottom' );
132
+	do_action('lsx_banner_inner_bottom');
133 133
 }
134 134
 
135 135
 /**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
  * $lsx_supports[] = 'global_header';
139 139
  */
140 140
 function lsx_global_header_inner_bottom() {
141
-	do_action( 'lsx_global_header_inner_bottom' );
141
+	do_action('lsx_global_header_inner_bottom');
142 142
 }
143 143
 
144 144
 /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
  * $lsx_supports[] = 'content';
148 148
  */
149 149
 function lsx_content_wrap_before() {
150
-	do_action( 'lsx_content_wrap_before' );
150
+	do_action('lsx_content_wrap_before');
151 151
 }
152 152
 
153 153
 /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
  * @return void
157 157
  */
158 158
 function lsx_content_wrap_after() {
159
-	do_action( 'lsx_content_wrap_after' );
159
+	do_action('lsx_content_wrap_after');
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_before() {
168
-	do_action( 'lsx_content_before' );
168
+	do_action('lsx_content_before');
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_after() {
177
-	do_action( 'lsx_content_after' );
177
+	do_action('lsx_content_after');
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_top() {
186
-	do_action( 'lsx_content_top' );
186
+	do_action('lsx_content_top');
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_bottom() {
195
-	do_action( 'lsx_content_bottom' );
195
+	do_action('lsx_content_bottom');
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_post_tags() {
204
-	do_action( 'lsx_content_post_tags' );
204
+	do_action('lsx_content_post_tags');
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_sharing() {
213
-	do_action( 'lsx_content_sharing' );
213
+	do_action('lsx_content_sharing');
214 214
 }
215 215
 
216 216
 /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
  * $lsx_supports[] = 'entry';
220 220
  */
221 221
 function lsx_entry_before() {
222
-	do_action( 'lsx_entry_before' );
222
+	do_action('lsx_entry_before');
223 223
 }
224 224
 
225 225
 /**
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
  * @return void
229 229
  */
230 230
 function lsx_entry_after() {
231
-	do_action( 'lsx_entry_after' );
231
+	do_action('lsx_entry_after');
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_top() {
240
-	do_action( 'lsx_entry_top' );
240
+	do_action('lsx_entry_top');
241 241
 }
242 242
 
243 243
 /**
@@ -246,14 +246,14 @@  discard block
 block discarded – undo
246 246
  * @return void
247 247
  */
248 248
 function lsx_entry_bottom() {
249
-	do_action( 'lsx_entry_bottom' );
249
+	do_action('lsx_entry_bottom');
250 250
 }
251 251
 
252 252
 /**
253 253
  * Semantic <entry> hooks
254 254
  */
255 255
 function lsx_post_meta_top() {
256
-	do_action( 'lsx_post_meta_top' );
256
+	do_action('lsx_post_meta_top');
257 257
 }
258 258
 
259 259
 /**
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
  * $lsx_supports[] = 'entry';
263 263
  */
264 264
 function lsx_widget_entry_before() {
265
-	do_action( 'lsx_widget_entry_before' );
265
+	do_action('lsx_widget_entry_before');
266 266
 }
267 267
 
268 268
 /**
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
  * @return void
272 272
  */
273 273
 function lsx_widget_entry_after() {
274
-	do_action( 'lsx_widget_entry_after' );
274
+	do_action('lsx_widget_entry_after');
275 275
 }
276 276
 
277 277
 /**
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
  * @return void
281 281
  */
282 282
 function lsx_widget_entry_top() {
283
-	do_action( 'lsx_widget_entry_top' );
283
+	do_action('lsx_widget_entry_top');
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_bottom() {
292
-	do_action( 'lsx_widget_entry_bottom' );
292
+	do_action('lsx_widget_entry_bottom');
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_content_top() {
301
-	do_action( 'lsx_widget_entry_content_top' );
301
+	do_action('lsx_widget_entry_content_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_content_bottom() {
310
-	do_action( 'lsx_widget_entry_content_bottom' );
310
+	do_action('lsx_widget_entry_content_bottom');
311 311
 }
312 312
 
313 313
 /**
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
  * $lsx_supports[] = 'comments';
317 317
  */
318 318
 function lsx_comments_before() {
319
-	do_action( 'lsx_comments_before' );
319
+	do_action('lsx_comments_before');
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_comments_after() {
328
-	do_action( 'lsx_comments_after' );
328
+	do_action('lsx_comments_after');
329 329
 }
330 330
 
331 331
 /**
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
  * $lsx_supports[] = 'sidebar';
335 335
  */
336 336
 function lsx_sidebars_before() {
337
-	do_action( 'lsx_sidebars_before' );
337
+	do_action('lsx_sidebars_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_sidebars_after() {
346
-	do_action( 'lsx_sidebars_after' );
346
+	do_action('lsx_sidebars_after');
347 347
 }
348 348
 
349 349
 /**
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
  * @return void
353 353
  */
354 354
 function lsx_sidebar_top() {
355
-	do_action( 'lsx_sidebar_top' );
355
+	do_action('lsx_sidebar_top');
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_sidebar_bottom() {
364
-	do_action( 'lsx_sidebar_bottom' );
364
+	do_action('lsx_sidebar_bottom');
365 365
 }
366 366
 
367 367
 /**
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
  * $lsx_supports[] = 'footer';
371 371
  */
372 372
 function lsx_footer_before() {
373
-	do_action( 'lsx_footer_before' );
373
+	do_action('lsx_footer_before');
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_footer_after() {
382
-	do_action( 'lsx_footer_after' );
382
+	do_action('lsx_footer_after');
383 383
 }
384 384
 
385 385
 /**
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
  * @return void
389 389
  */
390 390
 function lsx_footer_top() {
391
-	do_action( 'lsx_footer_top' );
391
+	do_action('lsx_footer_top');
392 392
 }
393 393
 
394 394
 /**
@@ -397,5 +397,5 @@  discard block
 block discarded – undo
397 397
  * @return void
398 398
  */
399 399
 function lsx_footer_bottom() {
400
-	do_action( 'lsx_footer_bottom' );
400
+	do_action('lsx_footer_bottom');
401 401
 }
Please login to merge, or discard this patch.
includes/layout.php 1 patch
Spacing   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@  discard block
 block discarded – undo
6 6
  * @subpackage layout
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_layout_selector' ) ) :
13
+if ( ! function_exists('lsx_layout_selector')) :
14 14
 	/**
15 15
 	 * Layout selector.
16 16
 	 *
17 17
 	 * @package    lsx
18 18
 	 * @subpackage layout
19 19
 	 */
20
-	function lsx_layout_selector( $class, $area = 'site' ) {
20
+	function lsx_layout_selector($class, $area = 'site') {
21 21
 		$return_class = '';
22
-		$layout       = get_theme_mod( 'lsx_layout', '1c' );
23
-		$layout       = apply_filters( 'lsx_layout', $layout );
22
+		$layout       = get_theme_mod('lsx_layout', '1c');
23
+		$layout       = apply_filters('lsx_layout', $layout);
24 24
 		$default_size = 'sm';
25
-		$size         = apply_filters( 'lsx_bootstrap_column_size', $default_size );
25
+		$size         = apply_filters('lsx_bootstrap_column_size', $default_size);
26 26
 
27
-		switch ( $layout ) {
27
+		switch ($layout) {
28 28
 			case '1c':
29 29
 				$main_class    = 'col-' . $size . '-12';
30 30
 				$sidebar_class = 'col-' . $size . '-12';
@@ -43,19 +43,19 @@  discard block
 block discarded – undo
43 43
 				break;
44 44
 		}
45 45
 
46
-		if ( 'main' === $class ) {
47
-			$return_class = apply_filters( 'lsx_layout_selector', $main_class, $class, $layout, $size );
46
+		if ('main' === $class) {
47
+			$return_class = apply_filters('lsx_layout_selector', $main_class, $class, $layout, $size);
48 48
 		}
49 49
 
50
-		if ( 'sidebar' === $class ) {
51
-			$return_class = apply_filters( 'lsx_layout_selector', $sidebar_class, $class, $layout, $size );
50
+		if ('sidebar' === $class) {
51
+			$return_class = apply_filters('lsx_layout_selector', $sidebar_class, $class, $layout, $size);
52 52
 		}
53 53
 
54 54
 		return $return_class;
55 55
 	}
56 56
 endif;
57 57
 
58
-if ( ! function_exists( 'lsx_main_class' ) ) :
58
+if ( ! function_exists('lsx_main_class')) :
59 59
 	/**
60 60
 	 * .main classes.
61 61
 	 *
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 	 * @subpackage layout
64 64
 	 */
65 65
 	function lsx_main_class() {
66
-		return lsx_layout_selector( 'main' );
66
+		return lsx_layout_selector('main');
67 67
 	}
68 68
 endif;
69 69
 
70
-if ( ! function_exists( 'lsx_sidebar_class' ) ) :
70
+if ( ! function_exists('lsx_sidebar_class')) :
71 71
 	/**
72 72
 	 * .sidebar classes.
73 73
 	 *
@@ -75,47 +75,47 @@  discard block
 block discarded – undo
75 75
 	 * @subpackage layout
76 76
 	 */
77 77
 	function lsx_sidebar_class() {
78
-		return lsx_layout_selector( 'sidebar' );
78
+		return lsx_layout_selector('sidebar');
79 79
 	}
80 80
 endif;
81 81
 
82
-if ( ! function_exists( 'lsx_header_classes' ) ) :
82
+if ( ! function_exists('lsx_header_classes')) :
83 83
 	/**
84 84
 	 * Output the classes for the header.
85 85
 	 *
86 86
 	 * @package    lsx
87 87
 	 * @subpackage layout
88 88
 	 */
89
-	function lsx_header_classes( $additional = false ) {
89
+	function lsx_header_classes($additional = false) {
90 90
 		$classes = 'banner navbar navbar-default';
91 91
 
92
-		if ( false !== $additional ) {
92
+		if (false !== $additional) {
93 93
 			$classes .= ' ' . $additional;
94 94
 		}
95 95
 
96
-		echo esc_attr( $classes );
96
+		echo esc_attr($classes);
97 97
 	}
98 98
 endif;
99 99
 
100
-if ( ! function_exists( 'lsx_top_menu_classes' ) ) :
100
+if ( ! function_exists('lsx_top_menu_classes')) :
101 101
 	/**
102 102
 	 * Output the classes for the top-menu.
103 103
 	 *
104 104
 	 * @package    lsx
105 105
 	 * @subpackage layout
106 106
 	 */
107
-	function lsx_top_menu_classes( $additional = false ) {
107
+	function lsx_top_menu_classes($additional = false) {
108 108
 		$classes = 'top-menu-default';
109 109
 
110
-		if ( false !== $additional ) {
110
+		if (false !== $additional) {
111 111
 			$classes .= ' ' . $additional;
112 112
 		}
113 113
 
114
-		echo esc_attr( $classes );
114
+		echo esc_attr($classes);
115 115
 	}
116 116
 endif;
117 117
 
118
-if ( ! function_exists( 'lsx_post_wrapper_class' ) ) :
118
+if ( ! function_exists('lsx_post_wrapper_class')) :
119 119
 	/**
120 120
 	 * Output the classes for the top-menu.
121 121
 	 *
@@ -123,13 +123,13 @@  discard block
 block discarded – undo
123 123
 	 * @subpackage layout
124 124
 	 */
125 125
 	function lsx_post_wrapper_class() {
126
-		return apply_filters( 'lsx_post_wrapper_class', '' );
126
+		return apply_filters('lsx_post_wrapper_class', '');
127 127
 	}
128 128
 endif;
129 129
 
130 130
 
131 131
 
132
-if ( ! function_exists( 'lsx_add_footer_sidebar_area' ) ) :
132
+if ( ! function_exists('lsx_add_footer_sidebar_area')) :
133 133
 	/**
134 134
 	 * Output the Footer CTA and/pr Footer Widgets.
135 135
 	 *
@@ -137,33 +137,33 @@  discard block
 block discarded – undo
137 137
 	 * @subpackage layout
138 138
 	 */
139 139
 	function lsx_add_footer_sidebar_area() {
140
-		if ( is_active_sidebar( 'sidebar-footer-cta' ) ) : ?>
140
+		if (is_active_sidebar('sidebar-footer-cta')) : ?>
141 141
 			<div id="footer-cta">
142 142
 				<div class="container">
143 143
 					<div class="lsx-full-width">
144 144
 						<div class="lsx-hero-unit">
145
-							<?php dynamic_sidebar( 'sidebar-footer-cta' ); ?>
145
+							<?php dynamic_sidebar('sidebar-footer-cta'); ?>
146 146
 						</div>
147 147
 					</div>
148 148
 				</div>
149 149
 			</div>
150 150
 		<?php endif; ?>
151 151
 
152
-		<?php if ( is_active_sidebar( 'sidebar-footer' ) ) : ?>
152
+		<?php if (is_active_sidebar('sidebar-footer')) : ?>
153 153
 			<div id="footer-widgets">
154 154
 				<div class="container">
155 155
 					<div class="row">
156
-						<?php dynamic_sidebar( 'sidebar-footer' ); ?>
156
+						<?php dynamic_sidebar('sidebar-footer'); ?>
157 157
 					</div>
158 158
 				</div>
159 159
 			</div>
160 160
 			<?php
161 161
 		endif;
162 162
 	}
163
-	add_action( 'lsx_footer_before', 'lsx_add_footer_sidebar_area' );
163
+	add_action('lsx_footer_before', 'lsx_add_footer_sidebar_area');
164 164
 endif;
165 165
 
166
-if ( ! function_exists( 'lsx_global_header' ) ) :
166
+if ( ! function_exists('lsx_global_header')) :
167 167
 	/**
168 168
 	 * Displays the global header.
169 169
 	 *
@@ -171,23 +171,23 @@  discard block
 block discarded – undo
171 171
 	 * @subpackage layout
172 172
 	 */
173 173
 	function lsx_global_header() {
174
-		$show_on_front  = get_option( 'show_on_front' );
174
+		$show_on_front  = get_option('show_on_front');
175 175
 		$queried_object = get_queried_object();
176 176
 		$default_size   = 'sm';
177
-		$size           = apply_filters( 'lsx_bootstrap_column_size', $default_size );
177
+		$size           = apply_filters('lsx_bootstrap_column_size', $default_size);
178 178
 
179 179
 		// Pages have their own banner function 'lsx_page_banner()'
180 180
 		// if ( function_exists( 'is_woocommerce' ) && ( is_woocommerce() || is_checkout() || is_cart() || is_account_page() ) ) {
181 181
 		// return;
182 182
 		// }
183 183
 		// Product pages have their own banner function 'lsx_page_banner()'.
184
-		if ( function_exists( 'is_woocommerce' ) && ( is_product() ) ) {
184
+		if (function_exists('is_woocommerce') && (is_product())) {
185 185
 			return;
186 186
 		}
187 187
 
188
-		if ( is_page() && ( 'page' !== $show_on_front || ! is_front_page() ) ) :
188
+		if (is_page() && ('page' !== $show_on_front || ! is_front_page())) :
189 189
 			?>
190
-			<div class="archive-header-wrapper banner-page col-<?php echo esc_attr( $size ); ?>-12">
190
+			<div class="archive-header-wrapper banner-page col-<?php echo esc_attr($size); ?>-12">
191 191
 				<?php lsx_global_header_inner_bottom(); ?>
192 192
 				<header class="archive-header">
193 193
 					<h1 class="archive-title"><?php the_title(); ?></h1>
@@ -195,26 +195,26 @@  discard block
 block discarded – undo
195 195
 
196 196
 			</div>
197 197
 			<?php
198
-		elseif ( is_single() && ! is_singular( 'post' ) ) :
198
+		elseif (is_single() && ! is_singular('post')) :
199 199
 			?>
200
-			<div class="archive-header-wrapper banner-single col-<?php echo esc_attr( $size ); ?>-12">
200
+			<div class="archive-header-wrapper banner-single col-<?php echo esc_attr($size); ?>-12">
201 201
 				<?php lsx_global_header_inner_bottom(); ?>
202 202
 				<header class="archive-header">
203
-					<h1 class="archive-title"><?php echo wp_kses_post( apply_filters( 'lsx_global_header_title', get_the_title() ) ); ?></h1>
203
+					<h1 class="archive-title"><?php echo wp_kses_post(apply_filters('lsx_global_header_title', get_the_title())); ?></h1>
204 204
 				</header>
205 205
 
206 206
 			</div>
207 207
 			<?php
208
-		elseif ( is_search() ) :
208
+		elseif (is_search()) :
209 209
 			?>
210
-			<div class="archive-header-wrapper banner-search col-<?php echo esc_attr( $size ); ?>-12">
210
+			<div class="archive-header-wrapper banner-search col-<?php echo esc_attr($size); ?>-12">
211 211
 				<?php lsx_global_header_inner_bottom(); ?>
212 212
 				<header class="archive-header">
213 213
 					<h1 class="archive-title">
214 214
 						<?php
215 215
 							printf(
216 216
 								/* Translators: %s: search term/query */
217
-								esc_html__( 'Search Results for: %s', 'lsx' ),
217
+								esc_html__('Search Results for: %s', 'lsx'),
218 218
 								'<span>' . get_search_query() . '</span>'
219 219
 							);
220 220
 						?>
@@ -223,12 +223,12 @@  discard block
 block discarded – undo
223 223
 
224 224
 			</div>
225 225
 			<?php
226
-		elseif ( is_author() ) :
226
+		elseif (is_author()) :
227 227
 			$author        = get_the_author();
228
-			$author_avatar = get_avatar( get_the_author_meta( 'ID' ), 256 );
228
+			$author_avatar = get_avatar(get_the_author_meta('ID'), 256);
229 229
 			$author_bio    = get_the_archive_description();
230 230
 			?>
231
-			<div class="archive-header-wrapper banner-archive-author col-<?php echo esc_attr( $size ); ?>-12">
231
+			<div class="archive-header-wrapper banner-archive-author col-<?php echo esc_attr($size); ?>-12">
232 232
 				<?php lsx_global_header_inner_bottom(); ?>
233 233
 				<header class="archive-header">
234 234
 					<h1 class="archive-title"><?php the_archive_title(); ?></h1>
@@ -236,57 +236,57 @@  discard block
 block discarded – undo
236 236
 
237 237
 			</div>
238 238
 			<?php
239
-		elseif ( is_archive() ) :
239
+		elseif (is_archive()) :
240 240
 			?>
241
-			<div class="archive-header-wrapper banner-archive col-<?php echo esc_attr( $size ); ?>-12">
241
+			<div class="archive-header-wrapper banner-archive col-<?php echo esc_attr($size); ?>-12">
242 242
 				<?php lsx_global_header_inner_bottom(); ?>
243 243
 				<header class="archive-header">
244 244
 					<h1 class="archive-title">
245
-						<?php if ( has_post_format() && ! is_category() && ! is_tag() && ! is_date() && ! is_tax( 'post_format' ) ) { ?>
246
-							<?php the_archive_title( esc_html__( 'Type:', 'lsx' ) ); ?>
245
+						<?php if (has_post_format() && ! is_category() && ! is_tag() && ! is_date() && ! is_tax('post_format')) { ?>
246
+							<?php the_archive_title(esc_html__('Type:', 'lsx')); ?>
247 247
 						<?php } else { ?>
248
-							<?php echo wp_kses_post( apply_filters( 'lsx_global_header_title', get_the_archive_title() ) ); ?>
248
+							<?php echo wp_kses_post(apply_filters('lsx_global_header_title', get_the_archive_title())); ?>
249 249
 						<?php } ?>
250 250
 					</h1>
251 251
 
252 252
 					<?php
253
-					if ( false === apply_filters( 'lsx_display_global_header_description', false ) ) {
253
+					if (false === apply_filters('lsx_display_global_header_description', false)) {
254 254
 						the_archive_description();
255 255
 					}
256 256
 					?>
257 257
 				</header>
258 258
 			</div>
259 259
 			<?php
260
-		elseif ( 'page' === $show_on_front && (int) get_option( 'page_for_posts' ) === $queried_object->ID ) :
260
+		elseif ('page' === $show_on_front && (int) get_option('page_for_posts') === $queried_object->ID) :
261 261
 			?>
262
-			<div class="archive-header-wrapper banner-page col-<?php echo esc_attr( $size ); ?>-12">
262
+			<div class="archive-header-wrapper banner-page col-<?php echo esc_attr($size); ?>-12">
263 263
 				<?php lsx_global_header_inner_bottom(); ?>
264 264
 				<header class="archive-header">
265
-					<h1 class="archive-title"><?php esc_html_e( 'Blog', 'lsx' ); ?></h1>
265
+					<h1 class="archive-title"><?php esc_html_e('Blog', 'lsx'); ?></h1>
266 266
 				</header>
267 267
 
268 268
 			</div>
269 269
 			<?php
270
-		elseif ( ! is_singular( 'post' ) ) :
270
+		elseif ( ! is_singular('post')) :
271 271
 			// Display only the breadcrumbs.
272 272
 			?>
273
-			<div class="archive-header-wrapper banner-singular col-<?php echo esc_attr( $size ); ?>-12">
273
+			<div class="archive-header-wrapper banner-singular col-<?php echo esc_attr($size); ?>-12">
274 274
 				<?php lsx_global_header_inner_bottom(); ?>
275 275
 			</div>
276 276
 			<?php
277
-		elseif ( ( true === apply_filters( 'lsx_global_header_disable', false ) ) && ( ! is_search() ) ) :
277
+		elseif ((true === apply_filters('lsx_global_header_disable', false)) && ( ! is_search())) :
278 278
 			// Display only the breadcrumbs.
279 279
 			?>
280
-			<div class="archive-header-wrapper banner-global col-<?php echo esc_attr( $size ); ?>-12">
280
+			<div class="archive-header-wrapper banner-global col-<?php echo esc_attr($size); ?>-12">
281 281
 				<?php lsx_global_header_inner_bottom(); ?>
282 282
 			</div>
283 283
 			<?php
284 284
 		endif;
285 285
 	}
286
-	add_action( 'lsx_content_wrap_before', 'lsx_global_header' );
286
+	add_action('lsx_content_wrap_before', 'lsx_global_header');
287 287
 endif;
288 288
 
289
-if ( ! function_exists( 'lsx_author_extra_info' ) ) :
289
+if ( ! function_exists('lsx_author_extra_info')) :
290 290
 	/**
291 291
 	 * Displays the author extra info.
292 292
 	 *
@@ -295,83 +295,83 @@  discard block
 block discarded – undo
295 295
 	 */
296 296
 	function lsx_author_extra_info() {
297 297
 		$default_size = 'sm';
298
-		$size         = apply_filters( 'lsx_bootstrap_column_size', $default_size );
298
+		$size         = apply_filters('lsx_bootstrap_column_size', $default_size);
299 299
 
300
-		if ( is_author() ) :
301
-			$author_id         = get_the_author_meta( 'ID' );
300
+		if (is_author()) :
301
+			$author_id         = get_the_author_meta('ID');
302 302
 			$author            = get_the_author();
303
-			$author_avatar     = get_avatar( $author_id, 400 );
303
+			$author_avatar     = get_avatar($author_id, 400);
304 304
 			$author_bio        = get_the_archive_description();
305
-			$author_url        = get_the_author_meta( 'url', $author_id );
306
-			$author_email      = get_the_author_meta( 'email', $author_id );
307
-			$author_facebook   = get_the_author_meta( 'facebook', $author_id );
308
-			$author_linkedin   = get_the_author_meta( 'linkedin', $author_id );
309
-			$author_twitter    = get_the_author_meta( 'twitter', $author_id );
310
-			$author_googleplus = get_the_author_meta( 'googleplus', $author_id );
305
+			$author_url        = get_the_author_meta('url', $author_id);
306
+			$author_email      = get_the_author_meta('email', $author_id);
307
+			$author_facebook   = get_the_author_meta('facebook', $author_id);
308
+			$author_linkedin   = get_the_author_meta('linkedin', $author_id);
309
+			$author_twitter    = get_the_author_meta('twitter', $author_id);
310
+			$author_googleplus = get_the_author_meta('googleplus', $author_id);
311 311
 			?>
312
-			<div class="col-<?php echo esc_attr( $size ); ?>-12">
312
+			<div class="col-<?php echo esc_attr($size); ?>-12">
313 313
 				<div class="archive-author-data">
314 314
 					<div class="row">
315
-						<?php if ( ! empty( $author_avatar ) ) : ?>
315
+						<?php if ( ! empty($author_avatar)) : ?>
316 316
 							<div class="col-xs-12 col-sm-4 col-md-3">
317
-							<figure class="archive-author-avatar"><?php echo wp_kses_post( $author_avatar ); ?></figure>
317
+							<figure class="archive-author-avatar"><?php echo wp_kses_post($author_avatar); ?></figure>
318 318
 							</div>
319 319
 						<?php endif; ?>
320 320
 						<div class="col-xs-12 col-sm-8 col-md-9">
321
-							<a class="back-to-blog" href="<?php echo ( esc_url( get_post_type_archive_link( 'post' ) ) ); ?>"><?php echo esc_html__( 'Back To Blog', 'lsx' ); ?></a>
321
+							<a class="back-to-blog" href="<?php echo (esc_url(get_post_type_archive_link('post'))); ?>"><?php echo esc_html__('Back To Blog', 'lsx'); ?></a>
322 322
 							<!-- Name -->
323 323
 							<h2 class="archive-author-title">
324 324
 								<?php
325
-								if ( '' !== $author ) {
326
-									echo esc_html( $author );
325
+								if ('' !== $author) {
326
+									echo esc_html($author);
327 327
 								}
328 328
 								?>
329 329
 							</h2>
330 330
 							<!-- Social -->
331
-							<?php if ( ! empty( $author_url ) || ! empty( $author_email ) || ! empty( $author_facebook ) || ! empty( $author_twitter ) || ! empty( $author_googleplus ) ) : ?>
331
+							<?php if ( ! empty($author_url) || ! empty($author_email) || ! empty($author_facebook) || ! empty($author_twitter) || ! empty($author_googleplus)) : ?>
332 332
 								<div class="archive-author-social-links">
333
-									<?php if ( ! empty( $author_url ) ) : ?>
334
-										<a href="<?php echo esc_url( $author_url ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-url"><i class="fa fa-link" aria-hidden="true"></i></a>
333
+									<?php if ( ! empty($author_url)) : ?>
334
+										<a href="<?php echo esc_url($author_url); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-url"><i class="fa fa-link" aria-hidden="true"></i></a>
335 335
 									<?php endif; ?>
336 336
 
337
-									<?php if ( ! empty( $author_email ) ) : ?>
338
-										<a href="mailto:<?php echo esc_attr( $author_email ); ?>" class="archive-author-social-link archive-author-social-link-email"><i class="fa fa-envelope" aria-hidden="true"></i></a>
337
+									<?php if ( ! empty($author_email)) : ?>
338
+										<a href="mailto:<?php echo esc_attr($author_email); ?>" class="archive-author-social-link archive-author-social-link-email"><i class="fa fa-envelope" aria-hidden="true"></i></a>
339 339
 									<?php endif; ?>
340 340
 
341
-									<?php if ( ! empty( $author_facebook ) ) : ?>
342
-										<a href="<?php echo esc_url( $author_facebook ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a>
341
+									<?php if ( ! empty($author_facebook)) : ?>
342
+										<a href="<?php echo esc_url($author_facebook); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a>
343 343
 									<?php endif; ?>
344 344
 
345
-									<?php if ( ! empty( $author_twitter ) ) : ?>
346
-										<a href="https://twitter.com/<?php echo esc_attr( $author_twitter ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
345
+									<?php if ( ! empty($author_twitter)) : ?>
346
+										<a href="https://twitter.com/<?php echo esc_attr($author_twitter); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
347 347
 									<?php endif; ?>
348 348
 
349
-									<?php if ( ! empty( $author_linkedin ) ) : ?>
350
-										<a href="<?php echo esc_url( $author_linkedin ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-linkedin"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
349
+									<?php if ( ! empty($author_linkedin)) : ?>
350
+										<a href="<?php echo esc_url($author_linkedin); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-linkedin"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
351 351
 									<?php endif; ?>
352 352
 
353
-									<?php if ( ! empty( $author_googleplus ) ) : ?>
354
-										<a href="<?php echo esc_url( $author_googleplus ); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-googleplus"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
353
+									<?php if ( ! empty($author_googleplus)) : ?>
354
+										<a href="<?php echo esc_url($author_googleplus); ?>" target="_blank" rel="nofollow noreferrer noopener" class="archive-author-social-link archive-author-social-link-googleplus"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
355 355
 									<?php endif; ?>
356 356
 								</div>
357 357
 							<?php endif; ?>
358 358
 
359 359
 							<!-- Bio -->
360
-							<?php if ( ! empty( $author_bio ) ) : ?>
361
-								<p class="archive-author-bio"><?php echo wp_kses_post( $author_bio ); ?></p>
360
+							<?php if ( ! empty($author_bio)) : ?>
361
+								<p class="archive-author-bio"><?php echo wp_kses_post($author_bio); ?></p>
362 362
 							<?php endif; ?>
363 363
 						</div>
364 364
 					</div>
365 365
 				</div>
366
-				<h2><?php echo esc_html__( 'Posts', 'lsx' ); ?></h2>
366
+				<h2><?php echo esc_html__('Posts', 'lsx'); ?></h2>
367 367
 			</div>
368 368
 			<?php
369 369
 		endif;
370 370
 	}
371
-	add_action( 'lsx_content_wrap_before', 'lsx_author_extra_info', 11 );
371
+	add_action('lsx_content_wrap_before', 'lsx_author_extra_info', 11);
372 372
 endif;
373 373
 
374
-if ( ! function_exists( 'lsx_post_header' ) ) :
374
+if ( ! function_exists('lsx_post_header')) :
375 375
 	/**
376 376
 	 * Displays the post header.
377 377
 	 *
@@ -380,21 +380,21 @@  discard block
 block discarded – undo
380 380
 	 */
381 381
 	function lsx_post_header() {
382 382
 		$default_size = 'sm';
383
-		$size         = apply_filters( 'lsx_bootstrap_column_size', $default_size );
383
+		$size         = apply_filters('lsx_bootstrap_column_size', $default_size);
384 384
 
385
-		if ( is_singular( 'post' ) ) :
385
+		if (is_singular('post')) :
386 386
 			$format = get_post_format();
387 387
 
388
-			if ( false === $format ) {
388
+			if (false === $format) {
389 389
 				$format = 'standard';
390 390
 			}
391 391
 
392
-			$format = lsx_translate_format_to_fontawesome( $format );
392
+			$format = lsx_translate_format_to_fontawesome($format);
393 393
 			?>
394
-			<div class="archive-header-wrapper banner-post-header col-<?php echo esc_attr( $size ); ?>-12">
394
+			<div class="archive-header-wrapper banner-post-header col-<?php echo esc_attr($size); ?>-12">
395 395
 				<header class="archive-header">
396 396
 					<h1 class="archive-title">
397
-						<i class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></i>
397
+						<i class="format-link fa fa-<?php echo esc_attr($format); ?>"></i>
398 398
 						<span><?php the_title(); ?></span>
399 399
 					</h1>
400 400
 				</header>
@@ -402,10 +402,10 @@  discard block
 block discarded – undo
402 402
 			<?php
403 403
 		endif;
404 404
 	}
405
-	add_action( 'lsx_entry_top', 'lsx_post_header' );
405
+	add_action('lsx_entry_top', 'lsx_post_header');
406 406
 endif;
407 407
 
408
-if ( ! function_exists( 'lsx_add_viewport_meta_tag' ) ) :
408
+if ( ! function_exists('lsx_add_viewport_meta_tag')) :
409 409
 	/**
410 410
 	 * Add Viewport Meta Tag to head.
411 411
 	 *
@@ -417,10 +417,10 @@  discard block
 block discarded – undo
417 417
 		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
418 418
 		<?php
419 419
 	}
420
-	add_action( 'wp_head', 'lsx_add_viewport_meta_tag' );
420
+	add_action('wp_head', 'lsx_add_viewport_meta_tag');
421 421
 endif;
422 422
 
423
-if ( ! function_exists( 'lsx_header_search_form' ) ) :
423
+if ( ! function_exists('lsx_header_search_form')) :
424 424
 	/**
425 425
 	 * Add a search form to just above the nav menu.
426 426
 	 *
@@ -428,20 +428,20 @@  discard block
 block discarded – undo
428 428
 	 * @subpackage layout
429 429
 	 */
430 430
 	function lsx_header_search_form() {
431
-		$search_form = get_theme_mod( 'lsx_header_search', false );
431
+		$search_form = get_theme_mod('lsx_header_search', false);
432 432
 
433
-		if ( false !== $search_form || is_customize_preview() ) {
434
-			get_search_form( true );
433
+		if (false !== $search_form || is_customize_preview()) {
434
+			get_search_form(true);
435 435
 		}
436 436
 	}
437
-	$mobile_header_layout = get_theme_mod( 'lsx_header_mobile_layout', 'navigation-bar' );
438
-	add_action( 'lsx_nav_before', 'lsx_header_search_form', 0 );
437
+	$mobile_header_layout = get_theme_mod('lsx_header_mobile_layout', 'navigation-bar');
438
+	add_action('lsx_nav_before', 'lsx_header_search_form', 0);
439 439
 endif;
440 440
 
441 441
 // Add entry meta to single post if active.
442
-if ( ! function_exists( 'lsx_add_entry_meta' ) ) :
442
+if ( ! function_exists('lsx_add_entry_meta')) :
443 443
 	function lsx_add_entry_meta() {
444
-		if ( is_single() && is_singular( 'post' ) ) {
444
+		if (is_single() && is_singular('post')) {
445 445
 			?>
446 446
 			<div class="entry-meta">
447 447
 				<?php lsx_post_meta_single_top(); ?>
@@ -449,5 +449,5 @@  discard block
 block discarded – undo
449 449
 			<?php
450 450
 		}
451 451
 	}
452
-	add_action( 'lsx_entry_top', 'lsx_add_entry_meta', 999 );
452
+	add_action('lsx_entry_top', 'lsx_add_entry_meta', 999);
453 453
 endif;
Please login to merge, or discard this patch.