@@ -11,33 +11,33 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | <?php lsx_content_wrap_before(); ?> |
| 13 | 13 | |
| 14 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 14 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 15 | 15 | |
| 16 | 16 | <?php lsx_content_before(); ?> |
| 17 | 17 | |
| 18 | 18 | <main id="main" class="site-main"> |
| 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 | 28 | <?php lsx_content_top(); ?> |
| 29 | 29 | |
| 30 | - <?php if ( have_posts() ) : ?> |
|
| 30 | + <?php if (have_posts()) : ?> |
|
| 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 | |
@@ -11,33 +11,33 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | <?php lsx_content_wrap_before(); ?> |
| 13 | 13 | |
| 14 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 14 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 15 | 15 | |
| 16 | 16 | <?php lsx_content_before(); ?> |
| 17 | 17 | |
| 18 | 18 | <main id="main" class="site-main"> |
| 19 | 19 | |
| 20 | 20 | <?php |
| 21 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
| 22 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
| 23 | - if('1c' === $layout && !is_post_type_archive('tribe_events')){ |
|
| 21 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
| 22 | + $layout = apply_filters('lsx_layout', $layout); |
|
| 23 | + if ('1c' === $layout && ! is_post_type_archive('tribe_events')) { |
|
| 24 | 24 | lsx_breadcrumbs(); |
| 25 | 25 | } |
| 26 | 26 | ?> |
| 27 | 27 | |
| 28 | 28 | <?php lsx_content_top(); ?> |
| 29 | 29 | |
| 30 | - <?php if ( have_posts() ) : ?> |
|
| 30 | + <?php if (have_posts()) : ?> |
|
| 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 | |
@@ -9,33 +9,33 @@ 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 | |
| 16 | 16 | <main id="main" class="site-main"> |
| 17 | 17 | |
| 18 | 18 | <?php |
| 19 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
| 20 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
| 21 | - if('1c' === $layout){ |
|
| 19 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
| 20 | + $layout = apply_filters('lsx_layout', $layout); |
|
| 21 | + if ('1c' === $layout) { |
|
| 22 | 22 | lsx_breadcrumbs(); |
| 23 | 23 | } |
| 24 | 24 | ?> |
| 25 | 25 | |
| 26 | 26 | <?php lsx_content_top(); ?> |
| 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 | 33 | <?php |
| 34 | 34 | /* Include the Post-Format-specific template for the content. |
| 35 | 35 | * If you want to override this in a child theme, then include a file |
| 36 | 36 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
| 37 | 37 | */ |
| 38 | - get_template_part( 'content', get_post_format() ); |
|
| 38 | + get_template_part('content', get_post_format()); |
|
| 39 | 39 | ?> |
| 40 | 40 | |
| 41 | 41 | <?php endwhile; ?> |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | <?php else : ?> |
| 46 | 46 | |
| 47 | - <?php get_template_part( 'content', 'none' ); ?> |
|
| 47 | + <?php get_template_part('content', 'none'); ?> |
|
| 48 | 48 | |
| 49 | 49 | <?php endif; $lsx_archive = 0; ?> |
| 50 | 50 | |