-
Notifications
You must be signed in to change notification settings - Fork 2
/
content-single.php
54 lines (50 loc) · 1.49 KB
/
content-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
<?php
/**
* The template used for displaying page content in page.php
*
* @package ThemeGrill
* @subpackage Masonic
* @since 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('blog-post'); ?>>
<div class="post-header clear">
<?php
if( get_post_format() ) {
get_template_part( 'inc/post-formats' );
} elseif( has_post_thumbnail() ) { ?>
<figure>
<?php
the_post_thumbnail('large-thumb');
?>
</figure>
<?php } ?>
<div class="entry-info">
<?php masonic_posted_on(); ?>
</div><!-- .entry-info -->
</div><!-- .entry-header -->
<div class="entry-content">
<div class="underline"></div>
<hr>
<?php the_content(); ?>
<?php
wp_link_pages(array(
'before' => '<div class="page-links">' . __('Pages:', 'masonic'),
'after' => '</div>',
));
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
<?php if (get_the_author_meta('description')): ?>
<article class="blog-post clear">
<div class="author-box clear">
<figure><?php echo get_avatar(get_the_author_meta('user_email'), '120'); ?></figure>
<div class="author-box-wrap">
<h2><?php the_author_meta('display_name'); ?></h2>
<div class="underline"></div><hr>
<p><?php the_author_meta('description'); ?></p>
<?php masonic_author_links(); ?>
</div>
</div>
</article>
<?php endif; ?>