]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/default/single.php
Wordpress 2.5.1
[autoinstalls/wordpress.git] / wp-content / themes / default / single.php
1 <?php get_header(); ?>
2
3         <div id="content" class="widecolumn">
4
5         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
6
7                 <div class="navigation">
8                         <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
9                         <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
10                 </div>
11
12                 <div class="post" id="post-<?php the_ID(); ?>">
13                         <h2><?php the_title(); ?></h2>
14
15                         <div class="entry">
16                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
17
18                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
19                                 <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
20
21                                 <p class="postmetadata alt">
22                                         <small>
23                                                 This entry was posted
24                                                 <?php /* This is commented, because it requires a little adjusting sometimes.
25                                                         You'll need to download this plugin, and follow the instructions:
26                                                         http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
27                                                         /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
28                                                 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
29                                                 and is filed under <?php the_category(', ') ?>.
30                                                 You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
31
32                                                 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
33                                                         // Both Comments and Pings are open ?>
34                                                         You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
35
36                                                 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
37                                                         // Only Pings are Open ?>
38                                                         Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
39
40                                                 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
41                                                         // Comments are open, Pings are not ?>
42                                                         You can skip to the end and leave a response. Pinging is currently not allowed.
43
44                                                 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
45                                                         // Neither Comments, nor Pings are open ?>
46                                                         Both comments and pings are currently closed.
47
48                                                 <?php } edit_post_link('Edit this entry.','',''); ?>
49
50                                         </small>
51                                 </p>
52
53                         </div>
54                 </div>
55
56         <?php comments_template(); ?>
57
58         <?php endwhile; else: ?>
59
60                 <p>Sorry, no posts matched your criteria.</p>
61
62 <?php endif; ?>
63
64         </div>
65
66 <?php get_footer(); ?>