-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-single.php
executable file
·51 lines (44 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
<?php
/**
* @package Gather
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta entry-header-meta">
<?php gather_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<?php if ( has_post_thumbnail() && get_theme_mod( 'post-featured-images', 1 ) ) { ?>
<figure class="entry-image">
<?php the_post_thumbnail(); ?>
</figure>
<?php } ?>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'gather' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php if ( get_the_author_meta( 'description' ) ) :
// If a user has filled out their description, show a bio on their entries ?>
<div class="author-meta">
<div class="author-box clearfix">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'gather_author_bio_avatar_size', 64 ) ); ?>
</div><!-- #author-avatar -->
<div class="author-description">
<h3><?php printf( esc_attr__( 'About %s', 'gather' ), get_the_author() ); ?></h3>
<?php the_author_meta( 'description' ); ?>
</div><!-- #author-description -->
</div>
</div><!-- #author-meta-->
<?php endif; ?>
<footer class="entry-meta entry-footer-meta">
<?php gather_post_meta(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->