| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The main template file. |
|---|
| 4 | * |
|---|
| 5 | * This is the most generic template file in a WordPress theme |
|---|
| 6 | * and one of the two required files for a theme (the other being style.css). |
|---|
| 7 | * It is used to display a page when nothing more specific matches a query. |
|---|
| 8 | * E.g., it puts together the home page when no home.php file exists. |
|---|
| 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 | <?php if ( astra_page_layout() == 'left-sidebar' ) : ?> |
|---|
| 22 | |
|---|
| 23 | <?php get_sidebar(); ?> |
|---|
| 24 | |
|---|
| 25 | <?php endif ?> |
|---|
| 26 | <div id="primary" <?php astra_primary_class(); ?>> |
|---|
| 27 | <?php |
|---|
| 28 | astra_primary_content_top(); |
|---|
| 29 | |
|---|
| 30 | astra_content_loop(); |
|---|
| 31 | |
|---|
| 32 | astra_pagination(); |
|---|
| 33 | |
|---|
| 34 | astra_primary_content_bottom(); |
|---|
| 35 | ?> |
|---|
| 36 | </div><!-- #primary --> |
|---|
| 37 | <?php |
|---|
| 38 | if ( astra_page_layout() == 'right-sidebar' ) : |
|---|
| 39 | |
|---|
| 40 | get_sidebar(); |
|---|
| 41 | |
|---|
| 42 | endif; |
|---|
| 43 | |
|---|
| 44 | get_footer(); |
|---|
Note: See
TracBrowser for help on using the repository browser.