An updated theme (based on Atticus Finch) for ClassicPress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <?php
  2. /**
  3. * The archive template file.
  4. *
  5. * Displays generic archives.
  6. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  7. *
  8. * @package Portage
  9. */
  10. get_header();
  11. ?>
  12. <div id="content">
  13. <div id="archive-title">
  14. <?php if ( is_day() ) : ?>
  15. <?php printf( __( 'Daily Archive for %s', 'portage' ), '<span>' . get_the_date() . '</span>' ); ?>
  16. <?php elseif ( is_month() ) : ?>
  17. <?php printf( __( 'Monthly Archive for %s', 'portage' ),
  18. /* translators: F will be replaced with month, and Y will be replaced with year, so "F Y" in English would be replaced with something like "June 2008". */
  19. '<span>' . get_the_date( __( 'F Y', 'portage' ) ) . '</span>' ); ?>
  20. <?php elseif ( is_year() ) : ?>
  21. <?php printf(__( 'Yearly Archive for %s', 'portage' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
  22. <?php else : ?>
  23. <?php _e( 'Blog Archive', 'portage' ); ?>
  24. <?php endif; ?>
  25. </div>
  26. <!-- Start the loop -->
  27. <?php if ( have_posts() ) : ?>
  28. <?php while ( have_posts() ) : the_post(); ?>
  29. <?php get_template_part( 'formats/excerpt', get_post_format() ); ?>
  30. <!-- End the loop -->
  31. <?php endwhile; ?>
  32. <?php endif; ?>
  33. <?php atticus_finch_display_nav(); ?>
  34. </div> <!-- end Content -->
  35. <?php get_sidebar(); ?>
  36. <div class="clear"></div>
  37. <?php get_footer(); ?>