Make WordPress Themes

source: astra/1.0.0/archive.php

Last change on this file was 74918, checked in by themedropbox, 9 years ago

New theme: Astra - 1.0.0

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