Completed
Push — master ( 2fcc6a...e555ed )
by
unknown
03:04
created
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.
archive.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,12 @@
 block discarded – undo
44 44
 			
45 45
 			<?php lsx_paging_nav(); ?>
46 46
 
47
-		<?php else : ?>
47
+		<?php else {
48
+	: ?>
48 49
 
49
-			<?php get_template_part( 'content', 'none' ); ?>
50
+			<?php get_template_part( 'content', 'none' );
51
+}
52
+?>
50 53
 
51 54
 		<?php endif; ?>
52 55
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  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
 
@@ -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.
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.
mobile-templates/single-product.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.
mobile-templates/single-jetpack-portfolio.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.
mobile-templates/single-post.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.
index.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,12 @@
 block discarded – undo
44 44
 			
45 45
 			<?php lsx_paging_nav(); ?>
46 46
 
47
-		<?php else : ?>
47
+		<?php else {
48
+	: ?>
48 49
 
49
-			<?php get_template_part( 'content', 'none' ); ?>
50
+			<?php get_template_part( 'content', 'none' );
51
+}
52
+?>
50 53
 
51 54
 		<?php endif; ?>
52 55
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<?php lsx_content_wrap_before(); ?>
17 17
 
18
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
18
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
19 19
 
20 20
 		<?php lsx_content_before(); ?>
21 21
 
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
 		
24 24
 		<?php lsx_content_top(); ?>
25 25
 
26
-		<?php if ( have_posts() ) : ?>
26
+		<?php if (have_posts()) : ?>
27 27
 
28 28
 			<?php /* Start the Loop */ ?>
29
-			<?php while ( have_posts() ) : the_post(); ?>
29
+			<?php while (have_posts()) : the_post(); ?>
30 30
 
31 31
 				<?php
32 32
 					/* Include the Post-Format-specific template for the content.
33 33
 					 * If you want to override this in a child theme, then include a file
34 34
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
35 35
 					 */
36
-					get_template_part( 'content', get_post_format() );
36
+					get_template_part('content', get_post_format());
37 37
 				?>
38 38
 
39 39
 			<?php endwhile; ?>
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 			
43 43
 		<?php else : ?>
44 44
 
45
-			<?php get_template_part( 'content', 'none' ); ?>
45
+			<?php get_template_part('content', 'none'); ?>
46 46
 
47 47
 		<?php endif; ?>
48 48
 
@@ -56,5 +56,5 @@  discard block
 block discarded – undo
56 56
 
57 57
 	<?php lsx_content_wrap_after(); ?>
58 58
 
59
-<?php get_sidebar( 'sidebar' ); ?>
59
+<?php get_sidebar('sidebar'); ?>
60 60
 <?php get_footer();
61 61
\ No newline at end of file
Please login to merge, or discard this patch.
inc/woocommerce.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
 add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
70 70
 
71 71
 function lsx_woocommerce_styles() {
72
-    wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' );
73
-    wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' );
74
-    wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' );
72
+	wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' );
73
+	wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' );
74
+	wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' );
75 75
 }
76 76
 add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' );
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
 /*
10 10
  * Hooks
11 11
  */
12
-remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
13
-remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
12
+remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
13
+remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
14 14
 
15 15
 add_action('woocommerce_before_main_content', 'lsx_woocommerce_before_content', 10);
16 16
 add_action('woocommerce_after_main_content', 'lsx_woocommerce_after_content', 10);
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
  * @subpackage woocommerce
26 26
  * @category 	layout
27 27
  */
28
-function lsx_woocommerce_before_content(){ ?>
28
+function lsx_woocommerce_before_content() { ?>
29 29
 	<?php lsx_content_wrap_before(); ?>
30 30
 
31
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
31
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
32 32
 
33 33
 		<?php lsx_content_before(); ?>
34 34
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
  * @subpackage woocommerce
44 44
  * @category 	layout
45 45
  */
46
-function lsx_woocommerce_after_content(){ ?>
46
+function lsx_woocommerce_after_content() { ?>
47 47
 		<?php lsx_content_bottom(); ?>
48 48
 
49 49
 		</main><!-- #main -->
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
  * @subpackage woocommerce
67 67
  * @category 	styles
68 68
  */
69
-add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
69
+add_filter('woocommerce_enqueue_styles', '__return_empty_array');
70 70
 
71 71
 function lsx_woocommerce_styles() {
72
-    wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' );
73
-    wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' );
74
-    wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' );
72
+    wp_enqueue_style('woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all');
73
+    wp_enqueue_style('woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array('woocommerce-layout'), WC_VERSION, 'only screen and (max-width: 767px)');
74
+    wp_enqueue_style('woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all');
75 75
 }
76
-add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' );
77 76
\ No newline at end of file
77
+add_action('wp_enqueue_scripts', 'lsx_woocommerce_styles');
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
comment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php 
2
-	if ( isset( $GLOBALS['comment_depth'] ) ) {
3
-		$depth = intval( $GLOBALS['comment_depth'] );
2
+	if (isset($GLOBALS['comment_depth'])) {
3
+		$depth = intval($GLOBALS['comment_depth']);
4 4
 	} else {
5 5
 		$depth = 1;
6 6
 	}
7 7
 
8
-	$max_depth = intval( get_option( 'thread_comments_depth' ) );
8
+	$max_depth = intval(get_option('thread_comments_depth'));
9 9
 ?>
10 10
 
11 11
 <?php echo get_avatar($comment, '64'); ?>
12 12
 <div class="media-body">
13 13
   <h4 class="media-heading"><?php echo get_comment_author_link(); ?></h4>
14
-  <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(esc_html__('%1$s on %2$s', 'lsx'), get_comment_date(),  get_comment_time()); ?></a></time>
14
+  <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(esc_html__('%1$s on %2$s', 'lsx'), get_comment_date(), get_comment_time()); ?></a></time>
15 15
   <?php edit_comment_link(esc_html__('(Edit)', 'lsx'), '', ''); ?>
16 16
   
17 17
   <?php if ($comment->comment_approved == '0') : ?>
@@ -21,4 +21,4 @@  discard block
 block discarded – undo
21 21
 <?php endif; ?>
22 22
 
23 23
 <?php comment_text(); ?>
24
-<?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $max_depth ) );
25 24
\ No newline at end of file
25
+<?php comment_reply_link(array('depth' => $depth, 'max_depth' => $max_depth));
26 26
\ No newline at end of file
Please login to merge, or discard this patch.