-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
51 lines (40 loc) · 1.76 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
43
44
45
46
47
48
49
50
51
<?php
/**
** INDEX
**
** Displays all of the content on the main page
**
**/
?>
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<div class="post-title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</div>
<div class="post-metadata">
<span class="post-metadata-author">Author: <?php the_author() ?><br /></span>
<span class="post-metadata-date">Date: <?php the_date(); ?><br /></span>
<span class="post-metadata-category">Categories: <?php the_category(', ') ?><br /></span>
<span class="post-metadata-tags"><?php the_tags('Tags: ', ', ', '<br />'); ?></span>
<span class="post-metadata-comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><br /></span>
</div>
<div class="post-entry">
<?php the_content('Read the rest of this entry »'); ?>
<?php edit_post_link('Edit.', '<p>', '</p>'); ?>
</div>
<div class="clear"></div>
</div><!-- (class="post") -->
<?php comments_template(); ?>
<div class="navigation">
<div class="alignleft"><?php previous_post('« Previous Post: %', '', 'yes'); ?></div>
<div class="alignright"><?php next_post('Next Post: % »', '', 'yes'); ?></div>
</div><!-- (class="navigation") -->
<?php endwhile; else : ?>
<h2>Error 404 - Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div><!-- (id="content") -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>