| 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.0 |
|---|
| 14 | */ |
|---|
| 15 | |
|---|
| 16 | if ( ! defined( 'ABSPATH' ) ) { |
|---|
| 17 | exit; // Exit if accessed directly. |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | get_header(); ?> |
|---|
| 21 | |
|---|
| 22 | <?php if ( astra_page_layout() == 'left-sidebar' ) : ?> |
|---|
| 23 | |
|---|
| 24 | <?php get_sidebar(); ?> |
|---|
| 25 | |
|---|
| 26 | <?php endif ?> |
|---|
| 27 | |
|---|
| 28 | <div id="primary" <?php astra_primary_class(); ?>> |
|---|
| 29 | |
|---|
| 30 | <?php astra_primary_content_top(); ?> |
|---|
| 31 | |
|---|
| 32 | <?php astra_content_page_loop(); ?> |
|---|
| 33 | |
|---|
| 34 | <?php astra_primary_content_bottom(); ?> |
|---|
| 35 | |
|---|
| 36 | </div><!-- #primary --> |
|---|
| 37 | |
|---|
| 38 | <?php if ( astra_page_layout() == 'right-sidebar' ) : ?> |
|---|
| 39 | |
|---|
| 40 | <?php get_sidebar(); ?> |
|---|
| 41 | |
|---|
| 42 | <?php endif ?> |
|---|
| 43 | |
|---|
| 44 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser for help on using the repository browser.