-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
executable file
·38 lines (35 loc) · 1.77 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
<?php
/**
* Content - single
*
* @package Status
* @since 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="author-box"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?> <p><?php printf( _x( 'by %s', 'Post written by...', 'status' ), str_replace( '<a href=', '<a rel="author" href=', bp_core_get_userlink( $post->post_author ) ) ); ?></p> </div>
<header class="post-header">
<h1 class="post-title"><?php the_title(); ?></h1>
<div class="post-info">
<?php printf( __( '%1$s <span>in %2$s</span>', 'status' ), get_the_date(), get_the_category_list( ', ' ) ); ?>
<span class="post-utility alignright"><?php edit_post_link( __( 'Edit this entry', 'status' ) ); ?></span>
<span class="post-tags alignright">
<?php $tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ): ?>
<?php printf( __( 'Tags: %2$s', 'status'), 'tag-links', $tags_list ); ?> |
<?php endif; ?>
</span>
<span class="post-action alignright">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'status' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php _e( 'Permalink', 'status'); ?></a>
</span>
</div>
</header>
<section class="post-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'status'), 'after' => '</div>' ) ); ?>
</section>
<footer class="post-meta">
<div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'status' ) . '</span> %title' ); ?></div>
<div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'status' ) . '</span>' ); ?></div>
</footer>
</article>