-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
executable file
·43 lines (36 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
<?php
/*
* The template for displaying content on the search page.
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-meta">
<?php dw_focus_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<?php if( has_post_thumbnail() && ! has_post_format('video') && ! has_post_format('audio') && ! has_post_format('gallery') ) : ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(''); ?>
</div>
<?php endif; ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'dw_focus' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php dw_focus_post_actions(); ?>
<footer class="entry-meta entry-meta-bottom">
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-info">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 90 ); ?>
</div><!-- .author-avatar -->
<div class="author-description">
<h2><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php echo get_the_author(); ?></a></h2>
<p class="description"><?php the_author_meta( 'description' ); ?></p>
</div><!-- .author-description -->
</div><!-- .author-info -->
<?php endif; ?>
</footer>
</article><!-- #post-<?php the_ID(); ?> -->