@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * |
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
7 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
8 | 8 | |
9 | 9 | define('LSX_VERSION', '1.8.5'); |
10 | 10 | |
@@ -19,22 +19,22 @@ discard block |
||
19 | 19 | require get_template_directory() . '/inc/comment-walker.php'; |
20 | 20 | require get_template_directory() . '/inc/jetpack.php'; |
21 | 21 | require get_template_directory() . '/inc/lazyload.php'; |
22 | -if(class_exists('BuddyPress')){ |
|
22 | +if (class_exists('BuddyPress')) { |
|
23 | 23 | require get_template_directory() . '/inc/buddypress.php'; |
24 | 24 | } |
25 | -if(class_exists('WooCommerce')){ |
|
25 | +if (class_exists('WooCommerce')) { |
|
26 | 26 | require get_template_directory() . '/inc/woocommerce.php'; |
27 | 27 | } |
28 | -if(class_exists('WP_Job_Manager')){ |
|
28 | +if (class_exists('WP_Job_Manager')) { |
|
29 | 29 | require get_template_directory() . '/inc/wp-job-manager.php'; |
30 | 30 | } |
31 | -if(class_exists('Tribe__Events__Main')){ |
|
31 | +if (class_exists('Tribe__Events__Main')) { |
|
32 | 32 | require get_template_directory() . '/inc/the-events-calendar.php'; |
33 | 33 | } |
34 | 34 | require get_template_directory() . '/inc/template-tags.php'; |
35 | 35 | require get_template_directory() . '/inc/extras.php'; |
36 | 36 | require get_template_directory() . '/inc/wp-bootstrap-navwalker.php'; |
37 | -if(class_exists('Sensei_WC')){ |
|
37 | +if (class_exists('Sensei_WC')) { |
|
38 | 38 | require get_template_directory() . '/inc/sensei.php'; |
39 | 39 | } |
40 | 40 | require get_template_directory() . '/inc/welcome.php'; |
@@ -47,10 +47,10 @@ discard block |
||
47 | 47 | * @category customizer |
48 | 48 | * @return $lsx_controls array() |
49 | 49 | */ |
50 | -function lsx_customizer_core_controls( $lsx_controls ) { |
|
50 | +function lsx_customizer_core_controls($lsx_controls) { |
|
51 | 51 | $lsx_controls['sections']['lsx-core'] = array( |
52 | - 'title' => esc_html__( 'Core Settings', 'lsx' ), |
|
53 | - 'description' => esc_html__( 'Change the core settings.', 'lsx' ), |
|
52 | + 'title' => esc_html__('Core Settings', 'lsx'), |
|
53 | + 'description' => esc_html__('Change the core settings.', 'lsx'), |
|
54 | 54 | 'priority' => 21 |
55 | 55 | ); |
56 | 56 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | ); |
62 | 62 | |
63 | 63 | $lsx_controls['fields']['lsx_lazyload_status'] = array( |
64 | - 'label' => esc_html__( 'Lazy Loading Images', 'lsx' ), |
|
64 | + 'label' => esc_html__('Lazy Loading Images', 'lsx'), |
|
65 | 65 | 'section' => 'lsx-core', |
66 | 66 | 'type' => 'checkbox', |
67 | 67 | ); |
@@ -73,14 +73,14 @@ discard block |
||
73 | 73 | ); |
74 | 74 | |
75 | 75 | $lsx_controls['fields']['lsx_preloader_content_status'] = array( |
76 | - 'label' => esc_html__( 'Preloader Content', 'lsx' ), |
|
76 | + 'label' => esc_html__('Preloader Content', 'lsx'), |
|
77 | 77 | 'section' => 'lsx-core', |
78 | 78 | 'type' => 'checkbox', |
79 | 79 | ); |
80 | 80 | |
81 | 81 | return $lsx_controls; |
82 | 82 | } |
83 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' ); |
|
83 | +add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls'); |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Returns an array of the layout panel. |
@@ -91,56 +91,56 @@ discard block |
||
91 | 91 | * @return $lsx_controls array() |
92 | 92 | */ |
93 | 93 | function lsx_customizer_layout_controls($lsx_controls) { |
94 | - $lsx_controls['settings']['lsx_header_layout'] = array( |
|
94 | + $lsx_controls['settings']['lsx_header_layout'] = array( |
|
95 | 95 | 'default' => 'inline', //Default setting/value to save |
96 | 96 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
97 | 97 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
98 | 98 | ); |
99 | 99 | $lsx_controls['fields']['lsx_header_layout'] = array( |
100 | - 'label' => esc_html__('Header','lsx'), |
|
100 | + 'label' => esc_html__('Header', 'lsx'), |
|
101 | 101 | 'section' => 'lsx-layout', |
102 | 102 | 'control' => 'LSX_Customize_Header_Layout_Control', |
103 | - 'choices' => array('central','expanded','inline') |
|
103 | + 'choices' => array('central', 'expanded', 'inline') |
|
104 | 104 | ); |
105 | 105 | $lsx_controls['sections']['lsx-layout'] = array( |
106 | - 'title' => esc_html__( 'Layout', 'lsx' ), |
|
107 | - 'description' => esc_html__( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ), |
|
106 | + 'title' => esc_html__('Layout', 'lsx'), |
|
107 | + 'description' => esc_html__('Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx'), |
|
108 | 108 | 'priority' => 22 |
109 | 109 | ); |
110 | - $lsx_controls['settings']['lsx_layout'] = array( |
|
110 | + $lsx_controls['settings']['lsx_layout'] = array( |
|
111 | 111 | 'default' => '2cr', //Default setting/value to save |
112 | 112 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
113 | 113 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
114 | 114 | ); |
115 | - $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
115 | + $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
116 | 116 | 'default' => false, //Default setting/value to save |
117 | 117 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
118 | 118 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
119 | 119 | ); |
120 | 120 | $lsx_controls['fields']['lsx_header_fixed'] = array( |
121 | - 'label' => esc_html__('Fixed Header','lsx'), |
|
121 | + 'label' => esc_html__('Fixed Header', 'lsx'), |
|
122 | 122 | 'section' => 'lsx-layout', |
123 | 123 | 'type' => 'checkbox', |
124 | 124 | ); |
125 | - $lsx_controls['settings']['lsx_header_search'] = array( |
|
125 | + $lsx_controls['settings']['lsx_header_search'] = array( |
|
126 | 126 | 'default' => false, //Default setting/value to save |
127 | 127 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
128 | 128 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
129 | 129 | ); |
130 | 130 | $lsx_controls['fields']['lsx_header_search'] = array( |
131 | - 'label' => esc_html__('Search Box in Header','lsx'), |
|
131 | + 'label' => esc_html__('Search Box in Header', 'lsx'), |
|
132 | 132 | 'section' => 'lsx-layout', |
133 | 133 | 'type' => 'checkbox', |
134 | 134 | ); |
135 | 135 | $lsx_controls['fields']['lsx_layout'] = array( |
136 | - 'label' => esc_html__('Body','lsx'), |
|
136 | + 'label' => esc_html__('Body', 'lsx'), |
|
137 | 137 | 'section' => 'lsx-layout', |
138 | 138 | 'control' => 'LSX_Customize_Layout_Control', |
139 | - 'choices' => array('1c','2cr','2cl') |
|
139 | + 'choices' => array('1c', '2cr', '2cl') |
|
140 | 140 | ); |
141 | 141 | return $lsx_controls; |
142 | 142 | } |
143 | -add_filter('lsx_customizer_controls','lsx_customizer_layout_controls'); |
|
143 | +add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls'); |
|
144 | 144 | |
145 | 145 | /** |
146 | 146 | * Returns an array of the font controls. |
@@ -152,11 +152,11 @@ discard block |
||
152 | 152 | */ |
153 | 153 | function lsx_customizer_font_controls($lsx_controls) { |
154 | 154 | $lsx_controls['sections']['lsx-font'] = array( |
155 | - 'title' => esc_html__( 'Font', 'lsx' ), |
|
155 | + 'title' => esc_html__('Font', 'lsx'), |
|
156 | 156 | 'description' => 'Change the fonts sitewide.', |
157 | 157 | 'priority' => 41 |
158 | 158 | ); |
159 | - $lsx_controls['settings']['lsx_font'] = array( |
|
159 | + $lsx_controls['settings']['lsx_font'] = array( |
|
160 | 160 | 'default' => 'raleway_open_sans', //Default setting/value to save |
161 | 161 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
162 | 162 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
@@ -170,13 +170,13 @@ discard block |
||
170 | 170 | 'choices' => array( |
171 | 171 | 'raleway_open_sans' => array( |
172 | 172 | 'header' => array( |
173 | - "title" => esc_html__( 'Raleway', 'lsx' ), |
|
173 | + "title" => esc_html__('Raleway', 'lsx'), |
|
174 | 174 | "location" => "Raleway", |
175 | 175 | "cssDeclaration" => "'Raleway', sans-serif", |
176 | 176 | "cssClass" => "raleway", |
177 | 177 | ), |
178 | 178 | 'body' => array( |
179 | - "title" => esc_html__( 'Open Sans', 'lsx' ), |
|
179 | + "title" => esc_html__('Open Sans', 'lsx'), |
|
180 | 180 | "location" => "Open+Sans", |
181 | 181 | "cssDeclaration" => "'Open Sans', sans-serif", |
182 | 182 | "cssClass" => "openSans" |
@@ -184,13 +184,13 @@ discard block |
||
184 | 184 | ), |
185 | 185 | 'noto_serif_noto_sans' => array( |
186 | 186 | 'header' => array( |
187 | - "title" => esc_html__( 'Noto Serif', 'lsx' ), |
|
187 | + "title" => esc_html__('Noto Serif', 'lsx'), |
|
188 | 188 | "location" => "Noto+Serif", |
189 | 189 | "cssDeclaration" => "'Noto Serif', serif", |
190 | 190 | "cssClass" => "notoSerif", |
191 | 191 | ), |
192 | 192 | 'body' => array( |
193 | - "title" => esc_html__( 'Noto Sans', 'lsx' ), |
|
193 | + "title" => esc_html__('Noto Sans', 'lsx'), |
|
194 | 194 | "location" => "Noto+Sans", |
195 | 195 | "cssDeclaration" => "'Noto Sans', sans-serif", |
196 | 196 | "cssClass" => "notoSans", |
@@ -198,13 +198,13 @@ discard block |
||
198 | 198 | ), |
199 | 199 | 'noto_sans_noto_sans' => array( |
200 | 200 | 'header' => array( |
201 | - "title" => esc_html__( 'Noto Sans', 'lsx' ), |
|
201 | + "title" => esc_html__('Noto Sans', 'lsx'), |
|
202 | 202 | "location" => "Noto+Sans", |
203 | 203 | "cssDeclaration" => "'Noto Sans', sans-serif", |
204 | 204 | "cssClass" => "notoSans", |
205 | 205 | ), |
206 | 206 | 'body' => array( |
207 | - "title" => esc_html__( 'Noto Sans', 'lsx' ), |
|
207 | + "title" => esc_html__('Noto Sans', 'lsx'), |
|
208 | 208 | "location" => "Noto+Sans", |
209 | 209 | "cssDeclaration" => "'Noto Sans', sans-serif", |
210 | 210 | "cssClass" => "notoSans", |
@@ -212,13 +212,13 @@ discard block |
||
212 | 212 | ), |
213 | 213 | 'alegreya_open_sans' => array( |
214 | 214 | 'header' => array( |
215 | - "title" => esc_html__( 'Alegreya', 'lsx' ), |
|
215 | + "title" => esc_html__('Alegreya', 'lsx'), |
|
216 | 216 | "location" => "Alegreya", |
217 | 217 | "cssDeclaration" => "'Alegreya', serif", |
218 | 218 | "cssClass" => "alegreya", |
219 | 219 | ), |
220 | 220 | 'body' => array( |
221 | - "title" => esc_html__( 'Open Sans', 'lsx' ), |
|
221 | + "title" => esc_html__('Open Sans', 'lsx'), |
|
222 | 222 | "location" => "Open+Sans", |
223 | 223 | "cssDeclaration" => "'Open Sans', sans-serif", |
224 | 224 | "cssClass" => "openSans" |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | ); |
230 | 230 | return $lsx_controls; |
231 | 231 | } |
232 | -add_filter('lsx_customizer_controls','lsx_customizer_font_controls'); |
|
232 | +add_filter('lsx_customizer_controls', 'lsx_customizer_font_controls'); |
|
233 | 233 | |
234 | 234 | /** |
235 | 235 | * Returns an array of $controls for the customizer class to generate. |
@@ -239,12 +239,12 @@ discard block |
||
239 | 239 | * @category customizer |
240 | 240 | * @return $lsx_controls array() |
241 | 241 | */ |
242 | -function lsx_get_customizer_controls(){ |
|
242 | +function lsx_get_customizer_controls() { |
|
243 | 243 | $lsx_controls = array(); |
244 | 244 | $lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls); |
245 | 245 | return $lsx_controls; |
246 | 246 | } |
247 | -$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() ); |
|
247 | +$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls()); |
|
248 | 248 | |
249 | -add_image_size( 'lsx-thumbnail-wide', 350, 230, true ); |
|
250 | -add_image_size( 'lsx-thumbnail-single', 750, 350, true ); |
|
251 | 249 | \ No newline at end of file |
250 | +add_image_size('lsx-thumbnail-wide', 350, 230, true); |
|
251 | +add_image_size('lsx-thumbnail-single', 750, 350, true); |
|
252 | 252 | \ No newline at end of file |
@@ -4,7 +4,10 @@ |
||
4 | 4 | * |
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
7 | +if ( ! defined( 'ABSPATH' ) ) { |
|
8 | + return; |
|
9 | +} |
|
10 | +// Exit if accessed directly |
|
8 | 11 | |
9 | 12 | define('LSX_VERSION', '1.8.5'); |
10 | 13 |
@@ -7,42 +7,42 @@ discard block |
||
7 | 7 | <?php lsx_entry_before(); ?> |
8 | 8 | |
9 | 9 | <?php |
10 | - if ( has_post_thumbnail() ) { |
|
10 | + if (has_post_thumbnail()) { |
|
11 | 11 | $thumb_class = 'has-thumb'; |
12 | 12 | } else { |
13 | 13 | $thumb_class = 'no-thumb'; |
14 | 14 | } |
15 | 15 | |
16 | - if ( ! is_singular() ) { |
|
17 | - $blog_layout = apply_filters( 'lsx_blog_layout', 'default' ); |
|
16 | + if ( ! is_singular()) { |
|
17 | + $blog_layout = apply_filters('lsx_blog_layout', 'default'); |
|
18 | 18 | } else { |
19 | 19 | $blog_layout = 'default'; |
20 | 20 | } |
21 | 21 | |
22 | - if ( 'list' === $blog_layout ) { |
|
22 | + if ('list' === $blog_layout) { |
|
23 | 23 | $image_class = 'hidden-sm hidden-md hidden-ls'; |
24 | 24 | } else { |
25 | 25 | $image_class = ''; |
26 | 26 | } |
27 | 27 | |
28 | - $thumbnail_id = get_post_thumbnail_id( get_the_ID() ); |
|
29 | - $image_arr = wp_get_attachment_image_src( $thumbnail_id, 'lsx-single-thumbnail' ); |
|
28 | + $thumbnail_id = get_post_thumbnail_id(get_the_ID()); |
|
29 | + $image_arr = wp_get_attachment_image_src($thumbnail_id, 'lsx-single-thumbnail'); |
|
30 | 30 | |
31 | - if ( is_array( $image_arr ) ) { |
|
31 | + if (is_array($image_arr)) { |
|
32 | 32 | $image_src = $image_arr[0]; |
33 | 33 | } |
34 | 34 | ?> |
35 | 35 | |
36 | -<article id="post-<?php the_ID(); ?>" <?php post_class( $thumb_class ); ?>> |
|
36 | +<article id="post-<?php the_ID(); ?>" <?php post_class($thumb_class); ?>> |
|
37 | 37 | <?php lsx_entry_top(); ?> |
38 | 38 | |
39 | 39 | <div class="entry-layout"> |
40 | 40 | <div class="entry-layout-content entry-layout-content-<?php echo has_post_thumbnail() ? '67' : '100'; ?>"> |
41 | 41 | <header class="entry-header"> |
42 | - <?php if ( has_post_thumbnail() ) : ?> |
|
43 | - <div class="entry-image <?php echo esc_attr( $image_class ); ?>"> |
|
42 | + <?php if (has_post_thumbnail()) : ?> |
|
43 | + <div class="entry-image <?php echo esc_attr($image_class); ?>"> |
|
44 | 44 | <a class="thumbnail" href="<?php the_permalink(); ?>"> |
45 | - <?php lsx_thumbnail( 'lsx-single-thumbnail' ); ?> |
|
45 | + <?php lsx_thumbnail('lsx-single-thumbnail'); ?> |
|
46 | 46 | </a> |
47 | 47 | </div> |
48 | 48 | <?php endif; ?> |
@@ -50,37 +50,37 @@ discard block |
||
50 | 50 | <?php |
51 | 51 | $format = get_post_format(); |
52 | 52 | |
53 | - if ( false === $format ) { |
|
53 | + if (false === $format) { |
|
54 | 54 | $format = 'standard'; |
55 | - $show_on_front = get_option( 'show_on_front', 'posts' ); |
|
55 | + $show_on_front = get_option('show_on_front', 'posts'); |
|
56 | 56 | |
57 | - if ( 'page' == $show_on_front ) { |
|
58 | - $archive_link = get_permalink( get_option( 'page_for_posts' ) ); |
|
57 | + if ('page' == $show_on_front) { |
|
58 | + $archive_link = get_permalink(get_option('page_for_posts')); |
|
59 | 59 | } else { |
60 | 60 | $archive_link = home_url(); |
61 | 61 | } |
62 | 62 | } else { |
63 | - $archive_link = get_post_format_link( $format ); |
|
63 | + $archive_link = get_post_format_link($format); |
|
64 | 64 | } |
65 | 65 | |
66 | - $format = lsx_translate_format_to_fontawesome( $format ); |
|
66 | + $format = lsx_translate_format_to_fontawesome($format); |
|
67 | 67 | ?> |
68 | 68 | |
69 | 69 | <h1 class="entry-title"> |
70 | - <?php if ( has_post_thumbnail() ) : ?> |
|
71 | - <a href="<?php echo esc_url( $archive_link ) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
70 | + <?php if (has_post_thumbnail()) : ?> |
|
71 | + <a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a> |
|
72 | 72 | <?php else : ?> |
73 | - <a href="<?php echo esc_url( $archive_link ) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
73 | + <a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a> |
|
74 | 74 | <?php endif; ?> |
75 | 75 | |
76 | - <?php if ( has_post_format( array('link') ) ) : ?> |
|
77 | - <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
76 | + <?php if (has_post_format(array('link'))) : ?> |
|
77 | + <a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
78 | 78 | <?php else : ?> |
79 | 79 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
80 | 80 | <?php endif; ?> |
81 | 81 | |
82 | - <?php if ( is_sticky() ) : ?> |
|
83 | - <span class="label label-default label-sticky"><?php esc_html_e( 'Featured', 'lsx' ); ?></span> |
|
82 | + <?php if (is_sticky()) : ?> |
|
83 | + <span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span> |
|
84 | 84 | <?php endif; ?> |
85 | 85 | </h1> |
86 | 86 | |
@@ -89,13 +89,13 @@ discard block |
||
89 | 89 | </div><!-- .entry-meta --> |
90 | 90 | </header><!-- .entry-header --> |
91 | 91 | |
92 | - <?php if ( ! is_singular() && ! has_post_format( array( 'video', 'audio', 'quote', 'link' ) ) && ! apply_filters( 'lsx_blog_force_content_on_list', false ) ) : // Only display Excerpts for Search and Archives ?> |
|
92 | + <?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link')) && ! apply_filters('lsx_blog_force_content_on_list', false)) : // Only display Excerpts for Search and Archives ?> |
|
93 | 93 | <div class="entry-summary"> |
94 | 94 | <?php the_excerpt(); ?> |
95 | 95 | </div><!-- .entry-summary --> |
96 | - <?php elseif ( has_post_format( array('link') ) ) : ?> |
|
96 | + <?php elseif (has_post_format(array('link'))) : ?> |
|
97 | 97 | |
98 | - <?php elseif ( apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?> |
|
98 | + <?php elseif (apply_filters('lsx_blog_force_content_on_list', false)) : ?> |
|
99 | 99 | <div class="entry-content"> |
100 | 100 | <?php the_content(); ?> |
101 | 101 | </div><!-- .entry-content --> |
@@ -104,12 +104,12 @@ discard block |
||
104 | 104 | <?php |
105 | 105 | the_content(); |
106 | 106 | |
107 | - wp_link_pages( array( |
|
107 | + wp_link_pages(array( |
|
108 | 108 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
109 | 109 | 'after' => '</div></div>', |
110 | 110 | 'link_before' => '<span>', |
111 | 111 | 'link_after' => '</span>' |
112 | - ) ); |
|
112 | + )); |
|
113 | 113 | ?> |
114 | 114 | </div><!-- .entry-content --> |
115 | 115 | <?php endif; ?> |
@@ -119,19 +119,19 @@ discard block |
||
119 | 119 | <?php |
120 | 120 | $comments_number = get_comments_number(); |
121 | 121 | |
122 | - if ( has_tag() || ( comments_open() && ! empty( $comments_number ) ) ) : |
|
122 | + if (has_tag() || (comments_open() && ! empty($comments_number))) : |
|
123 | 123 | ?> |
124 | 124 | |
125 | 125 | <div class="post-tags-wrapper"> |
126 | 126 | <?php lsx_content_post_tags(); ?> |
127 | 127 | |
128 | - <?php if ( comments_open() && ! empty( $comments_number ) ) : ?> |
|
128 | + <?php if (comments_open() && ! empty($comments_number)) : ?> |
|
129 | 129 | <div class="post-comments"> |
130 | 130 | <a href="<?php the_permalink() ?>#comments"> |
131 | 131 | <?php |
132 | 132 | printf( |
133 | - esc_html( _n( 'One Comment', '%1$s Comments', $comments_number, 'lsx' ) ), |
|
134 | - esc_html( number_format_i18n( $comments_number ) ) |
|
133 | + esc_html(_n('One Comment', '%1$s Comments', $comments_number, 'lsx')), |
|
134 | + esc_html(number_format_i18n($comments_number)) |
|
135 | 135 | ); |
136 | 136 | ?> |
137 | 137 | </a> |
@@ -144,10 +144,10 @@ discard block |
||
144 | 144 | ?> |
145 | 145 | </div> |
146 | 146 | |
147 | - <?php if ( has_post_thumbnail() ) : ?> |
|
147 | + <?php if (has_post_thumbnail()) : ?> |
|
148 | 148 | <div class="entry-image hidden hidden-xs"> |
149 | - <a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url( $image_src ); ?>);"> |
|
150 | - <?php lsx_thumbnail( 'lsx-single-thumbnail' ); ?> |
|
149 | + <a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url($image_src); ?>);"> |
|
150 | + <?php lsx_thumbnail('lsx-single-thumbnail'); ?> |
|
151 | 151 | </a> |
152 | 152 | </div> |
153 | 153 | <?php endif; ?> |
@@ -157,9 +157,9 @@ discard block |
||
157 | 157 | |
158 | 158 | <div class="clearfix"></div> |
159 | 159 | |
160 | - <?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?> |
|
160 | + <?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?> |
|
161 | 161 | |
162 | - <?php if ( ! is_singular() && ! is_single() ) : // Display full-width divider on Archives ?> |
|
162 | + <?php if ( ! is_singular() && ! is_single()) : // Display full-width divider on Archives ?> |
|
163 | 163 | <div class="lsx-breaker"></div> |
164 | 164 | <?php endif; ?> |
165 | 165 | </article> |
@@ -69,14 +69,20 @@ discard block |
||
69 | 69 | <h1 class="entry-title"> |
70 | 70 | <?php if ( has_post_thumbnail() ) : ?> |
71 | 71 | <a href="<?php echo esc_url( $archive_link ) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
72 | - <?php else : ?> |
|
72 | + <?php else { |
|
73 | + : ?> |
|
73 | 74 | <a href="<?php echo esc_url( $archive_link ) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
74 | - <?php endif; ?> |
|
75 | + <?php endif; |
|
76 | +} |
|
77 | +?> |
|
75 | 78 | |
76 | 79 | <?php if ( has_post_format( array('link') ) ) : ?> |
77 | 80 | <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
78 | - <?php else : ?> |
|
79 | - <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
|
81 | + <?php else { |
|
82 | + : ?> |
|
83 | + <a href="<?php the_permalink(); |
|
84 | +} |
|
85 | +?>" rel="bookmark"><?php the_title(); ?></a> |
|
80 | 86 | <?php endif; ?> |
81 | 87 | |
82 | 88 | <?php if ( is_sticky() ) : ?> |
@@ -99,10 +105,12 @@ discard block |
||
99 | 105 | <div class="entry-content"> |
100 | 106 | <?php the_content(); ?> |
101 | 107 | </div><!-- .entry-content --> |
102 | - <?php else : ?> |
|
108 | + <?php else { |
|
109 | + : ?> |
|
103 | 110 | <div class="entry-content"> |
104 | 111 | <?php |
105 | 112 | the_content(); |
113 | +} |
|
106 | 114 | |
107 | 115 | wp_link_pages( array( |
108 | 116 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |