-
Notifications
You must be signed in to change notification settings - Fork 176
/
single.php
executable file
·59 lines (41 loc) · 1.96 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
52
53
54
55
56
57
58
59
<?php get_header(); ?>
<div class="row">
<!-- Begin Post Loop, includes: date, author, category, comment, edit & post -->
<!-- Begin Error Message, display if no posts are found -->
<?php if ( ! have_posts() ) : ?>
<div class="twelve columns">
<h3>Not Found</h1>
<p>Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post?</p>
</div>
<?php endif; ?>
<!-- End Error Message -->
<article class="nine columns">
<!-- Loop Through Posts -->
<?php while ( have_posts() ) : the_post(); ?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div>
Posted on <strong><?php the_date(); ?></strong>
by <span class="author"><?php the_author(); ?></span>
under <span class="author"><?php the_category(', '); ?></span>
</div>
<div>
<?php edit_post_link('Edit', '<span> ' , '</span>'); ?>
<span class="comment-count"><?php comments_popup_link('Leave a comment', '1 Comment', '% Comments'); ?></span>
</div>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<?php the_excerpt(); ?>
<?php else : ?>
<?php the_content('Read More'); ?>
<?php endif; ?>
<!-- End Looping Through Posts -->
<?php endwhile; ?>
<!-- Begin Comments -->
<?php comments_template( '', true ); ?>
<!-- End Comments -->
</article>
<!-- Begin Sidebar -->
<?php get_sidebar(); ?>
<!-- End Sidebar -->
<!-- End Post Loop -->
</div>
<?php get_footer(); ?>