-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-blog.php
56 lines (43 loc) · 1.66 KB
/
single-blog.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
<?php
/**
* The Template for displaying all single posts
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header('blog'); ?>
<div id="primary" class="site-content col-md-12">
<div class='col-md-8 col-md-offset-2'>
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title">
<?php the_title(); ?>
</h2>
<div class='author-tool author' data-toggle="tooltip" data-placement="left" title="<?php echo get_the_author_meta('user_nicename'); ?>"> <?php echo get_avatar( get_the_author_meta( 'ID' ), 40 ); _e('by ','pluginhunt'); echo the_author_posts_link(); ?> </div>
<header class="entry-header">
<div class='ph-thumbnail'>
<?php if ( ! post_password_required() && ! is_attachment() ) :
the_post_thumbnail(); ?>
</div>
<?php endif; // is_single() ?>
<?php if ( comments_open() ) : ?>
<?php endif; // comments_open() ?>
</header><!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content-ph">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'pluginhunt' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'pluginhunt' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
</article><!-- #post -->
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
</div>
<?php get_footer('blog'); ?>