-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
65 lines (48 loc) · 1.6 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
60
61
62
63
64
65
<?php
/**
* The template for displaying all single posts
*
*
*
* @package WordPress
* @subpackage WpStrap
* @since wpstrap 1.0
*/
get_header(); ?>
<header class="well">
<div class="container">
<?php olaw2jr_breadcrumbs(); ?>
</div>
</header>
<div class="container">
<div class="row">
<div class="col-lg-8">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- the actual blog post -->
<span class="cat-links"><?php the_category(', '); ?></span>
<h3 class="entry-title"><?php the_title(); ?></h3>
<div class="img-responsive"><?php the_post_thumbnail(); ?></div>
<p class="entry-meta">
<small>
<i class="fa fa-user"></i> <?php the_author_posts_link(); ?>
<i class="fa fa-clock-o"></i> <?php the_time('F d, Y'); ?>
<i class="fa fa-comment"></i> <a href="<?php comments_link(); ?>"><?php comments_number('Leave a comment','1 Comment','2 Comments'); ?></a>
</small>
</p>
<?php the_content( ); ?>
<p class="entry-meta">
<small>
<i class="fa fa-tag"></i> <?php the_tags(', '); ?>
</small>
</p>
<hr>
<!-- /the actual blog post -->
<?php endwhile; else: ?>
<p><?php _e('No posts were found. Sorry!'); ?></p>
<?php endif; ?>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
</div>
</div><!-- /.container -->
<?php get_footer(); ?>