@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Customize Swatch Control Class |
6 | 6 | * |
7 | 7 | * @since 1.0.0 |
8 | 8 | */ |
9 | -if( !class_exists( 'WP_Customize_Control' ) ){ |
|
9 | +if ( ! class_exists('WP_Customize_Control')) { |
|
10 | 10 | return; |
11 | 11 | } |
12 | 12 | class LSX_Customize_Layout_Control extends WP_Customize_Control { |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | * @param string $id |
39 | 39 | * @param array $args |
40 | 40 | */ |
41 | - public function __construct( $manager, $id, $args = array() ) { |
|
42 | - parent::__construct( $manager, $id, $args ); |
|
43 | - if( !empty( $args['choices'] ) ){ |
|
41 | + public function __construct($manager, $id, $args = array()) { |
|
42 | + parent::__construct($manager, $id, $args); |
|
43 | + if ( ! empty($args['choices'])) { |
|
44 | 44 | $this->layouts = $args['choices']; |
45 | 45 | } |
46 | 46 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function enqueue() { |
54 | 54 | // |
55 | - wp_enqueue_script( 'lsx-layout-control', get_template_directory_uri() .'/js/customizer-layout.js', array('jquery'), null, true ); |
|
55 | + wp_enqueue_script('lsx-layout-control', get_template_directory_uri() . '/js/customizer-layout.js', array('jquery'), null, true); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -62,26 +62,26 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function render_content() { |
64 | 64 | |
65 | - $post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); |
|
65 | + $post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id)); |
|
66 | 66 | $class = 'customize-control customize-control-' . $this->type; |
67 | 67 | $value = $this->value(); |
68 | 68 | |
69 | 69 | ?> |
70 | 70 | <label> |
71 | - <?php if ( ! empty( $this->label ) ) { ?> |
|
72 | - <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> |
|
71 | + <?php if ( ! empty($this->label)) { ?> |
|
72 | + <span class="customize-control-title"><?php echo esc_html($this->label); ?></span> |
|
73 | 73 | <?php } |
74 | - if ( ! empty( $this->description ) ) { ?> |
|
74 | + if ( ! empty($this->description)) { ?> |
|
75 | 75 | <span class="description customize-control-description"><?php echo $this->description; ?></span> |
76 | 76 | <?php } ?> |
77 | 77 | <div class="layouts-selector"> |
78 | 78 | <?php |
79 | - foreach( $this->layouts as $layout ){ |
|
79 | + foreach ($this->layouts as $layout) { |
|
80 | 80 | $sel = 'border: 1px solid transparent;'; |
81 | - if( $value == $layout ){ |
|
81 | + if ($value == $layout) { |
|
82 | 82 | $sel = 'border: 1px solid rgb(43, 166, 203);'; |
83 | 83 | } |
84 | - echo '<img class="layout-button" style="padding:2px;'. $sel .'" src="' . get_template_directory_uri() .'/img/' . $layout . '.png" data-option="' . $layout . '">'; |
|
84 | + echo '<img class="layout-button" style="padding:2px;' . $sel . '" src="' . get_template_directory_uri() . '/img/' . $layout . '.png" data-option="' . $layout . '">'; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | ?> |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | |
14 | 14 | <?php lsx_content_top(); ?> |
15 | 15 | |
16 | - <?php while ( have_posts() ) : the_post(); ?> |
|
16 | + <?php while (have_posts()) : the_post(); ?> |
|
17 | 17 | |
18 | - <?php get_template_part( 'content', 'page' ); ?> |
|
18 | + <?php get_template_part('content', 'page'); ?> |
|
19 | 19 | |
20 | 20 | <?php endwhile; // end of the loop. ?> |
21 | 21 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | <?php |
25 | 25 | // If comments are open or we have at least one comment, load up the comment template |
26 | - if ( comments_open() || '0' != get_comments_number() ) : |
|
26 | + if (comments_open() || '0' != get_comments_number()) : |
|
27 | 27 | comments_template(); |
28 | 28 | endif; |
29 | 29 | ?> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Layout hooks |
@@ -7,15 +7,15 @@ discard block |
||
7 | 7 | * @package lsx |
8 | 8 | */ |
9 | 9 | |
10 | -function lsx_layout_selector( $class, $area = 'site' ) { |
|
10 | +function lsx_layout_selector($class, $area = 'site') { |
|
11 | 11 | |
12 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
13 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
12 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
13 | + $layout = apply_filters('lsx_layout', $layout); |
|
14 | 14 | |
15 | 15 | $default_size = 'sm'; |
16 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
16 | + $size = apply_filters('lsx_bootstrap_column_size', $default_size); |
|
17 | 17 | |
18 | - switch ( $layout ) { |
|
18 | + switch ($layout) { |
|
19 | 19 | case '1c': |
20 | 20 | $main_class = 'col-' . $size . '-12'; |
21 | 21 | $sidebar_class = 'col-' . $size . '-12'; |
@@ -34,11 +34,11 @@ discard block |
||
34 | 34 | break; |
35 | 35 | } |
36 | 36 | |
37 | - if ( $class == 'main' ) { |
|
37 | + if ($class == 'main') { |
|
38 | 38 | return $main_class; |
39 | 39 | } |
40 | 40 | |
41 | - if ( $class == 'sidebar' ) { |
|
41 | + if ($class == 'sidebar') { |
|
42 | 42 | return $sidebar_class; |
43 | 43 | } |
44 | 44 | } |
@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | * .main classes |
48 | 48 | */ |
49 | 49 | function lsx_main_class() { |
50 | - return lsx_layout_selector( 'main' ); |
|
50 | + return lsx_layout_selector('main'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | function lsx_home_main_class() { |
54 | - return lsx_layout_selector( 'main', 'home' ); |
|
54 | + return lsx_layout_selector('main', 'home'); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -60,10 +60,10 @@ discard block |
||
60 | 60 | function lsx_index_main_class() { |
61 | 61 | |
62 | 62 | $show_on_front = get_option('show_on_front'); |
63 | - if('page' == $show_on_front){ |
|
64 | - return lsx_layout_selector( 'main', 'home' ); |
|
65 | - }else{ |
|
66 | - return lsx_layout_selector( 'main', 'site' ); |
|
63 | + if ('page' == $show_on_front) { |
|
64 | + return lsx_layout_selector('main', 'home'); |
|
65 | + } else { |
|
66 | + return lsx_layout_selector('main', 'site'); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | } |
@@ -72,11 +72,11 @@ discard block |
||
72 | 72 | * .sidebar classes |
73 | 73 | */ |
74 | 74 | function lsx_sidebar_class() { |
75 | - return lsx_layout_selector( 'sidebar' ); |
|
75 | + return lsx_layout_selector('sidebar'); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | function lsx_home_sidebar_class() { |
79 | - return lsx_layout_selector( 'sidebar', 'home' ); |
|
79 | + return lsx_layout_selector('sidebar', 'home'); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | $classes = 'banner navbar navbar-default'; |
92 | 92 | |
93 | 93 | //Fixed header |
94 | - $fixed_header = get_theme_mod('lsx_header_fixed',false); |
|
95 | - if(false != $fixed_header){ |
|
94 | + $fixed_header = get_theme_mod('lsx_header_fixed', false); |
|
95 | + if (false != $fixed_header) { |
|
96 | 96 | $classes .= ' navbar-static-top'; |
97 | 97 | } |
98 | 98 | |
99 | - if(false != $additional){ |
|
100 | - $classes .= ' '.$additional; |
|
99 | + if (false != $additional) { |
|
100 | + $classes .= ' ' . $additional; |
|
101 | 101 | } |
102 | 102 | echo $classes; |
103 | 103 | } |
@@ -114,37 +114,37 @@ discard block |
||
114 | 114 | $classes = 'top-menu-default'; |
115 | 115 | |
116 | 116 | //Fixed header |
117 | - $fixed_header = get_theme_mod('lsx_header_fixed',false); |
|
118 | - if(false != $fixed_header){ |
|
117 | + $fixed_header = get_theme_mod('lsx_header_fixed', false); |
|
118 | + if (false != $fixed_header) { |
|
119 | 119 | $classes .= ' top-menu-fixed'; |
120 | 120 | } |
121 | 121 | |
122 | - if(false != $additional){ |
|
123 | - $classes .= ' '.$additional; |
|
122 | + if (false != $additional) { |
|
123 | + $classes .= ' ' . $additional; |
|
124 | 124 | } |
125 | 125 | echo $classes; |
126 | 126 | } |
127 | 127 | |
128 | -add_action( 'lsx_footer_before', 'lsx_add_footer_sidebar_area' ); |
|
129 | -if ( ! function_exists( 'lsx_add_footer_sidebar_area' ) ) { |
|
128 | +add_action('lsx_footer_before', 'lsx_add_footer_sidebar_area'); |
|
129 | +if ( ! function_exists('lsx_add_footer_sidebar_area')) { |
|
130 | 130 | function lsx_add_footer_sidebar_area() { |
131 | - if ( is_active_sidebar( 'sidebar-footer-cta' ) ) : ?> |
|
131 | + if (is_active_sidebar('sidebar-footer-cta')) : ?> |
|
132 | 132 | <div id="footer-cta"> |
133 | 133 | <div class="container"> |
134 | 134 | <div class="lsx-full-width"> |
135 | 135 | <div class="lsx-hero-unit"> |
136 | - <?php dynamic_sidebar( 'sidebar-footer-cta' ); ?> |
|
136 | + <?php dynamic_sidebar('sidebar-footer-cta'); ?> |
|
137 | 137 | </div> |
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | </div> |
141 | 141 | <?php endif; ?> |
142 | 142 | |
143 | - <?php if ( is_active_sidebar( 'sidebar-footer' ) ) : ?> |
|
143 | + <?php if (is_active_sidebar('sidebar-footer')) : ?> |
|
144 | 144 | <div id="footer-widgets"> |
145 | 145 | <div class="container"> |
146 | 146 | <div class="row"> |
147 | - <?php dynamic_sidebar( 'sidebar-footer' ); ?> |
|
147 | + <?php dynamic_sidebar('sidebar-footer'); ?> |
|
148 | 148 | </div> |
149 | 149 | </div> |
150 | 150 | </div> |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | <?php |
168 | 168 | else*/if (is_singular('post')) : |
169 | 169 | $format = get_post_format(); |
170 | - if ( false === $format ) { |
|
170 | + if (false === $format) { |
|
171 | 171 | $format = 'standard'; |
172 | 172 | } |
173 | 173 | $format_link = get_post_format_link($format); |
@@ -189,14 +189,14 @@ discard block |
||
189 | 189 | elseif (is_search()) : |
190 | 190 | ?> |
191 | 191 | <header class="archive-header"> |
192 | - <h1 class="archive-title"><?php printf( __( 'Search Results for: %s', 'lsx' ), '<span>' . get_search_query() . '</span>' ); ?></h1> |
|
192 | + <h1 class="archive-title"><?php printf(__('Search Results for: %s', 'lsx'), '<span>' . get_search_query() . '</span>'); ?></h1> |
|
193 | 193 | </header> |
194 | 194 | <?php |
195 | 195 | elseif (is_author()) : |
196 | 196 | ?> |
197 | 197 | <header class="archive-header"> |
198 | 198 | <h1 class="archive-title"> |
199 | - <?php printf( __( 'Author: %s', 'lsx' ), get_the_author() ); ?> |
|
199 | + <?php printf(__('Author: %s', 'lsx'), get_the_author()); ?> |
|
200 | 200 | </h1> |
201 | 201 | |
202 | 202 | <?php if (get_the_author_meta('description')) { ?> |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | <?php } ?> |
205 | 205 | </header> |
206 | 206 | <?php |
207 | - elseif (is_archive() && class_exists('WooCommerce') && is_post_type_archive('product') ) : |
|
207 | + elseif (is_archive() && class_exists('WooCommerce') && is_post_type_archive('product')) : |
|
208 | 208 | ?> |
209 | 209 | <header class="archive-header"> |
210 | 210 | <h1 class="archive-title"><?php _e('Shop', 'lsx'); ?></h1> |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | ?> |
216 | 216 | <header class="archive-header"> |
217 | 217 | <h1 class="archive-title"> |
218 | - <?php if ( has_post_format() && !is_category() && !is_tag() && !is_date() && !is_tax('post_format') ) { ?> |
|
218 | + <?php if (has_post_format() && ! is_category() && ! is_tag() && ! is_date() && ! is_tax('post_format')) { ?> |
|
219 | 219 | Type: <?php the_archive_title(); ?> |
220 | 220 | <?php } else { ?> |
221 | 221 | <?php the_archive_title(); ?> |
@@ -253,16 +253,16 @@ discard block |
||
253 | 253 | ?> |
254 | 254 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"> |
255 | 255 | <?php } |
256 | -add_action( 'wp_head', 'lsx_add_viewport_meta_tag' ); |
|
256 | +add_action('wp_head', 'lsx_add_viewport_meta_tag'); |
|
257 | 257 | |
258 | 258 | |
259 | 259 | /** |
260 | 260 | * Add a search form to just above the nav menu |
261 | 261 | */ |
262 | 262 | function lsx_header_search_form() { |
263 | - $search_form = get_theme_mod( 'lsx_header_search', 0 ); |
|
264 | - if($search_form || is_customize_preview()){ |
|
265 | - get_search_form( true ); |
|
263 | + $search_form = get_theme_mod('lsx_header_search', 0); |
|
264 | + if ($search_form || is_customize_preview()) { |
|
265 | + get_search_form(true); |
|
266 | 266 | } |
267 | 267 | } |
268 | -add_action( 'lsx_nav_before', 'lsx_header_search_form', 0 ); |
|
269 | 268 | \ No newline at end of file |
269 | +add_action('lsx_nav_before', 'lsx_header_search_form', 0); |
|
270 | 270 | \ No newline at end of file |
@@ -1,17 +1,17 @@ discard block |
||
1 | 1 | <?php |
2 | - if ( isset( $GLOBALS['comment_depth'] ) ) { |
|
3 | - $depth = intval( $GLOBALS['comment_depth'] ); |
|
2 | + if (isset($GLOBALS['comment_depth'])) { |
|
3 | + $depth = intval($GLOBALS['comment_depth']); |
|
4 | 4 | } else { |
5 | 5 | $depth = 1; |
6 | 6 | } |
7 | 7 | |
8 | - $max_depth = intval( get_option( 'thread_comments_depth' ) ); |
|
8 | + $max_depth = intval(get_option('thread_comments_depth')); |
|
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <?php echo get_avatar($comment, '64'); ?> |
12 | 12 | <div class="media-body"> |
13 | 13 | <h4 class="media-heading"><?php echo get_comment_author_link(); ?></h4> |
14 | - <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(esc_html__('%1$s on %2$s', 'lsx'), get_comment_date(), get_comment_time()); ?></a></time> |
|
14 | + <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(esc_html__('%1$s on %2$s', 'lsx'), get_comment_date(), get_comment_time()); ?></a></time> |
|
15 | 15 | <?php edit_comment_link(esc_html__('(Edit)', 'lsx'), '', ''); ?> |
16 | 16 | |
17 | 17 | <?php if ($comment->comment_approved == '0') : ?> |
@@ -21,4 +21,4 @@ discard block |
||
21 | 21 | <?php endif; ?> |
22 | 22 | |
23 | 23 | <?php comment_text(); ?> |
24 | -<?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $max_depth ) ); |
|
25 | 24 | \ No newline at end of file |
25 | +<?php comment_reply_link(array('depth' => $depth, 'max_depth' => $max_depth)); |
|
26 | 26 | \ No newline at end of file |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | <?php lsx_content_wrap_before(); ?> |
16 | 16 | |
17 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
17 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
18 | 18 | |
19 | 19 | <?php lsx_content_before(); ?> |
20 | 20 | |
@@ -22,9 +22,9 @@ discard block |
||
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 |
@@ -10,23 +10,23 @@ discard block |
||
10 | 10 | |
11 | 11 | <?php lsx_content_top(); ?> |
12 | 12 | |
13 | - <?php if(is_tax()){ ?> |
|
13 | + <?php if (is_tax()) { ?> |
|
14 | 14 | <div class="entry-content"> |
15 | 15 | <?php the_archive_description(); ?> |
16 | 16 | </div> |
17 | 17 | <?php } ?> |
18 | 18 | |
19 | 19 | <?php |
20 | - if ( post_type_exists( 'jetpack-portfolio' ) && have_posts() ) : |
|
20 | + if (post_type_exists('jetpack-portfolio') && have_posts()) : |
|
21 | 21 | ?> |
22 | 22 | |
23 | - <?php if(!is_tax()){ lsx_portfolio_sorter(); } ?> |
|
23 | + <?php if ( ! is_tax()) { lsx_portfolio_sorter(); } ?> |
|
24 | 24 | |
25 | 25 | <div class="filter-items-wrapper lsx-portfolio-wrapper"> |
26 | 26 | <div id="portfolio-infinite-scroll-wrapper" class="filter-items-container lsx-portfolio masonry"> |
27 | - <?php while ( have_posts() ) : the_post(); ?> |
|
27 | + <?php while (have_posts()) : the_post(); ?> |
|
28 | 28 | |
29 | - <?php get_template_part( 'content', 'portfolio' ); ?> |
|
29 | + <?php get_template_part('content', 'portfolio'); ?> |
|
30 | 30 | |
31 | 31 | <?php endwhile; ?> |
32 | 32 | </div> |
@@ -40,17 +40,17 @@ discard block |
||
40 | 40 | |
41 | 41 | <section class="no-results not-found"> |
42 | 42 | <header class="page-header"> |
43 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
43 | + <h1 class="page-title"><?php esc_html_e('Nothing Found', 'lsx'); ?></h1> |
|
44 | 44 | </header><!-- .page-header --> |
45 | 45 | |
46 | 46 | <div class="page-content"> |
47 | - <?php if ( current_user_can( 'publish_posts' ) ) : ?> |
|
47 | + <?php if (current_user_can('publish_posts')) : ?> |
|
48 | 48 | |
49 | - <p><?php esc_html_e( 'Ready to publish your first project?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
|
49 | + <p><?php esc_html_e('Ready to publish your first project?', 'lsx'); ?> <a href="<?php echo esc_url(admin_url('post-new.php?post_type=jetpack-portfolio')) ?>"><?php esc_html_e('Get started here', 'lsx'); ?></a></p> |
|
50 | 50 | |
51 | 51 | <?php else : ?> |
52 | 52 | |
53 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
53 | + <p><?php esc_html_e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx'); ?></p> |
|
54 | 54 | <?php get_search_form(); ?> |
55 | 55 | |
56 | 56 | <?php endif; ?> |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | |
6 | 6 | <?php lsx_content_wrap_before(); ?> |
7 | 7 | |
8 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
8 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
9 | 9 | |
10 | 10 | <?php lsx_content_before(); ?> |
11 | 11 | |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | <?php lsx_content_top(); ?> |
15 | 15 | |
16 | - <?php while ( have_posts() ) : the_post(); ?> |
|
16 | + <?php while (have_posts()) : the_post(); ?> |
|
17 | 17 | |
18 | 18 | <?php lsx_entry_before(); ?> |
19 | 19 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | <?php lsx_sitemap_custom_post_type(); ?> |
29 | 29 | |
30 | 30 | </div><!-- .entry-content --> |
31 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
31 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
32 | 32 | |
33 | 33 | <?php lsx_entry_bottom(); ?> |
34 | 34 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | |
6 | 6 | <?php lsx_content_wrap_before(); ?> |
7 | 7 | |
8 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
8 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
9 | 9 | |
10 | 10 | <?php lsx_content_before(); ?> |
11 | 11 | |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | <?php lsx_content_top(); ?> |
15 | 15 | |
16 | - <?php while ( have_posts() ) : the_post(); ?> |
|
16 | + <?php while (have_posts()) : the_post(); ?> |
|
17 | 17 | |
18 | 18 | <?php lsx_entry_before(); ?> |
19 | 19 | |
@@ -22,28 +22,28 @@ discard block |
||
22 | 22 | <?php lsx_entry_top(); ?> |
23 | 23 | |
24 | 24 | <div class="entry-content"> |
25 | - <h2><?php _e( 'The Last 30 Posts', 'lsx' ); ?></h3> |
|
25 | + <h2><?php _e('The Last 30 Posts', 'lsx'); ?></h3> |
|
26 | 26 | <ul> |
27 | - <?php $loop = new WP_Query( array( 'posts_per_page' => 30 ) ); ?> |
|
28 | - <?php if ( $loop->have_posts() ) { while ( $loop->have_posts() ) { $loop->the_post(); ?> |
|
27 | + <?php $loop = new WP_Query(array('posts_per_page' => 30)); ?> |
|
28 | + <?php if ($loop->have_posts()) { while ($loop->have_posts()) { $loop->the_post(); ?> |
|
29 | 29 | <?php $loop->is_home = false; ?> |
30 | - <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo $post->comment_count; ?> <?php _e( 'comments', 'lsx' ); ?></li> |
|
30 | + <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo $post->comment_count; ?> <?php _e('comments', 'lsx'); ?></li> |
|
31 | 31 | <?php } } wp_reset_postdata(); ?> |
32 | 32 | </ul> |
33 | 33 | |
34 | - <h2><?php _e( 'Categories', 'lsx' ); ?></h3> |
|
34 | + <h2><?php _e('Categories', 'lsx'); ?></h3> |
|
35 | 35 | |
36 | 36 | <ul> |
37 | - <?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?> |
|
37 | + <?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?> |
|
38 | 38 | </ul> |
39 | 39 | |
40 | - <h2><?php _e( 'Monthly Archives', 'lsx' ); ?></h3> |
|
40 | + <h2><?php _e('Monthly Archives', 'lsx'); ?></h3> |
|
41 | 41 | |
42 | 42 | <ul> |
43 | - <?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?> |
|
43 | + <?php wp_get_archives('type=monthly&show_post_count=1'); ?> |
|
44 | 44 | </ul> |
45 | 45 | </div><!-- .entry-content --> |
46 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
46 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
47 | 47 | |
48 | 48 | <?php lsx_entry_bottom(); ?> |
49 | 49 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | <?php lsx_content_wrap_before(); ?> |
11 | 11 | |
12 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
12 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
13 | 13 | |
14 | 14 | <?php lsx_content_before(); ?> |
15 | 15 | |
@@ -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 |