Passed
Push — dependabot/composer/wpackagist... ( e0dc0f )
by
unknown
04:50
created
comment.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( isset( $GLOBALS['comment_depth'] ) ) {
9
-	$depth = intval( $GLOBALS['comment_depth'] );
9
+     $depth = intval( $GLOBALS['comment_depth'] );
10 10
 } else {
11
-	$depth = 1;
11
+     $depth = 1;
12 12
 }
13 13
 
14 14
 $max_depth = intval( get_option( 'thread_comments_depth' ) );
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 	<time datetime="<?php echo comment_date( 'c' ); ?>">
22 22
 		<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
23 23
 			<?php
24
-				printf(
25
-					/* Translators: 1: post date, 2: post time */
26
-					esc_html__( '%1$s on %2$s', 'lsx' ),
27
-					get_comment_date(),
28
-					get_comment_time()
29
-				);
30
-				?>
24
+                    printf(
25
+                         /* Translators: 1: post date, 2: post time */
26
+                         esc_html__( '%1$s on %2$s', 'lsx' ),
27
+                         get_comment_date(),
28
+                         get_comment_time()
29
+                    );
30
+                    ?>
31 31
 		</a>
32 32
 	</time>
33 33
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 comment_text();
44 44
 
45 45
 comment_reply_link(
46
-	array(
47
-		'depth'     => $depth,
48
-		'max_depth' => $max_depth,
49
-	)
46
+     array(
47
+          'depth'     => $depth,
48
+          'max_depth' => $max_depth,
49
+     )
50 50
 );
Please login to merge, or discard this patch.
partials/content-post.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<div class="entry-content">
17 17
 		<?php
18
-			the_content();
19
-
20
-			wp_link_pages( array(
21
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
-				'after'       => '</div></div>',
23
-				'link_before' => '<span>',
24
-				'link_after'  => '</span>',
25
-			) );
26
-		?>
18
+               the_content();
19
+
20
+               wp_link_pages( array(
21
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
+                    'after'       => '</div></div>',
23
+                    'link_before' => '<span>',
24
+                    'link_after'  => '</span>',
25
+               ) );
26
+          ?>
27 27
 	</div><!-- .entry-content -->
28 28
 
29 29
 	<footer class="footer-meta clearfix">
@@ -32,19 +32,19 @@  discard block
 block discarded – undo
32 32
 				<?php lsx_content_post_tags(); ?>
33 33
 
34 34
 				<?php
35
-				if ( class_exists( 'LSX_Sharing' ) ) {
36
-					lsx_content_sharing();
37
-				} else {
38
-					if ( function_exists( 'sharing_display' ) ) {
39
-						sharing_display( '', true );
40
-					}
41
-
42
-					if ( class_exists( 'Jetpack_Likes' ) ) {
43
-						$custom_likes = new Jetpack_Likes();
44
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
-					}
46
-				}
47
-				?>
35
+                    if ( class_exists( 'LSX_Sharing' ) ) {
36
+                         lsx_content_sharing();
37
+                    } else {
38
+                         if ( function_exists( 'sharing_display' ) ) {
39
+                              sharing_display( '', true );
40
+                         }
41
+
42
+                         if ( class_exists( 'Jetpack_Likes' ) ) {
43
+                              $custom_likes = new Jetpack_Likes();
44
+                              echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
+                         }
46
+                    }
47
+                    ?>
48 48
 		<?php endif ?>
49 49
 	</footer><!-- .footer-meta -->
50 50
 
Please login to merge, or discard this patch.
partials/content-widget-product.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
 
17 17
 // Exit if accessed directly.
18 18
 if ( ! defined( 'ABSPATH' ) ) {
19
-	exit;
19
+     exit;
20 20
 }
21 21
 
22 22
 global $product;
23 23
 
24 24
 if ( ! is_a( $product, 'WC_Product' ) ) {
25
-	return;
25
+     return;
26 26
 } ?>
27 27
 
28 28
 <div class="lsx-woocommerce-slot">
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 	<?php endif; ?>
44 44
 
45 45
 	<?php
46
-	$price_html = $product->get_price_html();
47
-	if ( $price_html ) : ?>
46
+     $price_html = $product->get_price_html();
47
+     if ( $price_html ) : ?>
48 48
 		<div class="lsx-woocommerce-price">
49 49
 			<?php echo wp_kses_post( $price_html ); ?>
50 50
 		</div>
