archive.php 846 B

123456789101112131415161718192021222324252627
  1. <?php get_header(); ?>
  2. <div class="container">
  3. <div id="content" role="main">
  4. <div class="entry-content archive">
  5. <?php if ( have_posts() ) : ?>
  6. <header class="page-header">
  7. <h1 class="page-title">Archive: <?php the_time('Y'); ?></h1>
  8. </header>
  9. <?php while ( have_posts() ) : the_post();?>
  10. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  11. <div class="entry-meta">
  12. <div class="date">
  13. <?php the_date(); ?>
  14. </div>
  15. </div>
  16. <?php the_excerpt(); ?>
  17. <?php endwhile;
  18. dw_paging_nav();
  19. else :
  20. printf( __( 'Nothing Found', 'dw' ));
  21. get_search_form();
  22. endif;
  23. ?>
  24. </div>
  25. </div>
  26. </div>
  27. <?php get_footer(); ?>