Advertisement
Guest User

Untitled

a guest
Apr 24th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.12 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.     <div id="content" class="narrowcolumn">
  4.  
  5.         <?php if (have_posts()) : ?>
  6.  
  7.       <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  8.       <?php /* If this is a category archive */ if (is_category()) { ?>
  9.         <h2 class="pagetitle"><?php printf(__('Archive for the &#8216;%s&#8217; Category', 'minimalism'), single_cat_title('', false)); ?></h2>
  10.       <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  11.         <h2 class="pagetitle"><?php printf(__('Posts Tagged &#8216;%s&#8217;', 'minimalism'), single_tag_title('', false) ); ?></h2>
  12.       <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  13.         <h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'minimalism'), get_the_time(__('F jS, Y', 'minimalism'))); ?></h2>
  14.       <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  15.         <h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'minimalism'), get_the_time(__('F, Y', 'minimalism'))); ?></h2>
  16.       <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  17.         <h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'minimalism'), get_the_time(__('Y', 'minimalism'))); ?></h2>
  18.       <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  19.         <h2 class="pagetitle"><?php _e('Author Archive', 'minimalism'); ?></h2>
  20.       <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  21.         <h2 class="pagetitle"><?php _e('Blog Archives', 'minimalism'); ?></h2>
  22.       <?php } ?>
  23.  
  24.  
  25.         <div class="navigation">
  26.             <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'minimalism')); ?></div>
  27.             <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'minimalism')); ?></div>
  28.         </div>
  29.  
  30.         <?php while (have_posts()) : the_post(); ?>
  31.         <div class="post">
  32.                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'minimalism'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3>
  33.                 <small><?php the_time(__('l, F jS, Y', 'minimalism')) ?></small>
  34.  
  35.                 <div class="entry">
  36.                     <?php the_content() ?>
  37.                 </div>
  38.  
  39.                 <p class="postmetadata"><?php the_tags(__('Tags:', 'minimalism'), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'minimalism'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'minimalism'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;', 'minimalism'), __('1 Comment &#187;', 'minimalism'), __('% Comments &#187;', 'minimalism'), '', __('Comments Closed', 'minimalism') ); ?></p>
  40.  
  41.             </div>
  42.  
  43.         <?php endwhile; ?>
  44.  
  45.         <div class="navigation">
  46.             <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries'), 'minimalism'); ?></div>
  47.             <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'minimalism')); ?></div>
  48.         </div>
  49.  
  50.     <?php else : ?>
  51.  
  52.         <h2 class="center"><?php _e('Not Found', 'minimalism'); ?></h2>
  53.         <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  54.  
  55.     <?php endif; ?>
  56.  
  57.     </div>
  58.  
  59. <?php get_sidebar(); ?>
  60.  
  61. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement