lightspeeddevelopment /
lsx
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * The Template for displaying all single posts. |
||
| 4 | * |
||
| 5 | * @package lsx |
||
| 6 | */ |
||
| 7 | |||
| 8 | get_header(); ?> |
||
| 9 | |||
| 10 | <?php lsx_content_wrap_before(); ?> |
||
| 11 | |||
| 12 | <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
||
| 13 | |||
| 14 | <?php lsx_content_before(); ?> |
||
| 15 | |||
| 16 | <main id="main" class="site-main" role="main"> |
||
| 17 | |||
| 18 | <?php lsx_content_top(); ?> |
||
| 19 | |||
| 20 | <?php if ( have_posts() ) : ?> |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 21 | |||
| 22 | <?php |
||
| 23 | while ( have_posts() ) : |
||
|
0 ignored issues
–
show
|
|||
| 24 | the_post(); |
||
| 25 | ?> |
||
| 26 | |||
| 27 | <?php |
||
| 28 | if ( is_singular( 'post' ) ) { |
||
|
0 ignored issues
–
show
|
|||
| 29 | get_template_part( 'partials/content', 'post' ); |
||
| 30 | } else { |
||
| 31 | get_template_part( 'partials/content', 'custom' ); |
||
| 32 | } |
||
| 33 | ?> |
||
| 34 | |||
| 35 | <?php endwhile; ?> |
||
| 36 | |||
| 37 | <?php endif; ?> |
||
| 38 | |||
| 39 | <?php lsx_content_bottom(); ?> |
||
| 40 | |||
| 41 | </main><!-- #main --> |
||
| 42 | |||
| 43 | <?php lsx_content_after(); ?> |
||
| 44 | |||
| 45 | <?php |
||
| 46 | if ( is_singular( 'post' ) ) { |
||
|
0 ignored issues
–
show
|
|||
| 47 | lsx_post_nav(); |
||
| 48 | } |
||
| 49 | ?> |
||
| 50 | |||
| 51 | <?php |
||
| 52 | if ( comments_open() ) { |
||
|
0 ignored issues
–
show
|
|||
| 53 | comments_template(); |
||
| 54 | } |
||
| 55 | ?> |
||
| 56 | |||
| 57 | </div><!-- #primary --> |
||
| 58 | |||
| 59 | <?php lsx_content_wrap_after(); ?> |
||
| 60 | |||
| 61 | <?php get_sidebar(); ?> |
||
| 62 | |||
| 63 | <?php |
||
| 64 | get_footer(); |
||
| 65 |