@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | |
8 | 8 | |
9 | 9 | $type_class = "filter-item column-3 "; |
10 | -$types = get_the_terms( get_the_ID(), 'jetpack-portfolio-type'); |
|
10 | +$types = get_the_terms(get_the_ID(), 'jetpack-portfolio-type'); |
|
11 | 11 | if ($types) { |
12 | 12 | foreach ($types as $type) { |
13 | 13 | $type_class .= $type->slug . " "; |
@@ -18,13 +18,13 @@ discard block |
||
18 | 18 | <article id="post-<?php the_ID(); ?>" data-column="<?php echo 3; ?>" <?php post_class($type_class); ?>> |
19 | 19 | <div class="portfolio-content-wrapper"> |
20 | 20 | <div class="portfolio-thumbnail"> |
21 | - <?php if ( has_post_thumbnail() ) : ?> |
|
21 | + <?php if (has_post_thumbnail()) : ?> |
|
22 | 22 | <a href="<?php the_permalink(); ?>"> |
23 | - <?php lsx_thumbnail( 'lsx-thumbnail-wide' ); ?> |
|
23 | + <?php lsx_thumbnail('lsx-thumbnail-wide'); ?> |
|
24 | 24 | </a> |
25 | 25 | <?php endif; ?> |
26 | 26 | </div> |
27 | 27 | |
28 | - <?php the_title( '<a class="portfolio-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark"><span>', '</span></a>' ); ?> |
|
28 | + <?php the_title('<a class="portfolio-title" href="' . esc_url(get_permalink()) . '" rel="bookmark"><span>', '</span></a>'); ?> |
|
29 | 29 | </div> |
30 | 30 | </article> |
31 | 31 | \ No newline at end of file |
@@ -18,19 +18,19 @@ discard block |
||
18 | 18 | <?php lsx_content_top(); ?> |
19 | 19 | |
20 | 20 | <?php |
21 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
22 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
23 | - if('1c' === $layout){ |
|
21 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
22 | + $layout = apply_filters('lsx_layout', $layout); |
|
23 | + if ('1c' === $layout) { |
|
24 | 24 | lsx_breadcrumbs(); |
25 | 25 | } |
26 | 26 | ?> |
27 | 27 | |
28 | - <?php if ( have_posts() ) : global $lsx_archive; $lsx_archive = 1; ?> |
|
28 | + <?php if (have_posts()) : global $lsx_archive; $lsx_archive = 1; ?> |
|
29 | 29 | |
30 | 30 | <?php /* Start the Loop */ ?> |
31 | - <?php while ( have_posts() ) : the_post(); ?> |
|
31 | + <?php while (have_posts()) : the_post(); ?> |
|
32 | 32 | |
33 | - <?php lsx_get_template_part( 'content', get_post_type() ); ?> |
|
33 | + <?php lsx_get_template_part('content', get_post_type()); ?> |
|
34 | 34 | |
35 | 35 | <?php endwhile; ?> |
36 | 36 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | <?php else : ?> |
40 | 40 | |
41 | - <?php lsx_get_template_part( 'content', 'none' ); ?> |
|
41 | + <?php lsx_get_template_part('content', 'none'); ?> |
|
42 | 42 | |
43 | 43 | <?php endif; $lsx_archive = 0; ?> |
44 | 44 |
@@ -36,9 +36,12 @@ |
||
36 | 36 | |
37 | 37 | <?php lsx_paging_nav(); ?> |
38 | 38 | |
39 | - <?php else : ?> |
|
39 | + <?php else { |
|
40 | + : ?> |
|
40 | 41 | |
41 | - <?php lsx_get_template_part( 'content', 'none' ); ?> |
|
42 | + <?php lsx_get_template_part( 'content', 'none' ); |
|
43 | +} |
|
44 | +?> |
|
42 | 45 | |
43 | 46 | <?php endif; $lsx_archive = 0; ?> |
44 | 47 |
@@ -12,17 +12,17 @@ |
||
12 | 12 | |
13 | 13 | <section class="error-404 not-found"> |
14 | 14 | <header class="page-header"> |
15 | - <h1 class="page-title"><?php _e( 'Whoops!', 'lsx' ); ?></h1> |
|
15 | + <h1 class="page-title"><?php _e('Whoops!', 'lsx'); ?></h1> |
|
16 | 16 | </header><!-- .page-header --> |
17 | 17 | |
18 | 18 | <div class="page-content"> |
19 | - <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p> |
|
19 | + <p><?php _e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p> |
|
20 | 20 | |
21 | 21 | </div> <!-- .row --> |
22 | 22 | <?php get_search_form(); ?> |
23 | 23 | <br /> |
24 | 24 | |
25 | - <p><?php _e( 'Alternatively, you can check out the', 'lsx' ); ?> <a href="/sitemap"><strong><?php _e( 'sitemap', 'lsx' ); ?></strong></a></p> |
|
25 | + <p><?php _e('Alternatively, you can check out the', 'lsx'); ?> <a href="/sitemap"><strong><?php _e('sitemap', 'lsx'); ?></strong></a></p> |
|
26 | 26 | |
27 | 27 | </div><!-- .page-content --> |
28 | 28 | </section><!-- .error-404 --> |
@@ -12,17 +12,17 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -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.7.3'); |
10 | 10 | |
@@ -21,25 +21,25 @@ discard block |
||
21 | 21 | require get_template_directory() . '/inc/comment-walker.php'; |
22 | 22 | require get_template_directory() . '/inc/jetpack.php'; |
23 | 23 | require get_template_directory() . '/inc/lazyload.php'; |
24 | -if(class_exists('BuddyPress')){ |
|
24 | +if (class_exists('BuddyPress')) { |
|
25 | 25 | require get_template_directory() . '/inc/buddypress.php'; |
26 | 26 | } |
27 | -if(class_exists('WooCommerce')){ |
|
27 | +if (class_exists('WooCommerce')) { |
|
28 | 28 | require get_template_directory() . '/inc/woocommerce.php'; |
29 | 29 | } |
30 | -if(class_exists('WP_Job_Manager')){ |
|
30 | +if (class_exists('WP_Job_Manager')) { |
|
31 | 31 | require get_template_directory() . '/inc/wp-job-manager.php'; |
32 | 32 | } |
33 | -if(class_exists('Tribe__Events__Main')){ |
|
33 | +if (class_exists('Tribe__Events__Main')) { |
|
34 | 34 | require get_template_directory() . '/inc/the-events-calendar.php'; |
35 | 35 | } |
36 | -if(true === apply_filters( 'amp_is_enabled', true ) ){ |
|
36 | +if (true === apply_filters('amp_is_enabled', true)) { |
|
37 | 37 | require get_template_directory() . '/inc/amp.php'; |
38 | 38 | } |
39 | 39 | require get_template_directory() . '/inc/template-tags.php'; |
40 | 40 | require get_template_directory() . '/inc/extras.php'; |
41 | 41 | require get_template_directory() . '/inc/wp_bootstrap_navwalker.php'; |
42 | -if(class_exists('Sensei_WC')){ |
|
42 | +if (class_exists('Sensei_WC')) { |
|
43 | 43 | require get_template_directory() . '/inc/sensei.php'; |
44 | 44 | } |
45 | 45 | |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | * @category customizer |
52 | 52 | * @return $lsx_controls array() |
53 | 53 | */ |
54 | -function lsx_customizer_core_controls( $lsx_controls ) { |
|
54 | +function lsx_customizer_core_controls($lsx_controls) { |
|
55 | 55 | $lsx_controls['sections']['lsx-core'] = array( |
56 | - 'title' => esc_html__( 'Core Settings', 'lsx' ), |
|
57 | - 'description' => __( 'Change the core settings.', 'lsx' ), |
|
56 | + 'title' => esc_html__('Core Settings', 'lsx'), |
|
57 | + 'description' => __('Change the core settings.', 'lsx'), |
|
58 | 58 | 'priority' => 21 |
59 | 59 | ); |
60 | 60 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | ); |
66 | 66 | |
67 | 67 | $lsx_controls['fields']['lsx_lazyload_status'] = array( |
68 | - 'label' => __( 'Lazy Loading Images', 'lsx' ), |
|
68 | + 'label' => __('Lazy Loading Images', 'lsx'), |
|
69 | 69 | 'section' => 'lsx-core', |
70 | 70 | 'type' => 'checkbox', |
71 | 71 | ); |
@@ -77,14 +77,14 @@ discard block |
||
77 | 77 | ); |
78 | 78 | |
79 | 79 | $lsx_controls['fields']['lsx_preloader_content_status'] = array( |
80 | - 'label' => __( 'Preloader Content', 'lsx' ), |
|
80 | + 'label' => __('Preloader Content', 'lsx'), |
|
81 | 81 | 'section' => 'lsx-core', |
82 | 82 | 'type' => 'checkbox', |
83 | 83 | ); |
84 | 84 | |
85 | 85 | return $lsx_controls; |
86 | 86 | } |
87 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' ); |
|
87 | +add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls'); |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Returns an array of the colour scheme picker. |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * @category customizer |
95 | 95 | * @return $lsx_controls array() |
96 | 96 | */ |
97 | -function lsx_customizer_colour_scheme_controls( $lsx_controls ) { |
|
97 | +function lsx_customizer_colour_scheme_controls($lsx_controls) { |
|
98 | 98 | global $customizer_colour_names; |
99 | 99 | global $customizer_colour_choices; |
100 | 100 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | ); |
106 | 106 | |
107 | 107 | $lsx_controls['fields']['color_scheme'] = array( |
108 | - 'label' => esc_html__( 'Base Color Scheme', 'lsx' ), |
|
108 | + 'label' => esc_html__('Base Color Scheme', 'lsx'), |
|
109 | 109 | 'section' => 'colors', |
110 | 110 | 'type' => 'select', |
111 | 111 | 'priority' => 1, |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $counter = 0; |
117 | 117 | |
118 | - foreach ( $customizer_colour_names as $key => $value ) { |
|
118 | + foreach ($customizer_colour_names as $key => $value) { |
|
119 | 119 | $lsx_controls['settings'][$key] = array( |
120 | 120 | 'default' => $customizer_colour_choices['default']['colors'][$counter], |
121 | 121 | 'type' => 'theme_mod', |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | return $lsx_controls; |
136 | 136 | } |
137 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls' ); |
|
137 | +add_filter('lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls'); |
|
138 | 138 | |
139 | 139 | /** |
140 | 140 | * Returns an array of the layout panel. |
@@ -145,56 +145,56 @@ discard block |
||
145 | 145 | * @return $lsx_controls array() |
146 | 146 | */ |
147 | 147 | function lsx_customizer_layout_controls($lsx_controls) { |
148 | - $lsx_controls['settings']['lsx_header_layout'] = array( |
|
148 | + $lsx_controls['settings']['lsx_header_layout'] = array( |
|
149 | 149 | 'default' => 'inline', //Default setting/value to save |
150 | 150 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
151 | 151 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
152 | 152 | ); |
153 | 153 | $lsx_controls['fields']['lsx_header_layout'] = array( |
154 | - 'label' => __('Header','lsx'), |
|
154 | + 'label' => __('Header', 'lsx'), |
|
155 | 155 | 'section' => 'lsx-layout', |
156 | 156 | 'control' => 'LSX_Customize_Header_Layout_Control', |
157 | - 'choices' => array('central','expanded','inline') |
|
157 | + 'choices' => array('central', 'expanded', 'inline') |
|
158 | 158 | ); |
159 | 159 | $lsx_controls['sections']['lsx-layout'] = array( |
160 | - 'title' => esc_html__( 'Layout', 'lsx' ), |
|
161 | - 'description' => __( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ), |
|
160 | + 'title' => esc_html__('Layout', 'lsx'), |
|
161 | + 'description' => __('Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx'), |
|
162 | 162 | 'priority' => 22 |
163 | 163 | ); |
164 | - $lsx_controls['settings']['lsx_layout'] = array( |
|
164 | + $lsx_controls['settings']['lsx_layout'] = array( |
|
165 | 165 | 'default' => '2cr', //Default setting/value to save |
166 | 166 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
167 | 167 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
168 | 168 | ); |
169 | - $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
169 | + $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
170 | 170 | 'default' => false, //Default setting/value to save |
171 | 171 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
172 | 172 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
173 | 173 | ); |
174 | 174 | $lsx_controls['fields']['lsx_header_fixed'] = array( |
175 | - 'label' => __('Fixed Header','lsx'), |
|
175 | + 'label' => __('Fixed Header', 'lsx'), |
|
176 | 176 | 'section' => 'lsx-layout', |
177 | 177 | 'type' => 'checkbox', |
178 | 178 | ); |
179 | - $lsx_controls['settings']['lsx_header_search'] = array( |
|
179 | + $lsx_controls['settings']['lsx_header_search'] = array( |
|
180 | 180 | 'default' => false, //Default setting/value to save |
181 | 181 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
182 | 182 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
183 | 183 | ); |
184 | 184 | $lsx_controls['fields']['lsx_header_search'] = array( |
185 | - 'label' => __('Search Box in Header','lsx'), |
|
185 | + 'label' => __('Search Box in Header', 'lsx'), |
|
186 | 186 | 'section' => 'lsx-layout', |
187 | 187 | 'type' => 'checkbox', |
188 | 188 | ); |
189 | 189 | $lsx_controls['fields']['lsx_layout'] = array( |
190 | - 'label' => __('Body','lsx'), |
|
190 | + 'label' => __('Body', 'lsx'), |
|
191 | 191 | 'section' => 'lsx-layout', |
192 | 192 | 'control' => 'LSX_Customize_Layout_Control', |
193 | - 'choices' => array('1c','2cr','2cl') |
|
193 | + 'choices' => array('1c', '2cr', '2cl') |
|
194 | 194 | ); |
195 | 195 | return $lsx_controls; |
196 | 196 | } |
197 | -add_filter('lsx_customizer_controls','lsx_customizer_layout_controls'); |
|
197 | +add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls'); |
|
198 | 198 | |
199 | 199 | /** |
200 | 200 | * Returns an array of the font controls. |
@@ -206,11 +206,11 @@ discard block |
||
206 | 206 | */ |
207 | 207 | function lsx_customizer_font_controls($lsx_controls) { |
208 | 208 | $lsx_controls['sections']['lsx-font'] = array( |
209 | - 'title' => __( 'Font', 'lsx' ), |
|
209 | + 'title' => __('Font', 'lsx'), |
|
210 | 210 | 'description' => 'Change the fonts sitewide.', |
211 | 211 | 'priority' => 41 |
212 | 212 | ); |
213 | - $lsx_controls['settings']['lsx_font'] = array( |
|
213 | + $lsx_controls['settings']['lsx_font'] = array( |
|
214 | 214 | 'default' => 'raleway_open_sans', //Default setting/value to save |
215 | 215 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
216 | 216 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
@@ -224,13 +224,13 @@ discard block |
||
224 | 224 | 'choices' => array( |
225 | 225 | 'raleway_open_sans' => array( |
226 | 226 | 'header' => array( |
227 | - "title" => __( 'Raleway', 'lsx' ), |
|
227 | + "title" => __('Raleway', 'lsx'), |
|
228 | 228 | "location" => "Raleway", |
229 | 229 | "cssDeclaration" => "'Raleway', sans-serif", |
230 | 230 | "cssClass" => "raleway", |
231 | 231 | ), |
232 | 232 | 'body' => array( |
233 | - "title" => __( 'Open Sans', 'lsx' ), |
|
233 | + "title" => __('Open Sans', 'lsx'), |
|
234 | 234 | "location" => "Open+Sans", |
235 | 235 | "cssDeclaration" => "'Open Sans', sans-serif", |
236 | 236 | "cssClass" => "openSans" |
@@ -238,13 +238,13 @@ discard block |
||
238 | 238 | ), |
239 | 239 | 'noto_serif_noto_sans' => array( |
240 | 240 | 'header' => array( |
241 | - "title" => __( 'Noto Serif', 'lsx' ), |
|
241 | + "title" => __('Noto Serif', 'lsx'), |
|
242 | 242 | "location" => "Noto+Serif", |
243 | 243 | "cssDeclaration" => "'Noto Serif', serif", |
244 | 244 | "cssClass" => "notoSerif", |
245 | 245 | ), |
246 | 246 | 'body' => array( |
247 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
247 | + "title" => __('Noto Sans', 'lsx'), |
|
248 | 248 | "location" => "Noto+Sans", |
249 | 249 | "cssDeclaration" => "'Noto Sans', sans-serif", |
250 | 250 | "cssClass" => "notoSans", |
@@ -252,13 +252,13 @@ discard block |
||
252 | 252 | ), |
253 | 253 | 'noto_sans_noto_sans' => array( |
254 | 254 | 'header' => array( |
255 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
255 | + "title" => __('Noto Sans', 'lsx'), |
|
256 | 256 | "location" => "Noto+Sans", |
257 | 257 | "cssDeclaration" => "'Noto Sans', sans-serif", |
258 | 258 | "cssClass" => "notoSans", |
259 | 259 | ), |
260 | 260 | 'body' => array( |
261 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
261 | + "title" => __('Noto Sans', 'lsx'), |
|
262 | 262 | "location" => "Noto+Sans", |
263 | 263 | "cssDeclaration" => "'Noto Sans', sans-serif", |
264 | 264 | "cssClass" => "notoSans", |
@@ -266,13 +266,13 @@ discard block |
||
266 | 266 | ), |
267 | 267 | 'alegreya_open_sans' => array( |
268 | 268 | 'header' => array( |
269 | - "title" => __( 'Alegreya', 'lsx' ), |
|
269 | + "title" => __('Alegreya', 'lsx'), |
|
270 | 270 | "location" => "Alegreya", |
271 | 271 | "cssDeclaration" => "'Alegreya', serif", |
272 | 272 | "cssClass" => "alegreya", |
273 | 273 | ), |
274 | 274 | 'body' => array( |
275 | - "title" => __( 'Open Sans', 'lsx' ), |
|
275 | + "title" => __('Open Sans', 'lsx'), |
|
276 | 276 | "location" => "Open+Sans", |
277 | 277 | "cssDeclaration" => "'Open Sans', sans-serif", |
278 | 278 | "cssClass" => "openSans" |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | ); |
284 | 284 | return $lsx_controls; |
285 | 285 | } |
286 | -add_filter('lsx_customizer_controls','lsx_customizer_font_controls'); |
|
286 | +add_filter('lsx_customizer_controls', 'lsx_customizer_font_controls'); |
|
287 | 287 | |
288 | 288 | /** |
289 | 289 | * Returns an array of $controls for the customizer class to generate. |
@@ -293,12 +293,12 @@ discard block |
||
293 | 293 | * @category customizer |
294 | 294 | * @return $lsx_controls array() |
295 | 295 | */ |
296 | -function lsx_get_customizer_controls(){ |
|
296 | +function lsx_get_customizer_controls() { |
|
297 | 297 | $lsx_controls = array(); |
298 | 298 | $lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls); |
299 | 299 | return $lsx_controls; |
300 | 300 | } |
301 | -$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() ); |
|
301 | +$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls()); |
|
302 | 302 | |
303 | -add_image_size( 'lsx-thumbnail-wide', 350, 230, true ); |
|
304 | -add_image_size( 'lsx-thumbnail-single', 750, 350, true ); |
|
305 | 303 | \ No newline at end of file |
304 | +add_image_size('lsx-thumbnail-wide', 350, 230, true); |
|
305 | +add_image_size('lsx-thumbnail-single', 750, 350, true); |
|
306 | 306 | \ 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.7.3'); |
10 | 13 |
@@ -23,17 +23,17 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -40,9 +40,12 @@ |
||
40 | 40 | |
41 | 41 | <?php lsx_paging_nav(); ?> |
42 | 42 | |
43 | - <?php else : ?> |
|
43 | + <?php else { |
|
44 | + : ?> |
|
44 | 45 | |
45 | - <?php get_template_part( 'content', 'none' ); ?> |
|
46 | + <?php get_template_part( 'content', 'none' ); |
|
47 | +} |
|
48 | +?> |
|
46 | 49 | |
47 | 50 | <?php endif; ?> |
48 | 51 |
@@ -19,25 +19,25 @@ discard block |
||
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){ |
|
25 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
26 | + $layout = apply_filters('lsx_layout', $layout); |
|
27 | + if ('1c' === $layout) { |
|
28 | 28 | lsx_breadcrumbs(); |
29 | 29 | } |
30 | 30 | ?> |
31 | 31 | |
32 | 32 | <?php /* Start the Loop */ ?> |
33 | - <?php while ( have_posts() ) : the_post(); ?> |
|
33 | + <?php while (have_posts()) : the_post(); ?> |
|
34 | 34 | |
35 | 35 | <?php |
36 | 36 | /* Include the Post-Format-specific template for the content. |
37 | 37 | * If you want to override this in a child theme, then include a file |
38 | 38 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
39 | 39 | */ |
40 | - get_template_part( 'content', get_post_format() ); |
|
40 | + get_template_part('content', get_post_format()); |
|
41 | 41 | ?> |
42 | 42 | |
43 | 43 | <?php endwhile; ?> |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | <?php else : ?> |
48 | 48 | |
49 | - <?php get_template_part( 'content', 'none' ); ?> |
|
49 | + <?php get_template_part('content', 'none'); ?> |
|
50 | 50 | |
51 | 51 | <?php endif; ?> |
52 | 52 |
@@ -44,9 +44,12 @@ |
||
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 |
@@ -22,9 +22,9 @@ |
||
22 | 22 | |
23 | 23 | <?php lsx_content_top(); ?> |
24 | 24 | |
25 | - <?php while ( have_posts() ) : the_post(); ?> |
|
25 | + <?php while (have_posts()) : the_post(); ?> |
|
26 | 26 | |
27 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
27 | + <?php get_template_part('content', get_post_type()); ?> |
|
28 | 28 | |
29 | 29 | <?php endwhile; // end of the loop. ?> |
30 | 30 |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | <?php lsx_content_top(); ?> |
19 | 19 | |
20 | - <?php while ( have_posts() ) : the_post(); ?> |
|
20 | + <?php while (have_posts()) : the_post(); ?> |
|
21 | 21 | |
22 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
22 | + <?php get_template_part('content', get_post_type()); ?> |
|
23 | 23 | |
24 | 24 | <?php endwhile; // end of the loop. ?> |
25 | 25 | |
@@ -35,6 +35,6 @@ discard block |
||
35 | 35 | <?php lsx_content_wrap_after(); ?> |
36 | 36 | |
37 | 37 | <?php get_sidebar(); ?> |
38 | -<?php get_sidebar( 'alt' ); ?> |
|
38 | +<?php get_sidebar('alt'); ?> |
|
39 | 39 | |
40 | 40 | <?php get_footer(); |
41 | 41 | \ No newline at end of file |