-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
67 lines (50 loc) · 2.12 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
<?php
/**
* @package WordPress
* @subpackage Adapt Theme
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<header id="page-heading">
<h1><?php _e('Blog',''); ?></h1>
<nav id="single-nav" class="clearfix">
<?php next_post_link('<div id="single-nav-left">%link</div>', '<span class="awesome-icon-chevron-left"></span> '.__('Newer','adapt').'', false); ?>
<?php previous_post_link('<div id="single-nav-right">%link</div>', ''.__('Older','adapt').' <span class="awesome-icon-chevron-right"></span>', false); ?>
</nav>
<!-- /single-nav -->
</header>
<article class="post clearfix">
<header>
<h1 class="single-title"><?php the_title(); ?></h1>
<div class="post-meta">
<span class="awesome-icon-calendar"></span><?php _e('On','surplus'); ?> <?php the_time('j'); ?> <?php the_time('M'); ?>, <?php the_time('Y'); ?>
<span class="awesome-icon-user"></span><?php _e('By', 'surplus'); ?> <?php the_author_posts_link(); ?>
<span class="awesome-icon-comments"></span><?php _e('With', 'surplus'); ?> <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?>
</div>
<!-- /loop-entry-meta -->
</header>
<div class="entry clearfix">
<?php
/* remove commenting to show featured image
$feat_img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'grid-thumb');
if($feat_img) {
?>
<img src="<?php echo $feat_img[0]; ?>" height="<?php echo $feat_img[2]; ?>" width="<?php echo $feat_img[1]; ?>" alt="<?php echo the_title(); ?>" class="post-thumbnail" />
<?php } */ ?>
<?php the_content(); ?>
<div class="clear"></div>
<?php wp_link_pages(' '); ?>
<div class="post-bottom">
<?php the_tags('<div class="post-tags"><span class="awesome-icon-tags"></span>',' , ','</div>'); ?>
</div>
<!-- /post-bottom -->
</div>
<!-- /entry -->
<?php comments_template(); ?>
</article>
<!-- /post -->
<?php endwhile; ?>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>