forked from kunalkushwaha/WPMedium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-single.php
More file actions
50 lines (43 loc) · 2.14 KB
/
Copy pathcontent-single.php
File metadata and controls
50 lines (43 loc) · 2.14 KB
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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<div class="entry-thumb">
<?php wpmedium_the_post_thumbnail(); ?>
<?php wpmedium_the_post_thumbnail_credit(); ?>
</div>
<div class="entry-meta">
<?php wpmedium_post_entry_meta(); ?>
</div><!-- .entry-meta -->
<h1 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'wpmedium' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'wpmedium' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php if ( get_the_tags() ) : ?>
<div class="entry-tags">
<?php wpmedium_the_taxonomy( sprintf( '%s ', __( 'This post also appears in', 'wpmedium' ) ), ', ', '' ); ?>
</div><!-- .entry-tags -->
<?php endif; ?>
<div class="entry-author entry-author-bottom">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ) ); ?>
</div><!-- .author-avatar -->
<div class="author-description">
<h6><?php the_author_link(); ?></h6>
<p><?php the_author_meta( 'description' ); ?></p>
</div><!-- .author-description -->
<div class="entry-date">
<?php printf( '<h6>%s</h6> <span class="date">%s</span>', __( 'Published', 'wpmedium' ), get_the_date( 'F j, Y' ) ); ?>
</div>
<div style="clear:both"></div>
</div><!-- .entry-author -->
<?php if ( comments_open() ): ?>
<div class="entry-comment">
<a class="toggle-comments" id="show_comments" href="#comments"><?php _e( 'Show Comments', 'wpmedium' ); ?></a>
<a class="toggle-comments" id="hide_comments" href="#comments"><?php _e( 'Hide Comments', 'wpmedium' ); ?></a>
<?php comments_template(); ?>
</div>
<?php endif; ?>
</article>