/
single.php
42 lines (34 loc) · 1.37 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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php get_header(); ?>
<!-- content -->
<section id="content" class="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!-- Navigation -->
<?php sf_display_nav(); ?>
<!-- Individual Post Styling -->
<article <?php post_class(); ?> id="entry-<?php the_ID(); ?>">
<h2 class="pagetitle"><?php the_title(); ?></h2>
<div class="postmeta">
Posted <?php the_time('F jS, Y') ?> — Filed under <?php the_category(', ') ?><br />
Tagged <?php the_tags('', ', ') ?> — <?php comments_number('No Comments', '1 Comment', '% Comments' );?> <?php edit_post_link('Edit this post', ' — <small>', '</small>'); ?>
</div>
<?php the_content("Continue reading " . the_title('', '', false)); ?>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<div class="page-link">Pages:', 'after' => '</div>')); ?>
</article>
<div id="comments">
<?php comments_template('', true); ?>
</div>
<?php endwhile; ?>
<!-- Navigation -->
<?php sf_display_nav("numbar"); ?>
<?php else : ?>
<!-- No Posts Found -->
<div class="entry" id="entry-err">
<h2 class="pagetitle">Post not found.</h2>
</div>
<?php endif; ?>
</section>
<!-- /content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>