-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
54 lines (31 loc) · 979 Bytes
/
single.php
File metadata and controls
54 lines (31 loc) · 979 Bytes
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
<?php get_header(); ?>
<div class="row">
<div class="col-xs-12 col-sm-8">
<?php
if( have_posts() ):
while( have_posts() ): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_title('<h1 class="entry-title">','</h1>' ); ?>
<?php if( has_post_thumbnail() ): ?>
<div class="pull-right"><?php the_post_thumbnail('thumbnail'); ?></div>
<?php endif; ?>
<small><?php the_category(' '); ?> || <?php the_tags(); ?> || <?php edit_post_link(); ?></small>
<?php the_content(); ?>
<hr>
<?php
if( comments_open() ){
comments_template();
} else {
echo '<h5 class="text-center">Sorry, Comments are closed!</h5>';
}
?>
</article>
<?php endwhile;
endif;
?>
</div>
<div class="col-xs-12 col-sm-4">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>