Please login to merge, or discard this patch.
partials/content-page-cover.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -14,38 +14,38 @@  discard block
 block discarded – undo
14 14
 	<?php //lsx_entry_top(); ?>
15 15
 
16 16
 	<?php
17
-	// On the cover page template, output the cover header.
18
-	$cover_header_style   = '';
19
-	$cover_header_classes = '';
20
-
21
-	$color_overlay_style   = '';
22
-	$color_overlay_classes = '';
23
-
24
-	$image_url = ! post_password_required() ? get_the_post_thumbnail_url( get_the_ID(), 'full' ) : '';
25
-
26
-	if ( $image_url ) {
27
-		$cover_header_style   = ' style="background-image: url( ' . esc_url( $image_url ) . ' );"';
28
-		$cover_header_classes = ' bg-image';
29
-	}
30
-
31
-	// Get the color used for the color overlay.
32
-	$color_overlay_color = get_theme_mod( 'lsx_cover_template_overlay_background_color' );
33
-	if ( $color_overlay_color ) {
34
-		$color_overlay_style = ' style="color: ' . esc_attr( $color_overlay_color ) . ';"';
35
-	} else {
36
-		$color_overlay_style = '';
37
-	}
38
-
39
-	// Get the fixed background attachment option.
40
-	if ( get_theme_mod( 'lsx_cover_template_fixed_background', true ) ) {
41
-		$cover_header_classes .= ' bg-attachment-fixed';
42
-	}
43
-
44
-	// Get the opacity of the color overlay.
45
-	$color_overlay_opacity  = get_theme_mod( 'lsx_cover_template_overlay_opacity' );
46
-	$color_overlay_opacity  = ( false === $color_overlay_opacity ) ? 80 : $color_overlay_opacity;
47
-	$color_overlay_classes .= ' opacity-' . $color_overlay_opacity;
48
-	?>
17
+     // On the cover page template, output the cover header.
18
+     $cover_header_style   = '';
19
+     $cover_header_classes = '';
20
+
21
+     $color_overlay_style   = '';
22
+     $color_overlay_classes = '';
23
+
24
+     $image_url = ! post_password_required() ? get_the_post_thumbnail_url( get_the_ID(), 'full' ) : '';
25
+
26
+     if ( $image_url ) {
27
+          $cover_header_style   = ' style="background-image: url( ' . esc_url( $image_url ) . ' );"';
28
+          $cover_header_classes = ' bg-image';
29
+     }
30
+
31
+     // Get the color used for the color overlay.
32
+     $color_overlay_color = get_theme_mod( 'lsx_cover_template_overlay_background_color' );
33
+     if ( $color_overlay_color ) {
34
+          $color_overlay_style = ' style="color: ' . esc_attr( $color_overlay_color ) . ';"';
35
+     } else {
36
+          $color_overlay_style = '';
37
+     }
38
+
39
+     // Get the fixed background attachment option.
40
+     if ( get_theme_mod( 'lsx_cover_template_fixed_background', true ) ) {
41
+          $cover_header_classes .= ' bg-attachment-fixed';
42
+     }
43
+
44
+     // Get the opacity of the color overlay.
45
+     $color_overlay_opacity  = get_theme_mod( 'lsx_cover_template_overlay_opacity' );
46
+     $color_overlay_opacity  = ( false === $color_overlay_opacity ) ? 80 : $color_overlay_opacity;
47
+     $color_overlay_classes .= ' opacity-' . $color_overlay_opacity;
48
+     ?>
49 49
 
50 50
 	<div class="cover-header <?php echo esc_html( $cover_header_classes ); ?>"<?php echo wp_kses_post( $cover_header_style ); ?>>
51 51
 		<div class="cover-header-inner-wrapper">
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 
58 58
 							<?php
59 59
 
60
-							if ( has_category() ) {
61
-								?>
60
+                                   if ( has_category() ) {
61
+                                        ?>
62 62
 
63 63
 								<div class="entry-categories">
64 64
 									<div class="entry-categories-inner">
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
 								</div>
68 68
 
69 69
 								<?php
70
-							}
70
+                                   }
71 71
 
72
-							the_title( '<h1 class="entry-title">', '</h1>' );
72
+                                   the_title( '<h1 class="entry-title">', '</h1>' );
73 73
 
