archive.php 976 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The template for displaying Archive pages.
  4. *
  5. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Libretto
  8. */
  9. get_header();
  10. ?>
  11. <section id="primary" class="content-area">
  12. <div id="content" class="site-content" role="main">
  13. <?php if ( have_posts() ) : ?>
  14. <?php /* Start the Loop */ ?>
  15. <?php while ( have_posts() ) : the_post(); ?>
  16. <?php
  17. /* Include the Post-Format-specific template for the content.
  18. * If you want to overload this in a child theme then include a file
  19. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  20. */
  21. get_template_part( 'content', get_post_format() );
  22. ?>
  23. <?php endwhile; ?>
  24. <?php libretto_content_nav( 'nav-below' ); ?>
  25. <?php else : // If there are no posts ?>
  26. <?php get_template_part( 'no-results', 'archive' ); ?>
  27. <?php endif; ?>
  28. </div><!-- #content -->
  29. </section><!-- #primary -->
  30. <?php get_sidebar(); ?>
  31. <?php get_footer(); ?>