| 1 | <?php |
| 2 | /** |
| 3 | * Template Name: Two columns Template |
| 4 | */ |
| 5 | |
| 6 | get_header(); ?> |
| 7 | <div class="wrap"> |
| 8 | <div id="primary" class="content-area"> |
| 9 | <main id="main" class="site-main" role="main"> |
| 10 | |
| 11 | <?php |
| 12 | /* Start the Loop */ |
| 13 | while ( have_posts() ) : the_post(); |
| 14 | |
| 15 | get_template_part( 'template-parts/post/content', get_post_format() ); |
| 16 | |
| 17 | // If comments are open or we have at least one comment, load up the comment template. |
| 18 | if ( comments_open() || get_comments_number() ) : |
| 19 | comments_template(); |
| 20 | endif; |
| 21 | |
| 22 | the_post_navigation( array( |
| 23 | 'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>', |
| 24 | 'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>', |
| 25 | ) ); |
| 26 | |
| 27 | endwhile; // End of the loop. |
| 28 | ?> |
| 29 | |
| 30 | </main><!-- #main --> |
| 31 | </div><!-- #primary --> |
| 32 | <?php get_sidebar(); ?> |
| 33 | </div><!-- .wrap --> |
| 34 | |
| 35 | <?php get_footer(); |