74
-							if ( is_page() ) {
75
-								?>
74
+                                   if ( is_page() ) {
75
+                                        ?>
76 76
 
77 77
 								<div class="to-the-content-wrapper">
78 78
 
@@ -83,26 +83,26 @@  discard block
 block discarded – undo
83 83
 								</div>
84 84
 
85 85
 								<?php
86
-							} else {
86
+                                   } else {
87 87
 
88
-								if ( has_excerpt() ) {
89
-									?>
88
+                                        if ( has_excerpt() ) {
89
+                                             ?>
90 90
 
91 91
 									<div class="intro-text section-inner">
92 92
 										<?php the_excerpt(); ?>
93 93
 									</div>
94 94
 
95 95
 									<?php
96
-								}
96
+                                        }
97 97
 
98
-								?>
98
+                                        ?>
99 99
 								<div class="entry-meta">
100 100
 									<?php lsx_post_meta_list_top(); ?>
101 101
 								</div><!-- .entry-meta -->
102 102
 								<?php
103 103
 
104
-							}
105
-							?>
104
+                                   }
105
+                                   ?>
106 106
 
107 107
 						</div>
108 108
 					</header>
@@ -115,15 +115,15 @@  discard block
 block discarded – undo
115 115
 		<?php lsx_entry_inside_top(); ?>
116 116
 
117 117
 		<?php
118
-			the_content();
119
-
120
-			wp_link_pages( array(
121
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
122
-				'after'       => '</div></div>',
123
-				'link_before' => '<span>',
124
-				'link_after'  => '</span>',
125
-			) );
126
-		?>
118
+               the_content();
119
+
120
+               wp_link_pages( array(
121
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
122
+                    'after'       => '</div></div>',
123
+                    'link_before' => '<span>',
124
+                    'link_after'  => '</span>',
125
+               ) );
126
+          ?>
127 127
 	</div><!-- .entry-content -->
128 128
 
129 129
 	<?php lsx_entry_bottom(); ?>
Please login to merge, or discard this patch.
partials/content.php 1 patch
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -10,38 +10,38 @@  discard block
 block discarded – undo
10 10
 <?php lsx_entry_before(); ?>
11 11
 
12 12
 <?php
13
-	$no_thumb_post_types   = array(
14
-		'audio'   => 'audio',
15
-		'gallery' => 'gallery',
16
-		'image'   => 'image',
17
-		'link'    => 'link',
18
-		'quote'   => 'quote',
19
-		'video'   => 'video',
20
-	);
21
-	$no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
22
-
23
-	$has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
24
-
25
-	if ( $has_thumb ) {
26
-		$thumb_class = 'has-thumb';
27
-	} else {
28
-		$thumb_class = 'no-thumb';
29
-	}
30
-
31
-	$blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
32
-
33
-	$image_class = '';
34
-
35
-	$thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
-	if ( empty( $thumbnail_id ) ) {
37
-		$thumbnail_id = apply_filters( 'lsx_get_thumbnail_post_placeholder_id', $thumbnail_id, get_the_ID() );
38
-	}
39
-	$image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
40
-	$image_src    = '';
41
-
42
-	if ( is_array( $image_arr ) ) {
43
-		$image_src = $image_arr[0];
44
-	}
13
+     $no_thumb_post_types   = array(
14
+          'audio'   => 'audio',
15
+          'gallery' => 'gallery',
16
+          'image'   => 'image',
17
+          'link'    => 'link',
18
+          'quote'   => 'quote',
19
+          'video'   => 'video',
20
+     );
21
+     $no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
22
+
23
+     $has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
24
+
25
+     if ( $has_thumb ) {
26
+          $thumb_class = 'has-thumb';
27
+     } else {
28
+          $thumb_class = 'no-thumb';
29
+     }
30
+
31
+     $blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
32
+
33
+     $image_class = '';
34
+
35
+     $thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
+     if ( empty( $thumbnail_id ) ) {
37
+          $thumbnail_id = apply_filters( 'lsx_get_thumbnail_post_placeholder_id', $thumbnail_id, get_the_ID() );
38
+     }
39
+     $image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
40
+     $image_src    = '';
41
+
42
+     if ( is_array( $image_arr ) ) {
43
+          $image_src = $image_arr[0];
44
+     }
45 45
 ?>
46 46
 
47 47
 <article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>>
@@ -59,23 +59,23 @@  discard block
 block discarded – undo
59 59
 				<?php endif; ?>
60 60
 
61 61
 				<?php
62
-				$format = get_post_format();
62
+                    $format = get_post_format();
63 63
 
