PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/htdocs/wp-content/themes/twentytwelve/content-status.php

https://bitbucket.org/dkrzos/phc
PHP | 32 lines | 22 code | 3 blank | 7 comment | 1 complexity | 3be048238b542d21e46d0d9602f7b4ca MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /**
  3. * The template for displaying posts in the Status post format
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Twelve
  7. * @since Twenty Twelve 1.0
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <div class="entry-header">
  12. <header>
  13. <h1><?php the_author(); ?></h1>
  14. <h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
  15. </header>
  16. <?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentytwelve_status_avatar', '48' ) ); ?>
  17. </div><!-- .entry-header -->
  18. <div class="entry-content">
  19. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
  20. </div><!-- .entry-content -->
  21. <footer class="entry-meta">
  22. <?php if ( comments_open() ) : ?>
  23. <div class="comments-link">
  24. <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
  25. </div><!-- .comments-link -->
  26. <?php endif; // comments_open() ?>
  27. <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
  28. </footer><!-- .entry-meta -->
  29. </article><!-- #post -->