2012-09-04 07:00:19 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying posts in the Status post format
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Twelve
|
|
|
|
* @since Twenty Twelve 1.0
|
|
|
|
*/
|
2019-07-09 03:10:00 +02:00
|
|
|
|
2019-09-03 02:41:05 +02:00
|
|
|
/* translators: %s: Post title. */
|
2019-07-09 03:10:00 +02:00
|
|
|
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
2012-09-04 07:00:19 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
2012-09-20 23:51:48 +02:00
|
|
|
<div class="entry-header">
|
|
|
|
<header>
|
|
|
|
<h1><?php the_author(); ?></h1>
|
2019-07-09 03:10:00 +02:00
|
|
|
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
|
2012-09-20 23:51:48 +02:00
|
|
|
</header>
|
2013-09-20 21:24:09 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2020-08-11 02:34:08 +02:00
|
|
|
* Filters the status avatar size.
|
2013-09-20 21:24:09 +02:00
|
|
|
*
|
|
|
|
* @since Twenty Twelve 1.0
|
|
|
|
*
|
|
|
|
* @param int $size The height and width of the avatar in pixels.
|
|
|
|
*/
|
|
|
|
$status_avatar = apply_filters( 'twentytwelve_status_avatar', 48 );
|
|
|
|
echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar );
|
|
|
|
?>
|
2012-09-20 23:51:48 +02:00
|
|
|
</div><!-- .entry-header -->
|
|
|
|
|
2012-09-04 07:00:19 +02:00
|
|
|
<div class="entry-content">
|
|
|
|
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
|
|
|
|
</div><!-- .entry-content -->
|
|
|
|
|
|
|
|
<footer class="entry-meta">
|
2012-10-12 00:26:06 +02:00
|
|
|
<?php if ( comments_open() ) : ?>
|
|
|
|
<div class="comments-link">
|
|
|
|
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
|
|
|
</div><!-- .comments-link -->
|
|
|
|
<?php endif; // comments_open() ?>
|
2012-09-04 07:00:19 +02:00
|
|
|
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
|
|
|
</footer><!-- .entry-meta -->
|
|
|
|
</article><!-- #post -->
|