64
-				if ( false === $format ) {
65
-					$format        = 'standard';
66
-					$show_on_front = get_option( 'show_on_front', 'posts' );
64
+                    if ( false === $format ) {
65
+                         $format        = 'standard';
66
+                         $show_on_front = get_option( 'show_on_front', 'posts' );
67 67
 
68
-					if ( 'page' === $show_on_front ) {
69
-						$archive_link = get_permalink( get_option( 'page_for_posts' ) );
70
-					} else {
71
-						$archive_link = home_url();
72
-					}
73
-				} else {
74
-					$archive_link = get_post_format_link( $format );
75
-				}
68
+                         if ( 'page' === $show_on_front ) {
69
+                              $archive_link = get_permalink( get_option( 'page_for_posts' ) );
70
+                         } else {
71
+                              $archive_link = home_url();
72
+                         }
73
+                    } else {
74
+                         $archive_link = get_post_format_link( $format );
75
+                    }
76 76
 
77
-				$format = lsx_translate_format_to_fontawesome( $format );
78
-				?>
77
+                    $format = lsx_translate_format_to_fontawesome( $format );
78
+                    ?>
79 79
 
80 80
 				<h1 class="entry-title">
81 81
 					<?php if ( has_post_thumbnail() ) : ?>
@@ -109,16 +109,16 @@  discard block
 block discarded – undo
109 109
 
110 110
 					<div class="entry-summary">
111 111
 						<?php
112
-						if ( ! has_excerpt() ) {
112
+                              if ( ! has_excerpt() ) {
113 113
 
114
-							$excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
115
-							$content      = wp_trim_words( get_the_content(), 30 );
116
-							$content      = '<p>' . $content . '</p>' . $excerpt_more;
117
-							echo wp_kses_post( $content );
118
-						} else {
119
-							the_excerpt();
120
-						}
121
-						?>
114
+                                   $excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
115
+                                   $content      = wp_trim_words( get_the_content(), 30 );
116
+                                   $content      = '<p>' . $content . '</p>' . $excerpt_more;
117
+                                   echo wp_kses_post( $content );
118
+                              } else {
119
+                                   the_excerpt();
120
+                              }
121
+                              ?>
122 122
 
123 123
 					</div><!-- .entry-summary -->
124 124
 
@@ -134,15 +134,15 @@  discard block
 block discarded – undo
134 134
 
135 135
 					<div class="entry-content">
136 136
 						<?php
137
-							the_content();
138
-
139
-							wp_link_pages( array(
140
-								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
141
-								'after'       => '</div></div>',
142
-								'link_before' => '<span>',
143
-								'link_after'  => '</span>',
144
-							) );
145
-						?>
137
+                                   the_content();
138
+
139
+                                   wp_link_pages( array(
140
+                                        'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
141
+                                        'after'       => '</div></div>',
142
+                                        'link_before' => '<span>',
143
+                                        'link_after'  => '</span>',
144
+                                   ) );
145
+                              ?>
146 146
 					</div><!-- .entry-content -->
147 147
 
148 148
 				<?php endif; ?>
@@ -162,22 +162,22 @@  discard block
 block discarded – undo
162 162
 						<div class="post-comments">
163 163
 							<a href="<?php the_permalink(); ?>#comments">
164 164
 								<?php
165
-								if ( '1' === $comments_number ) {
166
-									echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
167
-								} else {
168
-									printf(
169
-										/* Translators: %s: number of comments */
170
-										esc_html( _nx(
171
-											'%s Comment',
172
-											'%s Comments',
173
-											$comments_number,
174
-											'content.php',
175
-											'lsx'
176
-										) ),
177
-										esc_html( number_format_i18n( $comments_number ) )
178
-									);
179
-								}
180
-								?>
165
+                                        if ( '1' === $comments_number ) {
166
+                                             echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
167
+                                        } else {
168
+                                             printf(
169
+                                                  /* Translators: %s: number of comments */
170
+                                                  esc_html( _nx(
171
+                                                       '%s Comment',
172
+                                                       '%s Comments',
173
+                                                       $comments_number,
174
+                                                       'content.php',
175
+                                                       'lsx'
176
+                                                  ) ),
177
+                                                  esc_html( number_format_i18n( $comments_number ) )
178
+                                             );
179
+                                        }
180
+                                        ?>
181 181
 							</a>
182 182
 						</div>
183 183
 					<?php endif ?>
Please login to merge, or discard this patch.
partials/content-related.php 1 patch
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -10,34 +10,34 @@  discard block
 block discarded – undo
