Skip to content
Newer
Older
100644 61 lines (55 sloc) 2.34 KB
f7463f9 Version 3.1.4
Brian Purkiss authored
1 <?php get_header(); ?>
2 <div id="content">
3
4 <h1>
5 <?php if ( is_day() ) : /* if the daily archive is loaded */ ?>
6 <?php printf( __( 'Daily Archives: <span>%s</span>' ), get_the_date() ); ?>
7 <?php elseif ( is_month() ) : /* if the montly archive is loaded */ ?>
8 <?php printf( __( 'Monthly Archives: <span>%s</span>' ), get_the_date('F Y') ); ?>
9 <?php elseif ( is_year() ) : /* if the yearly archive is loaded */ ?>
10 <?php printf( __( 'Yearly Archives: <span>%s</span>' ), get_the_date('Y') ); ?>
11 <?php else : /* if anything else is loaded, ex. if the tags or categories template is missing this page will load */ ?>
12 Blog Archives
13 <?php endif; ?>
14 </h1>
15
16 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
17 <div class="post-single">
18 <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
19 <?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
20 <p>
21 Written on <?php the_time('F j, Y'); ?> at <?php the_time() ?>, by <?php the_author_posts_link() ?>
22 </p>
23 <div class="post-excerpt">
24 <?php the_excerpt(); /* the excerpt is loaded to help avoid duplicate content issues */ ?>
25 </div>
26
27 <div class="post-meta">
28 <p>
29 <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
30 <br />
31 Categories: <?php the_category(', ') ?>
32 <br />
33 <?php if (the_tags('Tags: ', ', ', ' ')); ?>
34 </p>
35 </div><!--.postMeta-->
36 </div><!--.post-single-->
37 <?php endwhile; else: ?>
38 <div class="no-results">
39 <p><strong>There has been an error.</strong></p>
40 <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
41 <?php get_search_form(); /* outputs the default Wordpress search form */ ?>
42 </div><!--noResults-->
43 <?php endif; ?>
44
45 <nav class="oldernewer">
46 <div class="older">
47 <p>
48 <?php next_posts_link('&laquo; Older Entries') ?>
49 </p>
50 </div><!--.older-->
51 <div class="newer">
52 <p>
53 <?php previous_posts_link('Newer Entries &raquo;') ?>
54 </p>
55 </div><!--.older-->
56 </nav><!--.oldernewer-->
57
58 </div><!--#content-->
59 <?php get_sidebar(); ?>
60 <?php get_footer(); ?>
Something went wrong with that request. Please try again.