Wordpress 3.1.2-scripts
[autoinstalls/wordpress.git] / wp-content / themes / default / index.php
1 <?php
2 /**
3  * @package WordPress
4  * @subpackage Default_Theme
5  */
6
7 get_header(); ?>
8
9         <div id="content" class="narrowcolumn" role="main">
10
11         <?php if (have_posts()) : ?>
12
13                 <?php while (have_posts()) : the_post(); ?>
14
15                         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
16                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
17                                 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
18
19                                 <div class="entry">
20                                         <?php the_content('Read the rest of this entry &raquo;'); ?>
21                                 </div>
22
23                                 <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>
24                         </div>
25
26                 <?php endwhile; ?>
27
28                 <div class="navigation">
29                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
30                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
31                 </div>
32
33         <?php else : ?>
34
35                 <h2 class="center">Not Found</h2>
36                 <p class="center">Sorry, but you are looking for something that isn't here.</p>
37                 <?php get_search_form(); ?>
38
39         <?php endif; ?>
40
41         </div>
42
43 <?php get_sidebar(); ?>
44
45 <?php get_footer(); ?>