Changeset 2040 for trunk/wp-content/themes/default/index.php
- Timestamp:
- 01/04/2005 05:20:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/index.php
r2032 r2040 1 <?php 2 get_header(); 3 ?> 1 <?php get_header(); ?> 4 2 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>3 <div id="content" class="narrowcolumn"> 6 4 7 <?php the_date('','<h2>','</h2>'); ?> 5 <?php if (have_posts()) : ?> 6 7 <?php while (have_posts()) : the_post(); ?> 8 9 <div class="post"> 10 <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> 11 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> 12 13 <div class="entry"> 14 <?php the_content('Read the rest of this entry »'); ?> 15 </div> 16 17 <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> 18 19 <!-- 20 <?php trackback_rdf(); ?> 21 --> 22 </div> 8 23 9 <div class="post"> 10 <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> 11 <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div> 12 13 <div class="storycontent"> 14 <?php the_content(__('(more...)')); ?> 24 <?php endwhile; ?> 25 26 <div class="navigation"> 27 <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> 28 <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> 29 </div> 30 31 <?php else : ?> 32 33 <h2 class="center">Not Found</h2> 34 <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p> 35 <?php include (TEMPLATEPATH . "/searchform.php"); ?> 36 37 <?php endif; ?> 38 15 39 </div> 16 17 <div class="feedback">18 <?php wp_link_pages(); ?>19 <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>20 </div>21 22 <!--23 <?php trackback_rdf(); ?>24 -->25 40 26 </div> 27 28 <?php comments_template( is_single() ); // Get wp-comments.php template ?> 29 30 <?php endwhile; else: ?> 31 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> 32 <?php endif; ?> 33 34 <?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?> 41 <?php get_sidebar(); ?> 35 42 36 43 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.