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

Archives

By: STATEDLIGHT on Jan 21st, 2013  |  syntax: None  |  size: 3.65 KB  |  views: 30  |  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 get_header(); ?>
  2.  
  3. <div id="content">
  4.   <?php the_post(); ?>
  5.   <?php if ( is_day() ) : ?>
  6.   <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'tiger' ), get_the_time(get_option('date_format')) ) ?></h1>
  7.   <?php elseif ( is_month() ) : ?>
  8.   <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'tiger' ), get_the_time('F Y') ) ?></h1>
  9.   <?php elseif ( is_year() ) : ?>
  10.   <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'tiger' ), get_the_time('Y') ) ?></h1>
  11.   <?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?>
  12.   <h1 class="page-title">Blog Archives</h1>
  13.   <?php endif; ?>
  14.   <?php rewind_posts(); ?>
  15.   <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  16.   <?php } ?>
  17.   <?php while ( have_posts() ) : the_post(); ?>
  18.   <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  19.     <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark">
  20.       <?php the_title(); ?>
  21.       </a></h2>
  22.     <div class="entry-meta"> <span class="meta-prep meta-prep-author">
  23.       <?php _e('By ', 'tiger'); ?>
  24.       </span> <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="<?php printf( __( 'View all articles by %s', 'tiger' ), $authordata->display_name ); ?>">
  25.       <?php the_author(); ?>
  26.       </a></span> <span class="meta-sep"> | </span> <span class="meta-prep meta-prep-entry-date">
  27.       <?php _e('Published ', 'tiger'); ?>
  28.       </span> <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>">
  29.       <?php the_time( get_option( 'date_format' ) ); ?>
  30.       </abbr></span>
  31.       <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  32.     </div>
  33.     <div class="entry-summary">
  34.       <?php the_excerpt( __( 'continue reading <span class="meta-nav">&raquo;</span>', 'tiger' )  ); ?>
  35.     </div>
  36.     <div class="entry-utility"> <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links">
  37.       <?php _e( 'Posted in ', 'tiger' ); ?>
  38.       </span><?php echo get_the_category_list(', '); ?></span> <span class="meta-sep"> | </span>
  39.       <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'tiger' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\"> | </span>\n" ) ?>
  40.       <span class="comments-link">
  41.       <?php comments_popup_link( __( 'Leave a comment', 'tiger' ), __( '1 Comment', 'tiger' ), __( '% Comments', 'tiger' ) ) ?>
  42.       </span>
  43.       <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
  44.     </div>
  45.   </div>
  46.   <?php endwhile; ?>
  47.   <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  48.   <div id="nav-below" class="navigation">
  49.     <?php if(function_exists('wp_pagenavi')) { ?>
  50.     <?php wp_pagenavi(); ?>
  51.     <?php } else { ?>
  52.     <div class="nav-previous">
  53.       <?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> older articles', 'tiger' )) ?>
  54.     </div>
  55.     <div class="nav-next">
  56.       <?php previous_posts_link(__( 'newer articles <span class="meta-nav">&raquo;</span>', 'tiger' )) ?>
  57.     </div>
  58.     <?php }  ?>
  59.   </div>
  60.   <?php } ?>
  61.   <div class="clear-floats"></div>
  62. </div>
  63. <div id="sidebar">
  64.   <?php dynamic_sidebar('right'); ?>
  65. </div>
  66. <?php get_footer(); ?>
clone this paste RAW Paste Data