| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The template for displaying archive pages. |
|---|
| 4 | * |
|---|
| 5 | * @link https://codex.wordpress.org/Template_Hierarchy |
|---|
| 6 | * |
|---|
| 7 | * @package Astra |
|---|
| 8 | * @since 1.0.0 |
|---|
| 9 | */ |
|---|
| 10 | |
|---|
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
|---|
| 12 | exit; // Exit if accessed directly. |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | get_header(); ?> |
|---|
| 16 | |
|---|
| 17 | <?php if ( astra_page_layout() == 'left-sidebar' ) : ?> |
|---|
| 18 | |
|---|
| 19 | <?php get_sidebar(); ?> |
|---|
| 20 | |
|---|
| 21 | <?php endif ?> |
|---|
| 22 | |
|---|
| 23 | <div id="primary" <?php astra_primary_class(); ?>> |
|---|
| 24 | |
|---|
| 25 | <?php astra_primary_content_top(); ?> |
|---|
| 26 | |
|---|
| 27 | <?php astra_archive_header(); ?> |
|---|
| 28 | |
|---|
| 29 | <?php astra_content_loop(); ?> |
|---|
| 30 | |
|---|
| 31 | <?php astra_pagination(); ?> |
|---|
| 32 | |
|---|
| 33 | <?php astra_primary_content_bottom(); ?> |
|---|
| 34 | |
|---|
| 35 | </div><!-- #primary --> |
|---|
| 36 | |
|---|
| 37 | <?php if ( astra_page_layout() == 'right-sidebar' ) : ?> |
|---|
| 38 | |
|---|
| 39 | <?php get_sidebar(); ?> |
|---|
| 40 | |
|---|
| 41 | <?php endif ?> |
|---|
| 42 | |
|---|
| 43 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser for help on using the repository browser.