Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * The template for displaying all pages |
---|
4 | * |
---|
5 | * This is the template that displays all pages by default. |
---|
6 | * Please note that this is the WordPress construct of pages |
---|
7 | * and that other 'pages' on your WordPress site may use a |
---|
8 | * different template. |
---|
9 | * |
---|
10 | * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
---|
11 | * |
---|
12 | * @package CoverNews |
---|
13 | */ |
---|
14 | |
---|
15 | get_header(); ?> |
---|
16 | <div class="section-block-upper row"> |
---|
17 | <div id="primary" class="content-area"> |
---|
18 | <main id="main" class="site-main"> |
---|
19 | |
---|
20 | <?php |
---|
21 | while (have_posts()) : the_post(); |
---|
22 | |
---|
23 | get_template_part('template-parts/content', 'page'); |
---|
24 | |
---|
25 | // If comments are open or we have at least one comment, load up the comment template. |
---|
26 | if (comments_open() || get_comments_number()) : |
---|
27 | comments_template(); |
---|
28 | endif; |
---|
29 | |
---|
30 | endwhile; // End of the loop. |
---|
31 | ?> |
---|
32 | |
---|
33 | </main><!-- #main --> |
---|
34 | </div><!-- #primary --> |
---|
35 | |
---|
36 | <?php |
---|
37 | get_sidebar(); |
---|
38 | ?> |
---|
39 | </div> |
---|
40 | <?php |
---|
41 | get_footer(); |
---|
Note: See
TracBrowser
for help on using the repository browser.