/
single.php
29 lines (25 loc) · 1.44 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php get_header(); ?>
<div id="bd" class="single">
<div id="yui-main"><div class="yui-b">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post-wrap" id="post">
<h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<div class="story-content">
<?php the_content(); ?>
</div><!-- end post content -->
<div class="post-meta"><div class="metawrap">
<div><?php the_time('F j, Y'); ?></div>
<p>
<?php edit_post_link('Edit', '', ' | '); ?><?php the_tags('tags: ', ', ', '<br />'); ?>
</p></div>
<p class="interact"><?php if('open' == $post->comment_status || 'open' == $post->ping_status) { _e(' Follow comments via the '); comments_rss_link('RSS Feed'); } if('open'==$post->comment_status) { ?> | <a href="#respond"><?php _e('Leave a comment'); ?></a> <?php } if('open' == $post->ping_status) { ?>| <a href="<?php trackback_url(true); ?>">Trackback URL</a> <?php } ?></p>
</div><!-- end meta wrap -->
</div><!-- end post -->
<?php comments_template(); endwhile; else: ?>
<h2 class="post-title"><?php _e('Not Found'); ?></h2>
<p class="center"><?php _e("Sorry, but the post you're looking for couldn't be found. Double check your URL or you should try searching for it."); ?></p>
<?php @include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>