Passed
Branch master (2d09fd)
by Ashley
03:51
created
archive-jetpack-portfolio.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,23 +10,23 @@  discard block
 block discarded – undo
10 10
 
11 11
 			<?php lsx_content_top(); ?>
12 12
 			
13
-			<?php if(is_tax()){ ?> 
13
+			<?php if (is_tax()) { ?> 
14 14
 				<div class="entry-content">		
15 15
 					<?php the_archive_description(); ?>
16 16
 				</div>
17 17
 			<?php } ?>
18 18
 			
19 19
 			<?php
20
-				if ( post_type_exists( 'jetpack-portfolio' ) && have_posts() ) :
20
+				if (post_type_exists('jetpack-portfolio') && have_posts()) :
21 21
 			?>
22 22
 				
23
-				<?php if(!is_tax()){ lsx_portfolio_sorter(); } ?>
23
+				<?php if ( ! is_tax()) { lsx_portfolio_sorter(); } ?>
24 24
 
25 25
 				<div class="filter-items-wrapper lsx-portfolio-wrapper">
26 26
 					<div id="portfolio-infinite-scroll-wrapper" class="filter-items-container lsx-portfolio masonry">
27
-						<?php while ( have_posts() ) : the_post(); ?>
27
+						<?php while (have_posts()) : the_post(); ?>
28 28
 
29
-							<?php get_template_part( 'content', 'portfolio' ); ?>
29
+							<?php get_template_part('content', 'portfolio'); ?>
30 30
 
31 31
 						<?php endwhile; ?>
32 32
 					</div>
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
 
41 41
 				<section class="no-results not-found">
42 42
 					<header class="page-header">
43
-						<h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); ?></h1>
43
+						<h1 class="page-title"><?php _e('Nothing Found', 'lsx'); ?></h1>
44 44
 					</header><!-- .page-header -->
45 45
 
46 46
 					<div class="page-content">
47
-						<?php if ( current_user_can( 'publish_posts' ) ) : ?>
47
+						<?php if (current_user_can('publish_posts')) : ?>
48 48
 
49
-							<p><?php printf( __( 'Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx' ), esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ); ?></p>
49
+							<p><?php printf(__('Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx'), esc_url(admin_url('post-new.php?post_type=jetpack-portfolio'))); ?></p>
50 50
 
51 51
 						<?php else : ?>
52 52
 
53
-							<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' ); ?></p>
53
+							<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx'); ?></p>
54 54
 							<?php get_search_form(); ?>
55 55
 
56 56
 						<?php endif; ?>
Please login to merge, or discard this patch.
archive.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
 
20 20
 		<?php lsx_content_top(); ?>
21 21
 
22
-		<?php if ( have_posts() ) : ?>
22
+		<?php if (have_posts()) : ?>
23 23
 			
24 24
 			<?php 
