Completed
Push — master ( 2fcc6a...e555ed )
by
unknown
03:04
created
searchform.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
 
8 8
 
9 9
 //This is to help the customizer function better
10
-$style='';
11
-if(is_customize_preview()){
12
-	$search_form = get_theme_mod( 'lsx_header_search', 0 );
13
-	if(!$search_form){
14
-		$style='style="display:none;"';
10
+$style = '';
11
+if (is_customize_preview()) {
12
+	$search_form = get_theme_mod('lsx_header_search', 0);
13
+	if ( ! $search_form) {
14
+		$style = 'style="display:none;"';
15 15
 	}
16 16
 }
17 17
 
Please login to merge, or discard this patch.
footer.php 2 patches
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( __( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), date_i18n( 'Y' ), 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(__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), date_i18n('Y'), 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( __( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), date_i18n( 'Y' ), 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(__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), date_i18n('Y'), 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.
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.
content-portfolio-single.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@  discard block
 block discarded – undo
18 18
 		<div class="col-sm-12">
19 19
 			<div class="entry-content">
20 20
 			
21
-				<?php if ( ! is_singular() ) {
21
+				<?php if ( ! is_singular()) {
22 22
 					the_excerpt();
23 23
 				} else {
24 24
 					the_content();
25 25
 
26
-					wp_link_pages( array(
26
+					wp_link_pages(array(
27 27
 						'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
28 28
 						'after' => '</div></div>',
29 29
 						'link_before' => '<span>',
30 30
 						'link_after' => '</span>'
31
-					) );
31
+					));
32 32
 				} ?>
33 33
 
34 34
 				<?php lsx_portfolio_gallery(); ?>
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
 				<?php lsx_post_nav(); ?>	
37 37
 				
38 38
 				<?php  
39
-					if ( function_exists( 'sharing_display' ) ) {
40
-						sharing_display( '', true );
39
+					if (function_exists('sharing_display')) {
40
+						sharing_display('', true);
41 41
 					}
42 42
 					
43
-					if ( class_exists( 'Jetpack_Likes' ) ) {
43
+					if (class_exists('Jetpack_Likes')) {
44 44
 						$custom_likes = new Jetpack_Likes;
45
-						echo $custom_likes->post_likes( '' );
45
+						echo $custom_likes->post_likes('');
46 46
 					}
47 47
 				?>
48 48
 				
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		</div>
54 54
 	</div>
55 55
 		
56
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
56
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
57 57
 	
58 58
 	<?php lsx_entry_bottom(); ?>
59 59
 
Please login to merge, or discard this patch.
comments.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 </nav>
44 44
 <?php endif; ?>
45 45
 
46
-<?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
46
+<?php if ( ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
47 47
 	<div class="alert alert-warning">
48 48
 		<?php _e('Comments are closed.', 'lsx'); ?>
49 49
 	</div>
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 <?php endif; ?>
56 56
 
57
-<?php if (!have_comments() && !comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
57
+<?php if ( ! have_comments() && ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
58 58
 	<section id="comments">
59 59
 		<div class="alert alert-warning">
60 60
 			<?php _e('Comments are closed.', 'lsx'); ?>
@@ -67,24 +67,24 @@  discard block
 block discarded – undo
67 67
 
68 68
 <?php
69 69
 	$commenter = wp_get_current_commenter();
70
-	$req = get_option( 'require_name_email' );
71
-	$aria_req = ( $req ? " aria-required='true'" : '' );
72
-	$html_req = ( $req ? " required='required'" : '' );
70
+	$req = get_option('require_name_email');
71
+	$aria_req = ($req ? " aria-required='true'" : '');
72
+	$html_req = ($req ? " required='required'" : '');
73 73
 	
74 74
 	$comment_form_args = array(
75
-		'comment_field' => '<p class="comment-form-comment"><textarea placeholder="'. __( 'Comment', 'lsx' ) .'" id="comment" class="form-control" name="comment" cols="45" rows="8"'. $aria_req . $html_req .'></textarea></p>',
75
+		'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . __('Comment', 'lsx') . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
76 76
 		
77 77
 		'fields' => array(
78
-			'author' => '<p class="comment-form-author"><label for="author">'. __( 'Name', 'lsx' ) .'</label> ' .
79
-				( $req ? '<span class="required">*</span>' : '' ) .
80
-				'<input class="form-control" placeholder="'. __( 'Name', 'lsx' ) .'" id="author" name="author" type="text" value="'. esc_attr( $commenter['comment_author'] ) .'" size="30"'. $aria_req . $html_req .'></p>',
78
+			'author' => '<p class="comment-form-author"><label for="author">' . __('Name', 'lsx') . '</label> ' .
79
+				($req ? '<span class="required">*</span>' : '') .
80
+				'<input class="form-control" placeholder="' . __('Name', 'lsx') . '" id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . $html_req . '></p>',
81 81
 
82
-			'email' => '<p class="comment-form-email"><label for="email">'. __( 'Email', 'lsx' ) .'</label> ' .
83
-				( $req ? '<span class="required">*</span>' : '' ) .
84
-				'<input class="form-control" placeholder="'. __( 'Email', 'lsx' ) .'" id="email" name="email" type="text" value="'. esc_attr(  $commenter['comment_author_email'] ) .'" size="30"' . $aria_req . $html_req . '></p>',
82
+			'email' => '<p class="comment-form-email"><label for="email">' . __('Email', 'lsx') . '</label> ' .
83
+				($req ? '<span class="required">*</span>' : '') .
84
+				'<input class="form-control" placeholder="' . __('Email', 'lsx') . '" id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . $html_req . '></p>',
85 85
 
86
-			'url' => '<p class="comment-form-url"><label for="url">'. __( 'Website', 'lsx' ) .'</label>' .
87
-				'<input class="form-control" placeholder="'. __( 'Website', 'lsx' ) .'" id="url" name="url" type="text" value="'. esc_attr( $commenter['comment_author_url'] ) .'" size="30"></p>'
86
+			'url' => '<p class="comment-form-url"><label for="url">' . __('Website', 'lsx') . '</label>' .
87
+				'<input class="form-control" placeholder="' . __('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>'
88 88
 		)
89 89
 	);
90 90
 ?>
Please login to merge, or discard this patch.
content-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
16 16
 		<?php
17 17
 			the_content();
18 18
 
19
-			wp_link_pages( array(
19
+			wp_link_pages(array(
20 20
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
21 21
 				'after' => '</div></div>',
22 22
 				'link_before' => '<span>',
23 23
 				'link_after' => '</span>'
24
-			) );
24
+			));
25 25
 		?>
26 26
 	</div><!-- .entry-content -->
27
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
27
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
28 28
 
29 29
 	<?php lsx_entry_bottom(); ?>
30 30
 	
Please login to merge, or discard this patch.
image.php 3 patches
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -31,17 +31,17 @@  discard block
 block discarded – undo
31 31
  
32 32
                         <div class="entry-meta">
33 33
                             <?php
34
-                                $metadata = wp_get_attachment_metadata();
35
-                                printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'lsx' ),
36
-                                    esc_attr( get_the_date( 'c' ) ),
37
-                                    esc_html( get_the_date() ),
38
-                                    wp_get_attachment_url(),
39
-                                    $metadata['width'],
40
-                                    $metadata['height'],
41
-                                    get_permalink( $post->post_parent ),
42
-                                    get_the_title( $post->post_parent )
43
-                                );
44
-                            ?>
34
+								$metadata = wp_get_attachment_metadata();
35
+								printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'lsx' ),
36
+									esc_attr( get_the_date( 'c' ) ),
37
+									esc_html( get_the_date() ),
38
+									wp_get_attachment_url(),
39
+									$metadata['width'],
40
+									$metadata['height'],
41
+									get_permalink( $post->post_parent ),
42
+									get_the_title( $post->post_parent )
43
+								);
44
+							?>
45 45
                             <?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
46 46
                         </div><!-- .entry-meta -->
47 47
  
@@ -56,34 +56,34 @@  discard block
 block discarded – undo
56 56
                         <div class="entry-attachment">
57 57
                             <div class="attachment">
58 58
                                 <?php
59
-                                    /**
60
-                                     * 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,
61
-                                     * 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
62
-                                     */
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
-                                    foreach ( $attachments as $k => $attachment ) {
65
-                                        if ( $attachment->ID == $post->ID )
66
-                                            break;
67
-                                    }
68
-                                    $k++;
69
-                                    // If there is more than 1 attachment in a gallery
70
-                                    if ( count( $attachments ) > 1 ) {
71
-                                        if ( isset( $attachments[ $k ] ) )
72
-                                            // get the URL of the next image attachment
73
-                                            $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
74
-                                        else
75
-                                            // or get the URL of the first image attachment
76
-                                            $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
77
-                                    } else {
78
-                                        // or, if there's only 1 image, get the URL of the image
79
-                                        $next_attachment_url = wp_get_attachment_url();
80
-                                    }
81
-                                ?>
59
+									/**
60
+									 * 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,
61
+									 * 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
62
+									 */
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
+									foreach ( $attachments as $k => $attachment ) {
65
+										if ( $attachment->ID == $post->ID )
66
+											break;
67
+									}
68
+									$k++;
69
+									// If there is more than 1 attachment in a gallery
70
+									if ( count( $attachments ) > 1 ) {
71
+										if ( isset( $attachments[ $k ] ) )
72
+											// get the URL of the next image attachment
73
+											$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
74
+										else
75
+											// or get the URL of the first image attachment
76
+											$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
77
+									} else {
78
+										// or, if there's only 1 image, get the URL of the image
79
+										$next_attachment_url = wp_get_attachment_url();
80
+									}
81
+								?>
82 82
  
83 83
                                 <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
84
-                                    $attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
85
-                                    echo wp_get_attachment_image( $post->ID, $attachment_size );
86
-                                ?></a>
84
+									$attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
85
+									echo wp_get_attachment_image( $post->ID, $attachment_size );
86
+								?></a>
87 87
                             </div><!-- .attachment -->
88 88
  
89 89
                             <?php if ( ! empty( $post->post_excerpt ) ) : ?>
@@ -94,15 +94,15 @@  discard block
 block discarded – undo
94 94
                         </div><!-- .entry-attachment -->
95 95
  
96 96
                         <?php
97
-                            the_content();
97
+							the_content();
98 98
 
99
-                            wp_link_pages( array(
100
-                                'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
101
-                                'after' => '</div></div>',
102
-                                'link_before' => '<span>',
103
-                                'link_after' => '</span>'
104
-                            ) );
105
-                        ?>
99
+							wp_link_pages( array(
100
+								'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
101
+								'after' => '</div></div>',
102
+								'link_before' => '<span>',
103
+								'link_after' => '</span>'
104
+							) );
105
+						?>
106 106
  
107 107
                     </div><!-- .entry-content -->
108 108
                     
Please login to merge, or discard this patch.
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   +28 added lines, -28 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,22 +32,22 @@  discard block
 block discarded – undo
32 32
                         <div class="entry-meta">
33 33
                             <?php
34 34
                                 $metadata = wp_get_attachment_metadata();
35
-                                printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'lsx' ),
36
-                                    esc_attr( get_the_date( 'c' ) ),
37
-                                    esc_html( get_the_date() ),
35
+                                printf(__('Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'lsx'),
36
+                                    esc_attr(get_the_date('c')),
37
+                                    esc_html(get_the_date()),
38 38
                                     wp_get_attachment_url(),
39 39
                                     $metadata['width'],
40 40
                                     $metadata['height'],
41
-                                    get_permalink( $post->post_parent ),
42
-                                    get_the_title( $post->post_parent )
41
+                                    get_permalink($post->post_parent),
42
+                                    get_the_title($post->post_parent)
43 43
                                 );
44 44
                             ?>
45
-                            <?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
45
+                            <?php edit_post_link(__('Edit', 'lsx'), '<span class="sep"> | </span> <span class="edit-link">', '</span>'); ?>
46 46
                         </div><!-- .entry-meta -->
47 47
  
48 48
                         <nav id="image-navigation" class="site-navigation">
49
-                            <span class="previous-image"><?php previous_image_link( false, '&larr; '.__( 'Previous', 'lsx' ) ); ?></span>
50
-                            <span class="next-image"><?php next_image_link( false, __( 'Next', 'lsx' ).' &rarr;' ); ?></span>
49
+                            <span class="previous-image"><?php previous_image_link(false, '&larr; ' . __('Previous', 'lsx')); ?></span>
50
+                            <span class="next-image"><?php next_image_link(false, __('Next', 'lsx') . ' &rarr;'); ?></span>
51 51
                         </nav><!-- #image-navigation -->
52 52
                     </header><!-- .entry-header -->
53 53
  
@@ -60,33 +60,33 @@  discard block
 block discarded – undo
60 60
                                      * 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,
61 61
                                      * 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
62 62
                                      */
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
-                                    foreach ( $attachments as $k => $attachment ) {
65
-                                        if ( $attachment->ID == $post->ID )
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
+                                    foreach ($attachments as $k => $attachment) {
65
+                                        if ($attachment->ID == $post->ID)
66 66
                                             break;
67 67
                                     }
68 68
                                     $k++;
69 69
                                     // If there is more than 1 attachment in a gallery
70
-                                    if ( count( $attachments ) > 1 ) {
71
-                                        if ( isset( $attachments[ $k ] ) )
70
+                                    if (count($attachments) > 1) {
71
+                                        if (isset($attachments[$k]))
72 72
                                             // get the URL of the next image attachment
73
-                                            $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
73
+                                            $next_attachment_url = get_attachment_link($attachments[$k]->ID);
74 74
                                         else
75 75
                                             // or get the URL of the first image attachment
76
-                                            $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
76
+                                            $next_attachment_url = get_attachment_link($attachments[0]->ID);
77 77
                                     } else {
78 78
                                         // or, if there's only 1 image, get the URL of the image
79 79
                                         $next_attachment_url = wp_get_attachment_url();
80 80
                                     }
81 81
                                 ?>
82 82
  
83
-                                <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
84
-                                    $attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
85
-                                    echo wp_get_attachment_image( $post->ID, $attachment_size );
83
+                                <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr(get_the_title()); ?>" rel="attachment"><?php
84
+                                    $attachment_size = apply_filters('shape_attachment_size', array(1200, 1200)); // Filterable image size.
85
+                                    echo wp_get_attachment_image($post->ID, $attachment_size);
86 86
                                 ?></a>
87 87
                             </div><!-- .attachment -->
88 88
  
89
-                            <?php if ( ! empty( $post->post_excerpt ) ) : ?>
89
+                            <?php if ( ! empty($post->post_excerpt)) : ?>
90 90
                             <div class="entry-caption">
91 91
                                 <?php the_excerpt(); ?>
92 92
                             </div><!-- .entry-caption -->
@@ -96,27 +96,27 @@  discard block
 block discarded – undo
96 96
                         <?php
97 97
                             the_content();
98 98
 
99
-                            wp_link_pages( array(
99
+                            wp_link_pages(array(
100 100
                                 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
101 101
                                 'after' => '</div></div>',
102 102
                                 'link_before' => '<span>',
103 103
                                 'link_after' => '</span>'
104
-                            ) );
104
+                            ));
105 105
                         ?>
106 106
  
107 107
                     </div><!-- .entry-content -->
108 108
                     
109 109
 					<footer class="entry-meta">
110 110
 						
111
-						<?php if ( ! is_single() ) : ?>
111
+						<?php if ( ! is_single()) : ?>
112 112
 							<a class="read-more" href="<?php the_permalink(); ?>">Read More</a>
113 113
 						<?php endif ?>
114 114
 				
115
-						<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
116
-						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'lsx' ), __( '1 Comment', 'lsx' ), __( '% Comments', 'lsx' ) ); ?></span>
115
+						<?php if ( ! post_password_required() && (comments_open() || '0' != get_comments_number())) : ?>
116
+						<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'lsx'), __('1 Comment', 'lsx'), __('% Comments', 'lsx')); ?></span>
117 117
 						<?php endif; ?>			
118 118
 				
119
-						<?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
119
+						<?php edit_post_link(__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
120 120
 					</footer><!-- .entry-meta -->                    
121 121
  
122 122
  				<?php lsx_entry_bottom(); ?>
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
  
126 126
 				<?php
127 127
 					// If comments are open or we have at least one comment, load up the comment template
128
-					if ( comments_open() || '0' != get_comments_number() ) :
128
+					if (comments_open() || '0' != get_comments_number()) :
129 129
 						comments_template();
130 130
 					endif;
131 131
 				?>	
Please login to merge, or discard this patch.
mobile-templates/single-page.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -3,33 +3,33 @@
 block discarded – undo
3 3
 <head>
4 4
 	<meta charset="utf-8">
5 5
 	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
6
-	<link href="http<?php if(is_ssl()){ echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css">
7
-	<?php do_action( 'amp_post_template_head', $this ); ?>
6
+	<link href="http<?php if (is_ssl()) { echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css">
7
+	<?php do_action('amp_post_template_head', $this); ?>
8 8
 
9 9
 	<style amp-custom>
10
-	<?php $this->load_parts( array( 'style' ) ); ?>
11
-	<?php do_action( 'amp_post_template_css', $this ); ?>
10
+	<?php $this->load_parts(array('style')); ?>
11
+	<?php do_action('amp_post_template_css', $this); ?>
12 12
 	</style>
13 13
 </head>
14 14
 <body>
15 15
 <nav class="amp-wp-title-bar">
16 16
 	<div>
17
-		<a href="<?php echo esc_url( $this->get( 'home_url' ) ); ?>">
18
-			<?php $site_icon_url = $this->get( 'site_icon_url' ); ?>
19
-			<?php if ( $site_icon_url ) : ?>
20
-				<amp-img src="<?php echo esc_url( $site_icon_url ); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img>
17
+		<a href="<?php echo esc_url($this->get('home_url')); ?>">
18
+			<?php $site_icon_url = $this->get('site_icon_url'); ?>
19
+			<?php if ($site_icon_url) : ?>
20
+				<amp-img src="<?php echo esc_url($site_icon_url); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img>
21 21
 			<?php endif; ?>
22
-			<?php echo esc_html( $this->get( 'blog_name' ) ); ?>
22
+			<?php echo esc_html($this->get('blog_name')); ?>
23 23
 		</a>
24 24
 	</div>
25 25
 </nav>
26 26
 <div class="amp-wp-content">
27
-	<h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1>
27
+	<h1 class="amp-wp-title"><?php echo esc_html($this->get('post_title')); ?></h1>
28 28
 	<ul class="amp-wp-meta">
29
-		<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-author', 'meta-time', 'meta-taxonomy' ) ) ); ?>
29
+		<?php $this->load_parts(apply_filters('amp_post_template_meta_parts', array('meta-author', 'meta-time', 'meta-taxonomy'))); ?>
30 30
 	</ul>
31
-	<?php echo $this->get( 'post_amp_content' ); // amphtml content; no kses ?>
31
+	<?php echo $this->get('post_amp_content'); // amphtml content; no kses ?>
32 32
 </div>
33
-<?php do_action( 'amp_post_template_footer', $this ); ?>
33
+<?php do_action('amp_post_template_footer', $this); ?>
34 34
 </body>
35 35
 </html>
Please login to merge, or discard this patch.
content.php 2 patches
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 <?php lsx_entry_before(); ?>
8 8
 
9 9
 <?php 
10
-	if ( has_post_thumbnail() ) { 
10
+	if (has_post_thumbnail()) { 
11 11
 		$thumb_class = 'has-thumb';
12 12
 	} else {
13 13
 		$thumb_class = 'no-thumb';
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	<?php lsx_entry_top(); ?>
19 19
 
20 20
 	<header class="entry-header">
21
-		<?php if ( has_post_thumbnail() ) { ?>
21
+		<?php if (has_post_thumbnail()) { ?>
22 22
 		<div class="entry-image">
23 23
 			<a class="thumbnail" href="<?php the_permalink(); ?>">
24 24
 				 <?php lsx_thumbnail('lsx-single-thumbnail'); ?>
@@ -28,35 +28,35 @@  discard block
 block discarded – undo
28 28
 
29 29
 	<?php 
30 30
 		$format = get_post_format();
31
-		if ( false === $format ) {
31
+		if (false === $format) {
32 32
 			$format = 'standard';
33
-			$show_on_front = get_option('show_on_front','posts');
34
-			if('page' == $show_on_front){
33
+			$show_on_front = get_option('show_on_front', 'posts');
34
+			if ('page' == $show_on_front) {
35 35
 				$archive_link = get_permalink(get_option('page_for_posts'));
36
-			}else{
36
+			} else {
37 37
 				$archive_link = home_url();
38 38
 			}
39
-		}else{
39
+		} else {
40 40
 			$archive_link = get_post_format_link($format);
41 41
 		}
42 42
 		$format = lsx_translate_format_to_fontawesome($format);
43 43
 		?>
44 44
 
45 45
 		<h1 class="entry-title">
46
-			<?php if ( has_post_thumbnail() ) { ?>
46
+			<?php if (has_post_thumbnail()) { ?>
47 47
 				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo $format ?>"></a>
48 48
 			<?php } else { ?>
49 49
 				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo $format ?>"></a>
50 50
 			<?php } ?>
51 51
 
52
-			<?php if ( has_post_format( array('link') ) ) { ?>
52
+			<?php if (has_post_format(array('link'))) { ?>
53 53
 				<a href="<?php echo lsx_get_my_url(); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
54 54
 			<?php } else { ?>
55 55
 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
56 56
 			<?php } ?>
57 57
 
58
-			<?php if ( is_sticky() ) { ?>
59
-				<span class="label label-default label-sticky"><?php _e('Featured','lsx'); ?></span>
58
+			<?php if (is_sticky()) { ?>
59
+				<span class="label label-default label-sticky"><?php _e('Featured', 'lsx'); ?></span>
60 60
 			<?php } ?>
61 61
 		</h1>
62 62
 
@@ -65,39 +65,39 @@  discard block
 block discarded – undo
65 65
 		</div><!-- .entry-meta -->
66 66
 	</header><!-- .entry-header -->	
67 67
 
68
-	<?php if ( !is_singular() && !has_post_format( array('video', 'audio', 'quote', 'link') ) ) : // Only display Excerpts for Search and Archives ?>
68
+	<?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link'))) : // Only display Excerpts for Search and Archives ?>
69 69
 		<div class="entry-summary"> 
70 70
 			<?php the_excerpt(); ?>
71 71
 		</div><!-- .entry-summary -->
72
-	<?php elseif ( has_post_format( array('link') ) ) : ?>
72
+	<?php elseif (has_post_format(array('link'))) : ?>
73 73
 
74 74
 	<?php else : ?>
75 75
 		<div class="entry-content">
76 76
 			<?php
77 77
 				the_content();
78 78
 
79
-				wp_link_pages( array(
79
+				wp_link_pages(array(
80 80
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
81 81
 					'after' => '</div></div>',
82 82
 					'link_before' => '<span>',
83 83
 					'link_after' => '</span>'
84
-				) );
84
+				));
85 85
 			?>
86 86
 		</div><!-- .entry-content -->
87 87
 	<?php endif; ?>
88 88
 	
89
-	<?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?>
89
+	<?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?>
90 90
 		<div class="post-tags-wrapper">
91
-			<?php if ( has_tag() ) : ?>
91
+			<?php if (has_tag()) : ?>
92 92
 				<div class="post-tags">
93
-					<span><?php _e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
93
+					<span><?php _e('Tagged as:', 'lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
94 94
 				</div>
95 95
 			<?php endif ?>
96 96
 			
97
-			<?php if ( comments_open() && ! empty( get_comments_number() ) ) : ?>
97
+			<?php if (comments_open() && ! empty(get_comments_number())) : ?>
98 98
 				<div class="post-comments">
99 99
 					<a href="<?php the_permalink() ?>#comments">
100
-						<?php printf( _n( 'One Comment', '%1$s Comments', get_comments_number(), 'lsx' ), number_format_i18n( get_comments_number() ) ) ?>
100
+						<?php printf(_n('One Comment', '%1$s Comments', get_comments_number(), 'lsx'), number_format_i18n(get_comments_number())) ?>
101 101
 					</a>
102 102
 				</div>
103 103
 			<?php endif ?>
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
 
110 110
 	<div class="clearfix"></div>
111 111
 
112
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
112
+	<?php edit_post_link(__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
113 113
 
114
-	<?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?>
114
+	<?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?>
115 115
 		<div class="lsx-breaker"></div>
116 116
 	<?php } ?>
117 117
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
 			$show_on_front = get_option('show_on_front','posts');
34 34
 			if('page' == $show_on_front){
35 35
 				$archive_link = get_permalink(get_option('page_for_posts'));
36
-			}else{
36
+			} else{
37 37
 				$archive_link = home_url();
38 38
 			}
39
-		}else{
39
+		} else{
40 40
 			$archive_link = get_post_format_link($format);
41 41
 		}
42 42
 		$format = lsx_translate_format_to_fontawesome($format);
@@ -71,10 +71,12 @@  discard block
 block discarded – undo
71 71
 		</div><!-- .entry-summary -->
72 72
 	<?php elseif ( has_post_format( array('link') ) ) : ?>
73 73
 
74
-	<?php else : ?>
74
+	<?php else {
75
+	: ?>
75 76
 		<div class="entry-content">
76 77
 			<?php
77 78
 				the_content();
79
+}
78 80
 
79 81
 				wp_link_pages( array(
80 82
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
Please login to merge, or discard this patch.
inc/config.php 2 patches
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 /**
5 5
  * Theme Configuration File
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * @package lsx
9 9
  */
10 10
 
11
-if ( ! function_exists( 'lsx_setup' ) ) :
11
+if ( ! function_exists('lsx_setup')) :
12 12
 /**
13 13
  * Sets up theme defaults and registers support for various WordPress features.
14 14
  *
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 function lsx_setup() {
20 20
 	global $content_width;
21 21
 	
22
-	load_theme_textdomain( 'lsx', get_template_directory() . '/languages' );
22
+	load_theme_textdomain('lsx', get_template_directory() . '/languages');
23 23
 
24 24
 	$args = array(
25 25
 			'header-text' => array(
@@ -28,50 +28,50 @@  discard block
 block discarded – undo
28 28
 			),
29 29
 			'size' => 'medium',
30 30
 	);
31
-	add_theme_support( 'site-logo', $args );
31
+	add_theme_support('site-logo', $args);
32 32
 	
33
-	add_theme_support( 'custom-logo', array(
33
+	add_theme_support('custom-logo', array(
34 34
 			'height'      => 50,
35 35
 			'width'       => 150,
36 36
 			'flex-width' => true,
37 37
 			'flex-height' => true,
38
-	) );
38
+	));
39 39
 	
40
-	add_theme_support( 'automatic-feed-links' );
41
-	add_theme_support( 'title-tag' );
42
-	add_theme_support( 'post-thumbnails' );
43
-	add_theme_support( 'post-formats', array('image', 'video', 'gallery', 'audio', 'link', 'quote', 'aside') );
40
+	add_theme_support('automatic-feed-links');
41
+	add_theme_support('title-tag');
42
+	add_theme_support('post-thumbnails');
43
+	add_theme_support('post-formats', array('image', 'video', 'gallery', 'audio', 'link', 'quote', 'aside'));
44 44
 
45 45
 	// This theme uses wp_nav_menu() in one location.
46
-	register_nav_menus( array(
47
-		'primary' => __( 'Primary Menu', 'lsx' ),
48
-		'top-menu'=> __( 'Top Menu' , 'lsx' ),
49
-		'social'=> __( 'Social Menu' , 'lsx' ),
50
-		'footer'=> __( 'Footer Menu' , 'lsx' )
51
-	) );	
46
+	register_nav_menus(array(
47
+		'primary' => __('Primary Menu', 'lsx'),
48
+		'top-menu'=> __('Top Menu', 'lsx'),
49
+		'social'=> __('Social Menu', 'lsx'),
50
+		'footer'=> __('Footer Menu', 'lsx')
51
+	));	
52 52
 
53 53
 	//Set the content width
54 54
 	$content_width = 1140;
55 55
 	
56
-	add_editor_style( get_template_directory_uri() . '/css/editor-style.css' );	
57
-	add_theme_support( 'html5', array( 'caption' ) );
56
+	add_editor_style(get_template_directory_uri() . '/css/editor-style.css');	
57
+	add_theme_support('html5', array('caption'));
58 58
 
59
-	add_theme_support( 'woocommerce' );	
60
-	add_theme_support( 'sensei' );
59
+	add_theme_support('woocommerce');	
60
+	add_theme_support('sensei');
61 61
 }
62 62
 endif; // lsx_setup
63
-add_action( 'after_setup_theme', 'lsx_setup' );
63
+add_action('after_setup_theme', 'lsx_setup');
64 64
 
65 65
 /**
66 66
  * Removes the "Custom Fields" meta box.
67 67
  */
68 68
 function lsx_remove_meta_boxes() {
69 69
 	$post_types = get_post_types();
70
-	foreach($post_types as $post_type){
71
-		remove_meta_box( 'postcustom' , $post_type , 'normal' ); 
70
+	foreach ($post_types as $post_type) {
71
+		remove_meta_box('postcustom', $post_type, 'normal'); 
72 72
 	}
73 73
 }
74
-add_action( 'admin_menu' , 'lsx_remove_meta_boxes' );
74
+add_action('admin_menu', 'lsx_remove_meta_boxes');
75 75
 
76 76
 /**
77 77
  * Overwrite the $content_width var, based on the layout of the page.
@@ -83,34 +83,34 @@  discard block
 block discarded – undo
83 83
 function lsx_process_content_width() {
84 84
 	global $content_width;
85 85
 
86
-	if(
86
+	if (
87 87
 		is_page_template('page-templates/template-portfolio.php') ||
88 88
 		is_page_template('page-templates/template-front-page.php') ||
89 89
 		is_page_template('page-templates/template-full-width.php') ||
90 90
 		is_post_type_archive('jetpack-portfolio') ||
91
-		is_tax(array('jetpack-portfolio-type','jetpack-portfolio-tag')) ||
91
+		is_tax(array('jetpack-portfolio-type', 'jetpack-portfolio-tag')) ||
92 92
 		is_singular('jetpack-portfolio')
93
-	){
93
+	) {
94 94
 		$content_width = 1140;
95 95
 	}
96 96
 }
97
-add_action('wp_head','lsx_process_content_width');
97
+add_action('wp_head', 'lsx_process_content_width');
98 98
 
99 99
 /**
100 100
  * Disable the comments form by default for the page post type.
101 101
  * @package	lsx
102 102
  * @subpackage config
103 103
  */
104
-function lsx_page_comments_off( $data ) {
104
+function lsx_page_comments_off($data) {
105 105
 
106
-	if( $data['post_type'] == 'page' && $data['post_status'] == 'auto-draft' && $data['post_title'] == __('Auto Draft','lsx') ) {
106
+	if ($data['post_type'] == 'page' && $data['post_status'] == 'auto-draft' && $data['post_title'] == __('Auto Draft', 'lsx')) {
107 107
 		$data['comment_status'] = 0;
108 108
 		$data['ping_status'] = 0;
109 109
 	}
110 110
 
111 111
 	return $data;
112 112
 }
113
-add_filter( 'wp_insert_post_data', 'lsx_page_comments_off' );
113
+add_filter('wp_insert_post_data', 'lsx_page_comments_off');
114 114
 
115 115
 /**
116 116
  * Disable the comments form by default for the page post type.
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
  */
120 120
 function lsx_is_legacy($data) {
121 121
 
122
-	if( $data['post_type'] == 'page' && $data['post_status'] == 'auto-draft' && $data['post_title'] == __('Auto Draft','lsx') ) {
122
+	if ($data['post_type'] == 'page' && $data['post_status'] == 'auto-draft' && $data['post_title'] == __('Auto Draft', 'lsx')) {
123 123
 		$data['comment_status'] = 0;
124 124
 		$data['ping_status'] = 0;
125 125
 	}
126 126
 
127 127
 	return $data;
128 128
 }
129
-add_filter( 'wp_insert_post_data', 'lsx_page_comments_off' );
129
+add_filter('wp_insert_post_data', 'lsx_page_comments_off');
130 130
 
131 131
 /**
132 132
  * Run the init command
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
  * @subpackage config
135 135
  */
136 136
 function lsx_init() {
137
-	if(class_exists('WooCommerce')){
138
-		remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
137
+	if (class_exists('WooCommerce')) {
138
+		remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
139 139
 	}
140 140
 }
141
-add_action( 'init', 'lsx_init',100 );
141
+add_action('init', 'lsx_init', 100);
142 142
 
143 143
 /**
144 144
  * Run on the wp_head 
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
  */
148 148
 function lsx_wp_head() {
149 149
 
150
-	$layout = get_theme_mod('lsx_layout','2cr');
151
-	$layout = apply_filters( 'lsx_layout', $layout );
150
+	$layout = get_theme_mod('lsx_layout', '2cr');
151
+	$layout = apply_filters('lsx_layout', $layout);
152 152
 
153
-	if('1c' === $layout && (is_author() || is_search() || (is_post_type_archive(array('post','page','jetpack-portfolio')) && !is_post_type_archive('tribe_events')) || is_tag() || is_category() || is_date() || is_tax('post_format')) ){
154
-		remove_action('lsx_content_top', 'lsx_breadcrumbs', 100 );
153
+	if ('1c' === $layout && (is_author() || is_search() || (is_post_type_archive(array('post', 'page', 'jetpack-portfolio')) && ! is_post_type_archive('tribe_events')) || is_tag() || is_category() || is_date() || is_tax('post_format'))) {
154
+		remove_action('lsx_content_top', 'lsx_breadcrumbs', 100);
155 155
 	}
156 156
 }
157
-add_action( 'wp_head', 'lsx_wp_head',100 );
157
+add_action('wp_head', 'lsx_wp_head', 100);
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	return;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Customize Swatch Control Class
Please login to merge, or discard this patch.