-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
77 lines (66 loc) · 2.06 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
66
67
68
69
70
71
72
73
74
75
76
77
<?php /*Single post page*/?>
<?php get_header(); ?>
<div style="clear:both;"></div>
<?php if(function_exists('bcn_display'))
{
?>
<div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
<?php
bcn_display();
?>
</div>
<?php
}?>
<div id="container" class="row">
<div id="content" class="col-xs-12 col-md-9 col-sm-9">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(array('bgpng')); ?>>
<div class="title bgpng row" >
<div class="date col-md-3 col-xs-4 col-sm-3">
<?php the_time( get_option( 'date_format' ) ); ?>
</div>
<div class="posttitle col-md-8 col-xs-8 col-sm-7">
<h2 class=""><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</div>
<div class="comment-count col-md-1 hidden-xs col-sm-2"><?php comments_number('0', '1', '%'); ?> </div>
</div>
<div class="post-inner">
<div class="entry">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
?>
<div class="postthumb">
<?php the_post_thumbnail('thumbnail'); ?>
</div>
<?php
}
?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
<?php comments_template(); ?>
</div>
</div>
</div><!-- //post -->
<div class="bottom bgpng">
<div class="tags-box">
<div class="tags-entry bgpng" >
<?php the_tags(__('Tags:', 'simple-china'), ', ', '<br />'); ?>
</div>
</div>
</div>
<?php endwhile;?>
<div id="nav">
<ul>
<li><?php next_posts_link(__('« Older Entries', 'simple-china')) ?></li>
<li><?php previous_posts_link(__('Newer Entries »', 'simple-china')) ?></li>
</ul>
</div>
<?php else : ?>
<h2><?php _e('Not found', 'simple-china'); ?></h2>
<?php endif; ?>
</div><!-- / Content -->
<div class="col-xs-12 col-md-3 col-sm-3">
<?php get_sidebar(); ?>
</div>
</div><!-- / container -->
<?php get_footer(); ?>