Make WordPress Themes

source: generatepress/1.3.44/archive.php

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

New version of GeneratePress - 1.3.44

File size: 1.2 KB
Line 
1<?php
2/**
3 * The template for displaying Archive pages.
4 *
5 * Learn more: http://codex.wordpress.org/Template_Hierarchy
6 *
7 * @package GeneratePress
8 */
9 
10// No direct access, please
11if ( ! defined( 'ABSPATH' ) ) exit;
12
13get_header(); ?>
14
15        <section id="primary" <?php generate_content_class(); ?>>
16                <main id="main" <?php generate_main_class(); ?>>
17                <?php do_action('generate_before_main_content'); ?>
18                <?php if ( have_posts() ) : ?>
19
20                        <?php do_action( 'generate_archive_title' ); ?>
21
22                        <?php /* Start the Loop */ ?>
23                        <?php while ( have_posts() ) : the_post(); ?>
24
25                                <?php
26                                        /* Include the Post-Format-specific template for the content.
27                                         * If you want to override this in a child theme, then include a file
28                                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
29                                         */
30                                        get_template_part( 'content', get_post_format() );
31                                ?>
32
33                        <?php endwhile; ?>
34
35                        <?php generate_content_nav( 'nav-below' ); ?>
36
37                <?php else : ?>
38
39                        <?php get_template_part( 'no-results', 'archive' ); ?>
40
41                <?php endif; ?>
42                <?php do_action('generate_after_main_content'); ?>
43                </main><!-- #main -->
44        </section><!-- #primary -->
45
46<?php 
47do_action('generate_sidebars');
48get_footer();
Note: See TracBrowser for help on using the repository browser.