Completed
Push — master ( 296a4e...80da17 )
by Fernando
05:58
created
archive.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,9 +47,12 @@
 block discarded – undo
47 47
 			
48 48
 			<?php lsx_paging_nav(); ?>
49 49
 
50
-		<?php else : ?>
50
+		<?php else {
51
+	: ?>
51 52
 
52
-			<?php get_template_part( 'content', 'none' ); ?>
53
+			<?php get_template_part( 'content', 'none' );
54
+}
55
+?>
53 56
 
54 57
 		<?php endif; ?>
55 58
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,33 +11,33 @@  discard block
 block discarded – undo
11 11
 
12 12
 	<?php lsx_content_wrap_before(); ?>
13 13
 
14
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
14
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
15 15
 
16 16
 		<?php lsx_content_before(); ?>
17 17
 
18 18
 		<main id="main" class="site-main">
19 19
 			
20 20
 		<?php 
21
-			$layout = get_theme_mod('lsx_layout','2cr');
22
-			$layout = apply_filters( 'lsx_layout', $layout );
23
-			if('1c' === $layout && !is_post_type_archive('tribe_events')){
21
+			$layout = get_theme_mod('lsx_layout', '2cr');
22
+			$layout = apply_filters('lsx_layout', $layout);
23
+			if ('1c' === $layout && ! is_post_type_archive('tribe_events')) {
24 24
 				lsx_breadcrumbs();
25 25
 			}
26 26
 		?>
27 27
 
28 28
 		<?php lsx_content_top(); ?>
29 29
 
30
-		<?php if ( have_posts() ) : ?>	
30
+		<?php if (have_posts()) : ?>	
31 31
 
32 32
 			<?php /* Start the Loop */ ?>
33
-			<?php while ( have_posts() ) : the_post(); ?>
33
+			<?php while (have_posts()) : the_post(); ?>
34 34
 
35 35
 				<?php
36 36
 					/* Include the Post-Format-specific template for the content.
37 37
 					 * If you want to override this in a child theme, then include a file
38 38
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
39 39
 					 */
40
-					get_template_part( 'content', get_post_format() );
40
+					get_template_part('content', get_post_format());
41 41
 				?>
42 42
 
43 43
 			<?php endwhile; ?>
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
 		<?php else : ?>
48 48
 
49
-			<?php get_template_part( 'content', 'none' ); ?>
49
+			<?php get_template_part('content', 'none'); ?>
50 50
 
51 51
 		<?php endif; ?>
52 52
 
Please login to merge, or discard this patch.
single-jetpack-portfolio.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
 
22 22
 			<?php lsx_content_top(); ?>
23 23
 			
24
-			<?php while ( have_posts() ) : the_post(); ?>
24
+			<?php while (have_posts()) : the_post(); ?>
25 25
 
26
-				<?php get_template_part( 'content', 'portfolio-single' ); ?>
26
+				<?php get_template_part('content', 'portfolio-single'); ?>
27 27
 
28 28
 			<?php endwhile; ?>
29 29
 
Please login to merge, or discard this patch.
sidebar.php 2 patches
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 		
23 23
 		if('posts' == $show_on_front && is_home()){
24 24
 			$sidebar = 'home';
25
-		}else{
25
+		} else{
26 26
 			$sidebar = 'sidebar-1';
27 27
 		}
28 28
 	}
@@ -38,9 +38,12 @@  discard block
 block discarded – undo
38 38
 	
39 39
 		<div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary">
40 40
 		
41
-	<?php else : ?>
41
+	<?php else {
42
+	: ?>
42 43
 	
43
-		<div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary">
44
+		<div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class());
45
+}
46
+?>" role="complementary">
44 47
 		
45 48
 	<?php endif ; ?>
46 49
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 // Allow Plugins and themes to disable the sidebar incase of very customized layouts.
9
-$sidebar_enabled = apply_filters('lsx_sidebar_enable',true);
10
-if(true !== $sidebar_enabled){return true;}
9
+$sidebar_enabled = apply_filters('lsx_sidebar_enable', true);
10
+if (true !== $sidebar_enabled) {return true; }
11 11
 ?>
