@@ -8,11 +8,11 @@ |
||
8 | 8 | $style = 'body #searchform { display: block; }'; |
9 | 9 | |
10 | 10 | if ( is_customize_preview() ) { |
11 | - $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
11 | + $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
12 | 12 | |
13 | - if ( false === $search_form ) { |
|
14 | - $style = 'body #searchform { display: none; }'; |
|
15 | - } |
|
13 | + if ( false === $search_form ) { |
|
14 | + $style = 'body #searchform { display: none; }'; |
|
15 | + } |
|
16 | 16 | } |
17 | 17 | ?> |
18 | 18 |
@@ -22,49 +22,49 @@ |
||
22 | 22 | |
23 | 23 | <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>"> |
24 | 24 | <?php |
25 | - printf( |
|
26 | - /* Translators: 1: current year, 2: blog name */ |
|
27 | - esc_html__( '© %1$s %2$s All Rights Reserved', 'lsx' ), |
|
28 | - esc_html( date_i18n( 'Y' ) ), |
|
29 | - esc_html( get_bloginfo( 'name' ) ) |
|
30 | - ); |
|
31 | - ?> |
|
25 | + printf( |
|
26 | + /* Translators: 1: current year, 2: blog name */ |
|
27 | + esc_html__( '© %1$s %2$s All Rights Reserved', 'lsx' ), |
|
28 | + esc_html( date_i18n( 'Y' ) ), |
|
29 | + esc_html( get_bloginfo( 'name' ) ) |
|
30 | + ); |
|
31 | + ?> |
|
32 | 32 | |
33 | 33 | <?php if ( apply_filters( 'lsx_credit_link', true ) ) : ?> |
34 | 34 | <?php |
35 | - printf( |
|
36 | - /* Translators: 1: theme name, 2: author name and link */ |
|
37 | - esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ), |
|
38 | - 'LSX', |
|
39 | - '<a href="https://www.lsdev.biz/" rel="nofollow noreferrer noopener" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author nofollow noopener noreferrer" >LightSpeed</a>' |
|
40 | - ); |
|
41 | - ?> |
|
35 | + printf( |
|
36 | + /* Translators: 1: theme name, 2: author name and link */ |
|
37 | + esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ), |
|
38 | + 'LSX', |
|
39 | + '<a href="https://www.lsdev.biz/" rel="nofollow noreferrer noopener" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author nofollow noopener noreferrer" >LightSpeed</a>' |
|
40 | + ); |
|
41 | + ?> |
|
42 | 42 | <?php endif; ?> |
43 | 43 | </p> |
44 | 44 | |
45 | 45 | <?php if ( has_nav_menu( 'social' ) ) : ?> |
46 | 46 | <nav id="social-navigation" class="social-navigation"> |
47 | 47 | <?php |
48 | - wp_nav_menu( |
|
49 | - array( |
|
50 | - 'theme_location' => 'social', |
|
51 | - 'depth' => 1, |
|
52 | - ) |
|
53 | - ); |
|
54 | - ?> |
|
48 | + wp_nav_menu( |
|
49 | + array( |
|
50 | + 'theme_location' => 'social', |
|
51 | + 'depth' => 1, |
|
52 | + ) |
|
53 | + ); |
|
54 | + ?> |
|
55 | 55 | </nav><!-- .social-navigation --> |
56 | 56 | <?php endif; ?> |
57 | 57 | |
58 | 58 | <?php if ( has_nav_menu( 'footer' ) ) : ?> |
59 | 59 | <nav id="footer-navigation" class="footer-navigation"> |
60 | 60 | <?php |
61 | - wp_nav_menu( |
|
62 | - array( |
|
63 | - 'theme_location' => 'footer', |
|
64 | - 'depth' => 1, |
|
65 | - ) |
|
66 | - ); |
|
67 | - ?> |
|
61 | + wp_nav_menu( |
|
62 | + array( |
|
63 | + 'theme_location' => 'footer', |
|
64 | + 'depth' => 1, |
|
65 | + ) |
|
66 | + ); |
|
67 | + ?> |
|
68 | 68 | </nav><!-- .footer-navigation --> |
69 | 69 | <?php endif; ?> |
70 | 70 |
@@ -6,9 +6,9 @@ discard block |
||
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 |
||
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 |
||
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 | ); |
@@ -15,15 +15,15 @@ discard block |
||
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 |
||
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 |
@@ -16,13 +16,13 @@ discard block |
||
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 |
||
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> |
@@ -10,38 +10,38 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 ?> |
@@ -10,34 +10,34 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 ?> |
@@ -15,15 +15,15 @@ |
||
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(); ?> |
@@ -18,15 +18,15 @@ |
||
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(); ?> |