| 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://codex.wordpress.org/Template_Hierarchy |
|---|
| 11 | * |
|---|
| 12 | * @package Astra |
|---|
| 13 | * @since 1.0 |
|---|
| 14 | */ |
|---|
| 15 | |
|---|
| 16 | get_header(); ?> |
|---|
| 17 | |
|---|
| 18 | <?php if ( ast_page_layout() == 'left-sidebar' ) : ?> |
|---|
| 19 | |
|---|
| 20 | <?php get_sidebar(); ?> |
|---|
| 21 | |
|---|
| 22 | <?php endif ?> |
|---|
| 23 | |
|---|
| 24 | <div id="primary" <?php ast_primary_class(); ?>> |
|---|
| 25 | <main id="main" class="site-main" role="main"> |
|---|
| 26 | |
|---|
| 27 | <?php while ( have_posts() ) : the_post(); ?> |
|---|
| 28 | |
|---|
| 29 | <?php get_template_part( 'template-parts/content', 'page' ); ?> |
|---|
| 30 | |
|---|
| 31 | <?php |
|---|
| 32 | // If comments are open or we have at least one comment, load up the comment template. |
|---|
| 33 | if ( comments_open() || get_comments_number() ) : |
|---|
| 34 | comments_template(); |
|---|
| 35 | endif; |
|---|
| 36 | ?> |
|---|
| 37 | |
|---|
| 38 | <?php endwhile; // End of the loop. ?> |
|---|
| 39 | |
|---|
| 40 | </main><!-- #main --> |
|---|
| 41 | </div><!-- #primary --> |
|---|
| 42 | |
|---|
| 43 | <?php if ( ast_page_layout() == 'right-sidebar' ) : ?> |
|---|
| 44 | |
|---|
| 45 | <?php get_sidebar(); ?> |
|---|
| 46 | |
|---|
| 47 | <?php endif ?> |
|---|
| 48 | |
|---|
| 49 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser for help on using the repository browser.