-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-status.php
43 lines (40 loc) · 1.46 KB
/
content-status.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 posts in the Status post format
*
* @package M6R
* @subpackage M6RTheme
* @license AGPL
* @since TwentyTwelve
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-header">
<header>
<h1><?php the_author(); ?></h1>
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'm6r' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
</header>
<?php
/**
* Filter the status avatar size.
*
* @since TwentyTwelve
*
* @param int $size The height and width of the avatar in pixels.
*/
$status_avatar = apply_filters( 'm6r_status_avatar', 48 );
echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar );
?>
</div><!-- .entry-header -->
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'm6r' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( comments_open() ) : ?>
<div class="comments-link">
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'm6r' ) . '</span>', __( '1 Reply', 'm6r' ), __( '% Replies', 'm6r' ) ); ?>
</div><!-- .comments-link -->
<?php endif; // comments_open() ?>
<?php edit_post_link( __( 'Edit', 'm6r' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post -->