25
-			$layout = get_theme_mod('lsx_layout','2cr');
26
-			$layout = apply_filters( 'lsx_layout', $layout );
27
-			if('1c' === $layout && !is_post_type_archive('tribe_events')){
25
+			$layout = get_theme_mod('lsx_layout', '2cr');
26
+			$layout = apply_filters('lsx_layout', $layout);
27
+			if ('1c' === $layout && ! is_post_type_archive('tribe_events')) {
28 28
 				lsx_breadcrumbs();
29 29
 			}
30 30
 			?>
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 			?>			
34 34
 
35 35
 			<?php /* Start the Loop */ ?>
36
-			<?php while ( have_posts() ) : the_post(); ?>
36
+			<?php while (have_posts()) : the_post(); ?>
37 37
 
38 38
 				<?php
39 39
 					/* Include the Post-Format-specific template for the content.
40 40
 					 * If you want to override this in a child theme, then include a file
41 41
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
42 42
 					 */
43
-					get_template_part( 'content', get_post_format() );
43
+					get_template_part('content', get_post_format());
44 44
 				?>
45 45
 
46 46
 			<?php endwhile; ?>
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 		<?php else : ?>
51 51
 
52
-			<?php get_template_part( 'content', 'none' ); ?>
52
+			<?php get_template_part('content', 'none'); ?>
53 53
 
54 54
 		<?php endif; ?>
55 55
 
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@  discard block
 block discarded – undo
12 12
 <html <?php language_attributes(); ?>>
13 13
 <head>
14 14
 <?php lsx_head_top(); ?>
15
-<meta charset="<?php bloginfo( 'charset' ); ?>">
15
+<meta charset="<?php bloginfo('charset'); ?>">
16 16
 <link rel="profile" href="http://gmpg.org/xfn/11">
17
-<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
17
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
18 18
 <?php lsx_head_bottom(); ?>
19 19
 <?php wp_head(); ?>
20 20
 </head>
21
-<body <?php body_class( 'lsx' ); ?>>
21
+<body <?php body_class('lsx'); ?>>
22 22
 <?php lsx_body_top(); ?>
23 23
 
24
-<?php if ( !is_singular('landing-page') ) { ?>
24
+<?php if ( ! is_singular('landing-page')) { ?>
25 25
 
26 26
 	<?php lsx_header_before(); ?>
27 27
 		 	<header class="<?php lsx_header_classes(); ?>">
@@ -57,17 +57,17 @@  discard block
 block discarded – undo
57 57
 			    </div>
58 58
 
59 59
 			    <div class="header-links">
60
-			    	<strong><?php _e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong>
60
+			    	<strong><?php _e('Get your Tourism Establishment Online', 'lsx'); ?></strong>
61 61
 			    	
62 62
 			    	<?php 
63
-			    	if(is_singular('landing-page')){ 
64
-			    			$email_address = get_post_meta(get_the_ID(),'email_address',true);
65
-			    			if(false === $email_address){
63
+			    	if (is_singular('landing-page')) { 
64
+			    			$email_address = get_post_meta(get_the_ID(), 'email_address', true);
65
+			    			if (false === $email_address) {
66 66
 								$email_address = '[email protected]';
67 67
 							}
68 68
 			    	} ?>
69 69
 			    	
70
-			    	<span class="email-address"><?php _e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo $email_address; ?>"><?php echo $email_address; ?></a></span>
70
+			    	<span class="email-address"><?php _e('Questions? Email Us: ', 'lsx'); ?><a href="mailto:<?php echo $email_address; ?>"><?php echo $email_address; ?></a></span>
71 71
 			    </div>
72 72
 		  	</div>
73 73
 
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.
content-single.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 block discarded – undo
12 12
 
13 13
 	<?php
14 14
 	$format = get_post_format();
15
-	if ( false === $format ) {
15
+	if (false === $format) {
16 16
 		$format = 'standard';
17 17
 	}
18 18
 	$format_link = get_post_format_link($format);
19 19
 	$format = lsx_translate_format_to_fontawesome($format);
20 20
 	?>
21 21
 
22
-	<?php if ( ! is_single() ) { ?>
22
+	<?php if ( ! is_single()) { ?>
23 23
 		<header class="entry-header">
24 24
 			<h1 class="entry-title">
25
-				<?php if ( has_post_thumbnail() ) { ?>
25
+				<?php if (has_post_thumbnail()) { ?>
26 26
 					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo $format ?>"></a>
27 27
 				<?php } else { ?>
28 28
 					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo $format ?>"></a>
@@ -39,37 +39,37 @@  discard block
 block discarded – undo
39 39
 
40 40
 	<div class="entry-content">
41 41
 		<?php
42
-		if ( ! is_singular() ) {
42
+		if ( ! is_singular()) {
43 43
 			the_excerpt();
44 44
 		} else {
45 45
 			the_content();
46 46
 
47
-			wp_link_pages( array(
47
+			wp_link_pages(array(
48 48
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
49 49
 				'after' => '</div></div>',
50 50
 				'link_before' => '<span>',
51 51
 				'link_after' => '</span>'
52
-			) );
52
+			));
53 53
 		} ?>
54 54
 	</div><!-- .entry-content -->
55 55
 
56 56
 	<footer class="footer-meta">
57
-		<?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
58 58
 			<div class="post-tags-wrapper">
59
-				<?php if ( has_tag() ) : ?>
59
+				<?php if (has_tag()) : ?>
60 60
 					<div class="post-tags">
61
-						<span><?php _e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
61
+						<span><?php _e('Tagged as:', 'lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
62 62
 					</div>
63 63
 				<?php endif ?>
64 64
 
65 65
 				<?php  
66
-					if ( function_exists( 'sharing_display' ) ) {
67
-						sharing_display( '', true );
66
+					if (function_exists('sharing_display')) {
67
+						sharing_display('', true);
68 68
 					}
69 69
 					
70
-					if ( class_exists( 'Jetpack_Likes' ) ) {
70
+					if (class_exists('Jetpack_Likes')) {
71 71
 						$custom_likes = new Jetpack_Likes;
72
-						echo $custom_likes->post_likes( '' );
72
+						echo $custom_likes->post_likes('');
73 73
 					}
74 74
 				?>
75 75
 			</div>
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 
78 78
 		<?php
79 79
 			// If comments are open or we have at least one comment, load up the comment template
80
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
81
-				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo get_comments_number() ?></strong> <?php _e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a>
80
+			if (comments_open() || '0' != get_comments_number()) : ?>
81
+				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo get_comments_number() ?></strong> <?php _e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a>
82 82
 
83 83
 				<div class="collapse" id="comments-collapse">
84 84
 					<?php 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		<?php endif; ?>
89 89
 	</footer><!-- .footer-meta -->
90 90
 	
91
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
91
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
92 92
 
93 93
 	<?php lsx_portfolio_related_posts(); ?>
94 94
 
Please login to merge, or discard this patch.
sidebar.php 1 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 ( $layout !== '1c' ) : ?>
29
+	if ($layout !== '1c') : ?>
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 _e( 'Archives', 'lsx' ); ?></h1>
56
+				<h1 class="widget-title"><?php _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 _e( 'Meta', 'lsx' ); ?></h1>
63
+				<h1 class="widget-title"><?php _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 1 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 ( $layout !== '1c' ) : ?>
19
+	if ($layout !== '1c') : ?>
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 _e('Categories','lsx'); ?></h2>
26
+		<h2><?php _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-archives.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  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 18
 				<?php lsx_entry_before(); ?>
19 19
 
@@ -22,28 +22,28 @@  discard block
 block discarded – undo
22 22
 					<?php lsx_entry_top(); ?>
23 23
 
24 24
 					<div class="entry-content">
25
-						<h2><?php _e( 'The Last 30 Posts', 'lsx' ); ?></h3>
25
+						<h2><?php _e('The Last 30 Posts', 'lsx'); ?></h3>
26 26
                         <ul>
27
-                            <?php $loop = new WP_Query( array( 'posts_per_page' => 30 ) ); ?>
28
-                            <?php if ( $loop->have_posts() ) { while ( $loop->have_posts() ) { $loop->the_post(); ?>
27
+                            <?php $loop = new WP_Query(array('posts_per_page' => 30)); ?>
28
+                            <?php if ($loop->have_posts()) { while ($loop->have_posts()) { $loop->the_post(); ?>
29 29
                                 <?php $loop->is_home = false; ?>
30
-                                <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo $post->comment_count; ?> <?php _e( 'comments', 'lsx' ); ?></li>
30
+                                <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo $post->comment_count; ?> <?php _e('comments', 'lsx'); ?></li>
31 31
                             <?php } } wp_reset_postdata(); ?>
32 32
                         </ul>
33 33
 
34
-                        <h2><?php _e( 'Categories', 'lsx' ); ?></h3>
34
+                        <h2><?php _e('Categories', 'lsx'); ?></h3>
35 35
 
36 36
                         <ul>
37
-                            <?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?>
37
+                            <?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?>
38 38
                         </ul>
39 39
 
40
-                        <h2><?php _e( 'Monthly Archives', 'lsx' ); ?></h3>
40
+                        <h2><?php _e('Monthly Archives', 'lsx'); ?></h3>
41 41
 
42 42
                         <ul>
43
-                            <?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?>
43
+                            <?php wp_get_archives('type=monthly&show_post_count=1'); ?>
44 44
                         </ul>
45 45
 					</div><!-- .entry-content -->
46
-					<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
46
+					<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
47 47
 
48 48
 					<?php lsx_entry_bottom(); ?>
49 49
 					
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.