raw
mp-wp_genesis           1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * @package WordPress
mp-wp_genesis 4 * @subpackage Default_Theme
mp-wp_genesis 5 */
mp-wp_genesis 6
mp-wp_genesis 7 get_header();
mp-wp_genesis 8 ?>
mp-wp_genesis 9
mp-wp_genesis 10 <div id="content" class="narrowcolumn">
mp-wp_genesis 11
mp-wp_genesis 12 <?php if (have_posts()) : ?>
mp-wp_genesis 13
mp-wp_genesis 14 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
mp-wp_genesis 15 <?php /* If this is a category archive */ if (is_category()) { ?>
mp-wp_genesis 16 <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
mp-wp_genesis 17 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
mp-wp_genesis 18 <h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
mp-wp_genesis 19 <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
mp-wp_genesis 20 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
mp-wp_genesis 21 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
mp-wp_genesis 22 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
mp-wp_genesis 23 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
mp-wp_genesis 24 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
mp-wp_genesis 25 <?php /* If this is an author archive */ } elseif (is_author()) { ?>
mp-wp_genesis 26 <h2 class="pagetitle">Author Archive</h2>
mp-wp_genesis 27 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
mp-wp_genesis 28 <h2 class="pagetitle">Blog Archives</h2>
mp-wp_genesis 29 <?php } ?>
mp-wp_genesis 30
mp-wp_genesis 31
mp-wp_genesis 32 <div class="navigation">
mp-wp_genesis 33 <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
mp-wp_genesis 34 <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
mp-wp_genesis 35 </div>
mp-wp_genesis 36
mp-wp_genesis 37 <?php while (have_posts()) : the_post(); ?>
mp-wp_genesis 38 <div <?php post_class() ?>>
mp-wp_genesis 39 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
mp-wp_genesis 40 <small><?php the_time('l, F jS, Y') ?></small>
mp-wp_genesis 41
mp-wp_genesis 42 <div class="entry">
mp-wp_genesis 43 <?php the_content() ?>
mp-wp_genesis 44 </div>
mp-wp_genesis 45
mp-wp_genesis 46 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
mp-wp_genesis 47
mp-wp_genesis 48 </div>
mp-wp_genesis 49
mp-wp_genesis 50 <?php endwhile; ?>
mp-wp_genesis 51
mp-wp_genesis 52 <div class="navigation">
mp-wp_genesis 53 <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
mp-wp_genesis 54 <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
mp-wp_genesis 55 </div>
mp-wp_genesis 56 <?php else :
mp-wp_genesis 57
mp-wp_genesis 58 if ( is_category() ) { // If this is a category archive
mp-wp_genesis 59 printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
mp-wp_genesis 60 } else if ( is_date() ) { // If this is a date archive
mp-wp_genesis 61 echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
mp-wp_genesis 62 } else if ( is_author() ) { // If this is a category archive
mp-wp_genesis 63 $userdata = get_userdatabylogin(get_query_var('author_name'));
mp-wp_genesis 64 printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
mp-wp_genesis 65 } else {
mp-wp_genesis 66 echo("<h2 class='center'>No posts found.</h2>");
mp-wp_genesis 67 }
mp-wp_genesis 68 get_search_form();
mp-wp_genesis 69
mp-wp_genesis 70 endif;
mp-wp_genesis 71 ?>
mp-wp_genesis 72
mp-wp_genesis 73 </div>
mp-wp_genesis 74
mp-wp_genesis 75 <?php get_sidebar(); ?>
mp-wp_genesis 76
mp-wp_genesis 77 <?php get_footer(); ?>