62 lines
3.1 KiB
PHP
62 lines
3.1 KiB
PHP
|
<?php get_header(); ?>
|
||
|
|
||
|
<div id="content" class="narrowcolumn">
|
||
|
|
||
|
<?php if (have_posts()) : ?>
|
||
|
|
||
|
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
||
|
<?php /* If this is a category archive */ if (is_category()) { ?>
|
||
|
<h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'minimalism'), single_cat_title('', false)); ?></h2>
|
||
|
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
|
||
|
<h2 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'minimalism'), single_tag_title('', false) ); ?></h2>
|
||
|
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
|
||
|
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'minimalism'), get_the_time(__('F jS, Y', 'minimalism'))); ?></h2>
|
||
|
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
||
|
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'minimalism'), get_the_time(__('F, Y', 'minimalism'))); ?></h2>
|
||
|
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
||
|
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'minimalism'), get_the_time(__('Y', 'minimalism'))); ?></h2>
|
||
|
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
|
||
|
<h2 class="pagetitle"><?php _e('Author Archive', 'minimalism'); ?></h2>
|
||
|
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
||
|
<h2 class="pagetitle"><?php _e('Blog Archives', 'minimalism'); ?></h2>
|
||
|
<?php } ?>
|
||
|
|
||
|
|
||
|
<div class="navigation">
|
||
|
<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'minimalism')); ?></div>
|
||
|
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'minimalism')); ?></div>
|
||
|
</div>
|
||
|
|
||
|
<?php while (have_posts()) : the_post(); ?>
|
||
|
<div class="post">
|
||
|
<h2 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></h2>
|
||
|
<small><?php the_time(__('F jS, Y', 'minimalism')) ?></small>
|
||
|
|
||
|
<div class="entry">
|
||
|
<?php the_content() ?>
|
||
|
</div>
|
||
|
|
||
|
<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 »', 'minimalism'), __('1 Comment »', 'minimalism'), __('% Comments »', 'minimalism'), '', __('Comments Closed', 'minimalism') ); ?></p>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<?php endwhile; ?>
|
||
|
|
||
|
<div class="navigation">
|
||
|
<div class="alignleft"><?php next_posts_link(__('« Older Entries'), 'minimalism'); ?></div>
|
||
|
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'minimalism')); ?></div>
|
||
|
</div>
|
||
|
|
||
|
<?php else : ?>
|
||
|
|
||
|
<h2 class="center"><?php _e('Not Found', 'minimalism'); ?></h2>
|
||
|
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<?php get_sidebar(); ?>
|
||
|
|
||
|
<?php get_footer(); ?>
|