Advertisement
Guest User

Untitled

a guest
Apr 12th, 2013
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Martin
  5. * @since Martin 1.0
  6. */
  7.  
  8. get_header(); ?>
  9.  
  10. <div id="content-container">
  11. <div id="content" role="main">
  12.  
  13. <?php if ( have_posts() ) the_post(); ?>
  14.  
  15. <h1 class="page-title">
  16. <?php if ( is_day() ) : ?>
  17. <?php printf( __( 'Daily Archives: <span>%s</span>', 'martin' ), get_the_date() ); ?>
  18. <?php elseif ( is_month() ) : ?>
  19. <?php printf( __( 'Monthly Archives: <span>%s</span>', 'martin' ), get_the_date( 'F Y' ) ); ?>
  20. <?php elseif ( is_year() ) : ?>
  21. <?php printf( __( 'Yearly Archives: <span>%s</span>', 'martin' ), get_the_date( 'Y' ) ); ?>
  22. <?php else : ?>
  23. <?php _e( 'Blog Archives', 'martin' ); ?>
  24. <?php endif; ?>
  25. </h1>
  26.  
  27. <?php
  28. rewind_posts();
  29. get_template_part( 'loop', 'archive' );
  30. ?>
  31.  
  32. </div><!-- #content -->
  33. </div><!-- #content-container -->
  34.  
  35. <?php get_sidebar(); ?>
  36. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement