Want more features on Pastebin? Sign Up, it's FREE!
Guest

archive.php - SS

By: a guest on Jan 31st, 2013  |  syntax: None  |  size: 2.23 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * The template for displaying Archive pages.
  4.  *
  5.  * @package WordPress
  6.  */
  7. ?>
  8. <?php get_header(); ?>
  9. <div class="page-heading">
  10.     <h1 class="page_title">
  11.         <?php if (is_day()) : ?>
  12.             <?php printf(__('Daily Archives: %s', 'black-bird'), get_the_date()); ?>
  13.         <?php elseif (is_month()) : ?>
  14.             <?php printf(__('Monthly Archives: %s', 'black-bird'), get_the_date('F Y')); ?>
  15.         <?php elseif (is_year()) : ?>
  16.             <?php printf(__('Yearly Archives: %s', 'black-bird'), get_the_date('Y')); ?>
  17.         <?php else : ?>
  18.             <?php _e('Blog Archives', 'black-bird'); ?>
  19.         <?php endif; ?>
  20.     </h1>
  21. </div>
  22. <div class="clear"></div>
  23. <!--Start Page Content -->
  24. <div class="page-content-container">
  25.     <div class="page-content">
  26.         <div class="grid_16 alpha">
  27.             <div class="content-bar">
  28.                 <?php if (have_posts()): ?>
  29.  
  30.                     <?php
  31.                     /* Since we called the_post() above, we need to
  32.                      * rewind the loop back to the beginning that way
  33.                      * we can run the loop properly, in full.
  34.                      */
  35.                     rewind_posts();
  36.                     /* Run the loop for the archives page to output the posts.
  37.                      * If you want to overload this in a child theme then include a file
  38.                      * called loop-archives.php and that will be used instead.
  39.                      */
  40.                     get_template_part('loop', 'archive');
  41.                     ?>
  42.                     <div class="clear"></div>
  43.                     <nav id="nav-single"> <span class="nav-previous">
  44.                             <?php next_posts_link(__('&larr; Older posts', 'black-bird')); ?>
  45.                         </span> <span class="nav-next">
  46.                             <?php previous_posts_link(__('Newer posts &rarr;', 'black-bird')); ?>
  47.                         </span> </nav>
  48.                 <?php endif; ?>
  49.             </div>
  50.         </div>
  51.         <div class="grid_8 omega">
  52.             <!--Start Sidebar-->
  53.             <?php get_sidebar(); ?>
  54.             <!--End Sidebar-->
  55.         </div>
  56.     </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <?php get_footer(); ?>
clone this paste RAW Paste Data