123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * The template for displaying archive pages.
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
- *
- * @package Pen
- */
- get_header(); ?>
- <div id="primary" class="content-area">
- <main id="main" class="<?php echo esc_attr( pen_content_classes() ); ?>" role="main">
- <div class="pen_article_wrapper">
- <?php
- if ( have_posts() ) {
- ?>
- <header class="page-header">
- <h1 class="page-title">
- <?php
- echo get_the_archive_title(); /* phpcs:ignore */
- ?>
- </h1>
- <?php
- the_archive_description( '<div class="archive-description">', '</div>' );
- ?>
- </header><!-- .page-header -->
- <?php
- $content_list_type = pen_list_type();
- if ( 'masonry' === $content_list_type ) {
- ?>
- <div id="pen_masonry">
- <?php
- }
- /* Start the Loop */
- while ( have_posts() ) {
- the_post();
- /**
- * Include the Post-Format-specific template for the content.
- * If you want to override this in a child theme, then include a file
- * called content-___.php (where ___ is the Post Format name) and that will be used instead.
- */
- get_template_part( 'partials/content', get_post_format() );
- }
- if ( 'masonry' === $content_list_type ) {
- ?>
- </div>
- <?php
- }
- get_template_part( 'partials/content', 'pagination' );
- } else {
- get_template_part( 'partials/content', 'none' );
- }
- ?>
- </div>
- </main><!-- #main -->
- <?php
- if ( ! is_singular() ) {
- pen_html_jump_menu( 'list' );
- }
- ?>
- </div><!-- #primary -->
- <?php
- get_footer();
|