10 10
 <?php lsx_entry_before(); ?>
11 11
 
12 12
 <?php
13
-	$no_thumb_post_types   = array(
14
-		'audio'   => 'audio',
15
-		'gallery' => 'gallery',
16
-		'image'   => 'image',
17
-		'link'    => 'link',
18
-		'quote'   => 'quote',
19
-		'video'   => 'video',
20
-	);
21
-	$no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
22
-
23
-	$has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
24
-
25
-	if ( $has_thumb ) {
26
-		$thumb_class = 'has-thumb';
27
-	} else {
28
-		$thumb_class = 'no-thumb';
29
-	}
30
-
31
-	$blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
32
-
33
-	$image_class = '';
34
-
35
-	$thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
-	$image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
37
-
38
-	if ( is_array( $image_arr ) ) {
39
-		$image_src = $image_arr[0];
40
-	}
13
+     $no_thumb_post_types   = array(
14
+          'audio'   => 'audio',
15
+          'gallery' => 'gallery',
16
+          'image'   => 'image',
17
+          'link'    => 'link',
18
+          'quote'   => 'quote',
19
+          'video'   => 'video',
20
+     );
21
+     $no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
22
+
23
+     $has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
24
+
25
+     if ( $has_thumb ) {
26
+          $thumb_class = 'has-thumb';
27
+     } else {
28
+          $thumb_class = 'no-thumb';
29
+     }
30
+
31
+     $blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
32
+
33
+     $image_class = '';
34
+
35
+     $thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
+     $image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
37
+
38
+     if ( is_array( $image_arr ) ) {
39
+          $image_src = $image_arr[0];
40
+     }
41 41
 ?>
42 42
 
43 43
 <article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>>
@@ -55,23 +55,23 @@  discard block
 block discarded – undo
55 55
 				<?php endif; ?>
56 56
 
57 57
 				<?php
58
-				$format = get_post_format();
58
+                    $format = get_post_format();
59 59
 
60
-				if ( false === $format ) {
61
-					$format        = 'standard';
62
-					$show_on_front = get_option( 'show_on_front', 'posts' );
60
+                    if ( false === $format ) {
61
+                         $format        = 'standard';
62
+                         $show_on_front = get_option( 'show_on_front', 'posts' );
63 63
 
64
-					if ( 'page' === $show_on_front ) {
65
-						$archive_link = get_permalink( get_option( 'page_for_posts' ) );
66
-					} else {
67
-						$archive_link = home_url();
68
-					}
69
-				} else {
70
-					$archive_link = get_post_format_link( $format );
71
-				}
64
+                         if ( 'page' === $show_on_front ) {
65
+                              $archive_link = get_permalink( get_option( 'page_for_posts' ) );
66
+                         } else {
67
+                              $archive_link = home_url();
68
+                         }
69
+                    } else {
70
+                         $archive_link = get_post_format_link( $format );
71
+                    }
72 72
 
73
-				$format = lsx_translate_format_to_fontawesome( $format );
74
-				?>
73
+                    $format = lsx_translate_format_to_fontawesome( $format );
74
+                    ?>
75 75
 
76 76
 				<h2 class="entry-title">
77 77
 					<?php if ( has_post_thumbnail() ) : ?>
@@ -104,16 +104,16 @@  discard block
 block discarded – undo
104 104
 
105 105
 					<div class="entry-summary">
106 106
 					<?php
107
-					if ( ! has_excerpt() ) {
108
-
109
-						$excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
110
-						$content      = wp_trim_words( get_the_content(), 50 );
111
-						$content      = '<p>' . $content . '</p>' . $excerpt_more;
112
-						echo wp_kses_post( $content );
113
-					} else {
114
-						the_excerpt();
115
-					}
116
-					?>
107
+                         if ( ! has_excerpt() ) {
108
+
109
+                              $excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
110
+                              $content      = wp_trim_words( get_the_content(), 50 );
111
+                              $content      = '<p>' . $content . '</p>' . $excerpt_more;
112
+                              echo wp_kses_post( $content );
113
+                         } else {
114
+                              the_excerpt();
115
+                         }
116
+                         ?>
117 117
 					</div><!-- .entry-summary -->
118 118
 
119 119
 				<?php elseif ( has_post_format( array( 'link' ) ) ) : ?>
@@ -128,15 +128,15 @@  discard block
 block discarded – undo
128 128
 
129 129
 					<div class="entry-content">
130 130
 						<?php
