| 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 | get_header(); ?> |
|---|
| 12 | |
|---|
| 13 | <?php if ( ast_page_layout() == 'left-sidebar' ) : ?> |
|---|
| 14 | |
|---|
| 15 | <?php get_sidebar(); ?> |
|---|
| 16 | |
|---|
| 17 | <?php endif ?> |
|---|
| 18 | |
|---|
| 19 | <div id="primary" <?php ast_primary_class(); ?>> |
|---|
| 20 | |
|---|
| 21 | <?php ast_primary_content_top(); ?> |
|---|
| 22 | |
|---|
| 23 | <?php ast_archive_header(); ?> |
|---|
| 24 | |
|---|
| 25 | <main id="main" class="site-main" role="main"> |
|---|
| 26 | |
|---|
| 27 | <?php if ( have_posts() ) : ?> |
|---|
| 28 | |
|---|
| 29 | <?php /* Start the Loop */ ?> |
|---|
| 30 | <?php ast_content_while_before(); ?> |
|---|
| 31 | |
|---|
| 32 | <div class="ast-row"> |
|---|
| 33 | |
|---|
| 34 | <?php while ( have_posts() ) : the_post(); ?> |
|---|
| 35 | |
|---|
| 36 | <?php |
|---|
| 37 | |
|---|
| 38 | /* |
|---|
| 39 | * Include the Post-Format-specific template for the content. |
|---|
| 40 | * If you want to override this in a child theme, then include a file |
|---|
| 41 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
|---|
| 42 | */ |
|---|
| 43 | get_template_part( 'template-parts/content', ast_get_post_format() ); |
|---|
| 44 | ?> |
|---|
| 45 | |
|---|
| 46 | <?php endwhile; ?> |
|---|
| 47 | |
|---|
| 48 | </div> |
|---|
| 49 | |
|---|
| 50 | <?php ast_content_while_after(); ?> |
|---|
| 51 | |
|---|
| 52 | <?php else : ?> |
|---|
| 53 | |
|---|
| 54 | <?php get_template_part( 'template-parts/content', 'none' ); ?> |
|---|
| 55 | |
|---|
| 56 | <?php endif; ?> |
|---|
| 57 | |
|---|
| 58 | </main><!-- #main --> |
|---|
| 59 | |
|---|
| 60 | <?php ast_pagination(); ?> |
|---|
| 61 | |
|---|
| 62 | <?php ast_primary_content_bottom(); ?> |
|---|
| 63 | |
|---|
| 64 | </div><!-- #primary --> |
|---|
| 65 | |
|---|
| 66 | <?php if ( ast_page_layout() == 'right-sidebar' ) : ?> |
|---|
| 67 | |
|---|
| 68 | <?php get_sidebar(); ?> |
|---|
| 69 | |
|---|
| 70 | <?php endif ?> |
|---|
| 71 | |
|---|
| 72 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser for help on using the repository browser.