| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | |
|---|
| 5 | Template Name: Blog |
|---|
| 6 | |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | ?> |
|---|
| 10 | |
|---|
| 11 | <?php get_header(); ?> |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | <div id="content" class="narrowcolumn"> |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | <?php query_posts("showposts=10"); ?> |
|---|
| 22 | <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | <div class="post"> |
|---|
| 28 | |
|---|
| 29 | <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> |
|---|
| 30 | |
|---|
| 31 | <small><?php the_time('F jS, Y') ?> <!--by <?php the_author() ?> --> </small> |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | <div class="entry"> |
|---|
| 35 | |
|---|
| 36 | <?php the_content('Read the rest of this entry »'); ?> |
|---|
| 37 | |
|---|
| 38 | </div> |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | <p class="postmetadata">Posted in <?php the_category(', ') ?> by <?php the_author() ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | <!-- |
|---|
| 45 | |
|---|
| 46 | <?php trackback_rdf(); ?> |
|---|
| 47 | |
|---|
| 48 | --> |
|---|
| 49 | |
|---|
| 50 | </div> |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | <?php endwhile; ?> |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | <div class="navigation"> |
|---|
| 59 | |
|---|
| 60 | <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> |
|---|
| 61 | |
|---|
| 62 | <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> |
|---|
| 63 | |
|---|
| 64 | </div> |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | <?php else : ?> |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | <h2 class="center">Not Found</h2> |
|---|
| 73 | |
|---|
| 74 | <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p> |
|---|
| 75 | |
|---|
| 76 | <?php include (TEMPLATEPATH . "/searchform.php"); ?> |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | |
|---|
| 80 | <?php endif; ?> |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | </div> |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | <?php get_sidebar(); ?> |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | <?php get_footer(); ?> |
|---|