131
-							the_content();
132
-
133
-							wp_link_pages( array(
134
-								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
135
-								'after'       => '</div></div>',
136
-								'link_before' => '<span>',
137
-								'link_after'  => '</span>',
138
-							) );
139
-						?>
131
+                                   the_content();
132
+
133
+                                   wp_link_pages( array(
134
+                                        'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
135
+                                        'after'       => '</div></div>',
136
+                                        'link_before' => '<span>',
137
+                                        'link_after'  => '</span>',
138
+                                   ) );
139
+                              ?>
140 140
 					</div><!-- .entry-content -->
141 141
 
142 142
 				<?php endif; ?>
@@ -155,22 +155,22 @@  discard block
 block discarded – undo
155 155
 					<div class="post-comments">
156 156
 						<a href="<?php the_permalink(); ?>#comments">
157 157
 							<?php
158
-							if ( '1' === $comments_number ) {
159
-								echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
160
-							} else {
161
-								printf(
162
-									/* Translators: %s: number of comments */
163
-									esc_html( _nx(
164
-										'%s Comment',
165
-										'%s Comments',
166
-										$comments_number,
167
-										'content.php',
168
-										'lsx'
169
-									) ),
170
-									esc_html( number_format_i18n( $comments_number ) )
171
-								);
172
-							}
173
-							?>
158
+                                   if ( '1' === $comments_number ) {
159
+                                        echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
160
+                                   } else {
161
+                                        printf(
162
+                                             /* Translators: %s: number of comments */
163
+                                             esc_html( _nx(
164
+                                                  '%s Comment',
165
+                                                  '%s Comments',
166
+                                                  $comments_number,
167
+                                                  'content.php',
168
+                                                  'lsx'
169
+                                             ) ),
170
+                                             esc_html( number_format_i18n( $comments_number ) )
171
+                                        );
172
+                                   }
173
+                                   ?>
174 174
 						</a>
175 175
 					</div>
176 176
 				<?php endif ?>
Please login to merge, or discard this patch.
partials/content-custom.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
 
16 16
 	<div class="entry-content">
17 17
 		<?php
18
-			the_content();
19
-
20
-			wp_link_pages( array(
21
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
-				'after'       => '</div></div>',
23
-				'link_before' => '<span>',
24
-				'link_after'  => '</span>',
25
-			) );
26
-		?>
18
+               the_content();
19
+
20
+               wp_link_pages( array(
21
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
+                    'after'       => '</div></div>',
23
+                    'link_before' => '<span>',
24
+                    'link_after'  => '</span>',
25
+               ) );
26
+          ?>
27 27
 	</div><!-- .entry-content -->
28 28
 
29 29
 	<?php lsx_entry_bottom(); ?>
Please login to merge, or discard this patch.
partials/content-page.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@
 block discarded – undo
18 18
 		<?php lsx_entry_inside_top(); ?>
19 19
 
20 20
 		<?php
21
-			the_content();
22
-
23
-			wp_link_pages( array(
24
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
25
-				'after'       => '</div></div>',
26
-				'link_before' => '<span>',
27
-				'link_after'  => '</span>',
28
-			) );
29
-		?>
21
+               the_content();
22
+
23
+               wp_link_pages( array(
24
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
25
+                    'after'       => '</div></div>',
26
+                    'link_before' => '<span>',
27
+                    'link_after'  => '</span>',
28
+               ) );
29
+          ?>
30 30
 	</div><!-- .entry-content -->
31 31
 
32 32
 	<?php lsx_entry_bottom(); ?>
Please login to merge, or discard this patch.
partials/content-widget-review.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( ! defined( 'ABSPATH' ) ) {
9
-	exit;
9
+     exit;
10 10
 }
11 11
 global $comment, $stored_comment, $_product, $rating;
12 12
 $the_comment = $comment;
13 13
 if ( null !== $stored_comment ) {
14
-	$the_comment = $stored_comment;
14
+     $the_comment = $stored_comment;
15 15
 }
16 16
 ?>
17 17
 <div class="lsx-woocommerce-review-slot">
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 
34 34
 			<p class="lsx-woocommerce-reviewer">
35 35
 				<?php
36
-					/* translators: %s: review author */
37
-					echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) );
38
-				?>
36
+                         /* translators: %s: review author */
37
+                         echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) );
38
+                    ?>
39 39
 			</p>
40 40
 
41 41
 			<div class="lsx-woocommerce-content">
Please login to merge, or discard this patch.