12 12
 <?php
13 13
 	$show_on_front = get_option('show_on_front');
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
 		$sidebar = 'home';
18 18
 	} else {
19 19
 
20
-		$layout = get_theme_mod('lsx_layout','2cr');
21
-		$layout = apply_filters( 'lsx_layout', $layout );
20
+		$layout = get_theme_mod('lsx_layout', '2cr');
21
+		$layout = apply_filters('lsx_layout', $layout);
22 22
 		
23
-		if('posts' == $show_on_front && is_home()){
23
+		if ('posts' == $show_on_front && is_home()) {
24 24
 			$sidebar = 'home';
25
-		}else{
25
+		} else {
26 26
 			$sidebar = 'sidebar-1';
27 27
 		}
28 28
 	}
29
-	if ( '1c' !== $layout ) : ?>
29
+	if ('1c' !== $layout) : ?>
30 30
 
31 31
 	<?php lsx_sidebars_before(); ?>
32 32
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	
35 35
 		<div id="secondary" class="widget-area <?php echo esc_attr(lsx_home_sidebar_class()); ?>" role="complementary">
36 36
 		
37
-	<?php elseif ( is_page_template('page-templates/template-blog.php') ) : ?>
37
+	<?php elseif (is_page_template('page-templates/template-blog.php')) : ?>
38 38
 	
39 39
 		<div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary">
40 40
 		
@@ -42,25 +42,25 @@  discard block
 block discarded – undo
42 42
 	
43 43
 		<div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary">
44 44
 		
45
-	<?php endif ; ?>
45
+	<?php endif; ?>
46 46
 
47 47
 		<?php lsx_sidebar_top(); ?>
48 48
 
49
-		<?php if ( ! dynamic_sidebar( $sidebar ) ) : ?>
49
+		<?php if ( ! dynamic_sidebar($sidebar)) : ?>
50 50
 
51 51
 			<aside id="search" class="widget widget_search">
52 52
 				<?php get_search_form(); ?>
53 53
 			</aside>
54 54
 
55 55
 			<aside id="archives" class="widget">
56
-				<h1 class="widget-title"><?php esc_attr_e( 'Archives', 'lsx' ); ?></h1>
56
+				<h1 class="widget-title"><?php esc_attr_e('Archives', 'lsx'); ?></h1>
57 57
 				<ul>
58
-					<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
58
+					<?php wp_get_archives(array('type' => 'monthly')); ?>
59 59
 				</ul>
60 60
 			</aside>
61 61
 
62 62
 			<aside id="meta" class="widget">
63
-				<h1 class="widget-title"><?php esc_attr_e( 'Meta', 'lsx' ); ?></h1>
63
+				<h1 class="widget-title"><?php esc_attr_e('Meta', 'lsx'); ?></h1>
64 64
 				<ul>
65 65
 					<?php wp_register(); ?>
66 66
 					<li><?php wp_loginout(); ?></li>
Please login to merge, or discard this patch.
sidebar-sitemap.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	$layout = get_theme_mod('lsx_layout','2cr');
13 13
 	if('posts' == $show_on_front && is_home()){
14 14
 		$sidebar = 'home';
15
-	}else{
15
+	} else{
16 16
 		$sidebar = 'sidebar-1';
17 17
 	}
18 18
 	
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,21 +9,21 @@
 block discarded – undo
9 9
 <?php
10 10
 	$show_on_front = get_option('show_on_front');
11 11
 
12
-	$layout = get_theme_mod('lsx_layout','2cr');
13
-	if('posts' == $show_on_front && is_home()){
12
+	$layout = get_theme_mod('lsx_layout', '2cr');
13
+	if ('posts' == $show_on_front && is_home()) {
14 14
 		$sidebar = 'home';
15
-	}else{
15
+	} else {
16 16
 		$sidebar = 'sidebar-1';
17 17
 	}
18 18
 	
19
-	if ( '1c' !== $layout ) : ?>
19
+	if ('1c' !== $layout) : ?>
20 20
 
21 21
 	<?php lsx_sidebars_before(); ?>
22 22
 
23 23
 	<div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary">
24 24
 
25 25
 		<?php lsx_sidebar_top(); ?>
26
-		<h2><?php esc_attr_e( 'Categories', 'lsx' ); ?></h2>
26
+		<h2><?php esc_attr_e('Categories', 'lsx'); ?></h2>
27 27
         <aside id="categories" class="widget widget_categories">
28 28
         	<?php echo wp_tag_cloud(array('taxonomy'=>'category')); ?>
29 29
         </aside>		
Please login to merge, or discard this patch.
page-templates/template-front-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
 			<?php lsx_content_top(); ?>		
15 15
 			
16
-			<?php if(have_posts() && !class_exists('Lsx_Banners')) : ?>
16
+			<?php if (have_posts() && ! class_exists('Lsx_Banners')) : ?>
17 17
 			
18
-				<?php while ( have_posts() ) : the_post(); ?>
18
+				<?php while (have_posts()) : the_post(); ?>
19 19
 				
20 20
 					<?php lsx_entry_before(); ?>
21 21
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 			
37 37
 			<div id="home-widgets">
38 38
 			
39
-				<?php if ( ! dynamic_sidebar( 'sidebar-home' ) ) : ?>
39
+				<?php if ( ! dynamic_sidebar('sidebar-home')) : ?>
40 40
 				
41 41
 				
42 42
 				<?php endif; // end sidebar widget area ?>
Please login to merge, or discard this patch.
page-templates/template-full-width.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
 			<?php lsx_content_top(); ?>		
15 15
 			
16
-				<?php while ( have_posts() ) : the_post(); ?>
16
+				<?php while (have_posts()) : the_post(); ?>
17 17
 		
18
-					<?php get_template_part( 'content', 'page' ); ?>
18
+					<?php get_template_part('content', 'page'); ?>
19 19
 		
20 20
 				<?php endwhile; // end of the loop. ?>		
21 21
 				
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 			
24 24
 			<?php
25 25
 				// If comments are open or we have at least one comment, load up the comment template
26
-				if ( comments_open() || '0' != get_comments_number() ) :
26
+				if (comments_open() || '0' != get_comments_number()) :
27 27
 					comments_template();
28 28
 				endif;
29 29
 			?>			
Please login to merge, or discard this patch.
content-portfolio.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 
9 9
 $type_class = "filter-item column-3 ";
10
-$types = get_the_terms( get_the_ID(), 'jetpack-portfolio-type');
10
+$types = get_the_terms(get_the_ID(), 'jetpack-portfolio-type');
11 11
 if ($types) {
12 12
 	foreach ($types as $type) {
13 13
 		$type_class .= $type->slug . " ";
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
 <article id="post-<?php the_ID(); ?>" data-column="<?php echo 3; ?>" <?php post_class($type_class); ?>>
19 19
 	<div class="portfolio-content-wrapper">
20 20
 		<div class="portfolio-thumbnail">
21
-			<?php if ( has_post_thumbnail() ) : ?>
21
+			<?php if (has_post_thumbnail()) : ?>
22 22
 				<a href="<?php the_permalink(); ?>">
23
-					<?php lsx_thumbnail( 'lsx-thumbnail-wide' ); ?>
23
+					<?php lsx_thumbnail('lsx-thumbnail-wide'); ?>
24 24
 				</a>
25 25
 			<?php endif; ?>
26 26
 		</div>
27 27
 		
28
-		<?php the_title( '<a class="portfolio-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark"><span>', '</span></a>' ); ?>
28
+		<?php the_title('<a class="portfolio-title" href="' . esc_url(get_permalink()) . '" rel="bookmark"><span>', '</span></a>'); ?>
29 29
 	</div>
30 30
 </article>
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
footer.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 											if(has_nav_menu('footer-menu')){
26 26
 												wp_nav_menu(array('theme_location' => 'footer-menu'));
27 27
 											}
28
-										}else{
28
+										} else{
29 29
 											if(has_nav_menu('footer_logged_in')){
30 30
 												wp_nav_menu(array('theme_location' => 'footer_logged_in'));
31 31
 											}
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @package lsx
8 8
  */
9 9
 ?>
10
-<?php if ( !is_singular('landing-page') ) { ?>
10
+<?php if ( ! is_singular('landing-page')) { ?>
11 11
 
12 12
 			</div><!-- .content -->
13 13
 		</div><!-- wrap -->
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 		  					    <div class="footer-menu">
22 22
 									<?php 
23 23
 									
24
-										if(!is_user_logged_in()){
25
-											if(has_nav_menu('footer-menu')){
24
+										if ( ! is_user_logged_in()) {
25
+											if (has_nav_menu('footer-menu')) {
26 26
 												wp_nav_menu(array('theme_location' => 'footer-menu'));
27 27
 											}
28
-										}else{
29
-											if(has_nav_menu('footer_logged_in')){
28
+										} else {
29
+											if (has_nav_menu('footer_logged_in')) {
30 30
 												wp_nav_menu(array('theme_location' => 'footer_logged_in'));
31 31
 											}
32 32
 										}				
@@ -41,26 +41,26 @@  discard block
 block discarded – undo
41 41
 
42 42
 			    		<?php lsx_footer_top(); ?>
43 43
 
44
-			      		<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></p>
45
-						<?php if ( has_nav_menu( 'social' ) ) { ?>
44
+			      		<p class="credit <?php if (has_nav_menu('social') || has_nav_menu('footer')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(get_bloginfo('name'))); ?></p>
45
+						<?php if (has_nav_menu('social')) { ?>
46 46
 							<nav id="social-navigation" class="social-navigation">
47 47
 								<?php
48 48
 									// Social links navigation menu.
49
-									wp_nav_menu( array(
49
+									wp_nav_menu(array(
50 50
 										'theme_location' => 'social',
51 51
 										'depth'          => 1,
52
-									) );
52
+									));
53 53
 								?>
54 54
 							</nav><!-- .social-navigation -->
55 55
 						<?php } ?>
56
-						<?php if ( has_nav_menu( 'footer' ) ) { ?>
56
+						<?php if (has_nav_menu('footer')) { ?>
57 57
 							<nav id="footer-navigation" class="footer-navigation">
58 58
 								<?php
59 59
 									// Footer links navigation menu.
60
-									wp_nav_menu( array(
60
+									wp_nav_menu(array(
61 61
 										'theme_location' => 'footer',
62 62
 										'depth'          => 1,
63
-									) );
63
+									));
64 64
 								?>
65 65
 							</nav><!-- .footer-navigation -->
66 66
 						<?php } ?>
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
 
88 88
 			    		<?php lsx_footer_top(); ?>
89 89
 
90
-			      		<p class="credit <?php if ( has_nav_menu( 'social' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></p>
91
-						<?php if ( has_nav_menu( 'social' ) ) { ?>
90
+			      		<p class="credit <?php if (has_nav_menu('social')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(get_bloginfo('name'))); ?></p>
91
+						<?php if (has_nav_menu('social')) { ?>
92 92
 							<nav id="social-navigation" class="social-navigation" role="navigation">
93 93
 								<?php
94 94
 									// Social links navigation menu.
95
-									wp_nav_menu( array(
95
+									wp_nav_menu(array(
96 96
 										'theme_location' => 'social',
97 97
 										'depth'          => 1,
98
-									) );
98
+									));
99 99
 								?>
100 100
 							</nav><!-- .social-navigation -->
101 101
 						<?php } ?>
Please login to merge, or discard this patch.
image.php 2 patches
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,18 +62,20 @@
 block discarded – undo
62 62
                                      */
63 63
                                     $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
64 64
                                     foreach ( $attachments as $k => $attachment ) {
65
-                                        if ( $attachment->ID == $post->ID )
66
-                                            break;
65
+                                        if ( $attachment->ID == $post->ID ) {
66
+                                                                                    break;
67
+                                        }
67 68
                                     }
68 69
                                     $k++;
69 70
                                     // If there is more than 1 attachment in a gallery
70 71
                                     if ( count( $attachments ) > 1 ) {
71
-                                        if ( isset( $attachments[ $k ] ) )
72
-                                            // get the URL of the next image attachment
72
+                                        if ( isset( $attachments[ $k ] ) ) {
73
+                                                                                    // get the URL of the next image attachment
73 74
                                             $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
74
-                                        else
75
-                                            // or get the URL of the first image attachment
75
+                                        } else {
76
+                                                                                    // or get the URL of the first image attachment
76 77
                                             $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
78
+                                        }
77 79
                                     } else {
78 80
                                         // or, if there's only 1 image, get the URL of the image
79 81
                                         $next_attachment_url = wp_get_attachment_url();
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
     <?php lsx_content_wrap_before(); ?>
12 12
  
13
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
13
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
14 14
 
15 15
 		<?php lsx_content_before(); ?>
16 16
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 			<?php lsx_content_top(); ?>
20 20
  
21
-            <?php while ( have_posts() ) : the_post(); ?>
21
+            <?php while (have_posts()) : the_post(); ?>
22 22
  
23 23
  				<?php lsx_entry_before(); ?>
24 24
  				
@@ -32,25 +32,25 @@  discard block
 block discarded – undo
32 32
                         <div class="entry-meta">
33 33
                             <?php
34 34
                                $metadata = wp_get_attachment_metadata();
35
-                                printf( wp_kses_post( '%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>' ),
36
-                                    esc_html__( 'Published', 'lsx' ),
37
-                                    esc_attr( get_the_date( 'c' ) ),
38
-                                    esc_html( get_the_date() ),
39
-                                    esc_html__( 'at', 'lsx' ),
40
-                                    esc_url( wp_get_attachment_url() ),
41
-                                    esc_attr( $metadata['width'] ),
42
-                                    esc_attr( $metadata['height'] ),
43
-                                    esc_html__( 'in', 'lsx' ),
44
-                                    esc_url( get_permalink( $post->post_parent ) ),
45
-                                    get_the_title( $post->post_parent )
35
+                                printf(wp_kses_post('%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>'),
36
+                                    esc_html__('Published', 'lsx'),
37
+                                    esc_attr(get_the_date('c')),
38
+                                    esc_html(get_the_date()),
39
+                                    esc_html__('at', 'lsx'),
40
+                                    esc_url(wp_get_attachment_url()),
41
+                                    esc_attr($metadata['width']),
42
+                                    esc_attr($metadata['height']),
43
+                                    esc_html__('in', 'lsx'),
44
+                                    esc_url(get_permalink($post->post_parent)),
45
+                                    get_the_title($post->post_parent)
46 46
                                 );
47 47
                             ?>
48
-                            <?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
48
+                            <?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="sep"> | </span> <span class="edit-link">', '</span>'); ?>
49 49
                         </div><!-- .entry-meta -->
50 50
  
51 51
                         <nav id="image-navigation" class="site-navigation">
52
-                            <span class="previous-image"><?php previous_image_link( false, '&larr; '.esc_html__( 'Previous', 'lsx' ) ); ?></span>
53
-                            <span class="next-image"><?php next_image_link( false, esc_html__( 'Next', 'lsx' ).' &rarr;' ); ?></span>
52
+                            <span class="previous-image"><?php previous_image_link(false, '&larr; ' . esc_html__('Previous', 'lsx')); ?></span>
53
+                            <span class="next-image"><?php next_image_link(false, esc_html__('Next', 'lsx') . ' &rarr;'); ?></span>
54 54
                         </nav><!-- #image-navigation -->
55 55
                     </header><!-- .entry-header -->
56 56
  
@@ -63,33 +63,33 @@  discard block
 block discarded – undo
63 63
                                      * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
64 64
                                      * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
65 65
                                      */
66
-                                    $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
67
-                                    foreach ( $attachments as $k => $attachment ) {
68
-                                        if ( $attachment->ID == $post->ID )
66
+                                    $attachments = array_values(get_children(array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID')));
67
+                                    foreach ($attachments as $k => $attachment) {
68
+                                        if ($attachment->ID == $post->ID)
69 69
                                             break;
70 70
                                     }
71 71
                                     $k++;
72 72
                                     // If there is more than 1 attachment in a gallery
73
-                                    if ( count( $attachments ) > 1 ) {
74
-                                        if ( isset( $attachments[ $k ] ) )
73
+                                    if (count($attachments) > 1) {
74
+                                        if (isset($attachments[$k]))
75 75
                                             // get the URL of the next image attachment
76
-                                            $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
76
+                                            $next_attachment_url = get_attachment_link($attachments[$k]->ID);
77 77
                                         else
78 78
                                             // or get the URL of the first image attachment
79
-                                            $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
79
+                                            $next_attachment_url = get_attachment_link($attachments[0]->ID);
80 80
                                     } else {
81 81
                                         // or, if there's only 1 image, get the URL of the image
82 82
                                         $next_attachment_url = wp_get_attachment_url();
83 83
                                     }
84 84
                                 ?>
85 85
  
86
-                                <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
87
-                                    $attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
88
-                                    echo wp_get_attachment_image( $post->ID, $attachment_size );
86
+                                <a href="<?php echo esc_url($next_attachment_url); ?>" title="<?php echo esc_attr(get_the_title()); ?>" rel="attachment"><?php
87
+                                    $attachment_size = apply_filters('shape_attachment_size', array(1200, 1200)); // Filterable image size.
88
+                                    echo wp_get_attachment_image($post->ID, $attachment_size);
89 89
                                 ?></a>
90 90
                             </div><!-- .attachment -->
91 91
  
92
-                            <?php if ( ! empty( $post->post_excerpt ) ) : ?>
92
+                            <?php if ( ! empty($post->post_excerpt)) : ?>
93 93
                             <div class="entry-caption">
94 94
                                 <?php the_excerpt(); ?>
95 95
                             </div><!-- .entry-caption -->
@@ -99,27 +99,27 @@  discard block
 block discarded – undo
99 99
                         <?php
100 100
                             the_content();
101 101
 
102
-                            wp_link_pages( array(
102
+                            wp_link_pages(array(
103 103
                                 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
104 104
                                 'after' => '</div></div>',
105 105
                                 'link_before' => '<span>',
106 106
                                 'link_after' => '</span>'
107
-                            ) );
107
+                            ));
108 108
                         ?>
109 109
  
110 110
                     </div><!-- .entry-content -->
111 111
                     
112 112
 					<footer class="entry-meta">
113 113
 						
114
-						<?php if ( ! is_single() ) : ?>
115
-							<a class="read-more" href="<?php the_permalink(); ?>"><?php esc_html_e( 'Read More', 'lsx' ); ?></a>
114
+						<?php if ( ! is_single()) : ?>
115
+							<a class="read-more" href="<?php the_permalink(); ?>"><?php esc_html_e('Read More', 'lsx'); ?></a>
116 116
 						<?php endif ?>
117 117
 				
118
-						<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
119
-						<span class="comments-link"><?php comments_popup_link( esc_html__( 'Leave a comment', 'lsx' ), esc_html__( '1 Comment', 'lsx' ), esc_html__( '% Comments', 'lsx' ) ); ?></span>
118
+						<?php if ( ! post_password_required() && (comments_open() || '0' != get_comments_number())) : ?>
119
+						<span class="comments-link"><?php comments_popup_link(esc_html__('Leave a comment', 'lsx'), esc_html__('1 Comment', 'lsx'), esc_html__('% Comments', 'lsx')); ?></span>
120 120
 						<?php endif; ?>			
121 121
 				
122
-						<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
122
+						<?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
123 123
 					</footer><!-- .entry-meta -->                    
124 124
  
125 125
  				<?php lsx_entry_bottom(); ?>
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
  
129 129
 				<?php
130 130
 					// If comments are open or we have at least one comment, load up the comment template
131
-					if ( comments_open() || '0' != get_comments_number() ) :
131
+					if (comments_open() || '0' != get_comments_number()) :
132 132
 						comments_template();
133 133
 					endif;
134 134
 				?>	
Please login to merge, or discard this patch.