PageRenderTime 54ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/dkrzos/phc
PHP | 47 lines | 34 code | 5 blank | 8 comment | 5 complexity | 904b51ff1263cff267cd61c042485a0e MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /**
  3. * The template for displaying posts in the Status Post Format on index and archive pages
  4. *
  5. * Learn more: http://codex.wordpress.org/Post_Formats
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Eleven
  9. */
  10. ?>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12. <header class="entry-header">
  13. <hgroup>
  14. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  15. <h3 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h3>
  16. </hgroup>
  17. <?php if ( comments_open() && ! post_password_required() ) : ?>
  18. <div class="comments-link">
  19. <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
  20. </div>
  21. <?php endif; ?>
  22. </header><!-- .entry-header -->
  23. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  24. <div class="entry-summary">
  25. <?php the_excerpt(); ?>
  26. </div><!-- .entry-summary -->
  27. <?php else : ?>
  28. <div class="entry-content">
  29. <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentyeleven_status_avatar', '65' ) ); ?></div>
  30. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  31. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  32. </div><!-- .entry-content -->
  33. <?php endif; ?>
  34. <footer class="entry-meta">
  35. <?php twentyeleven_posted_on(); ?>
  36. <?php if ( comments_open() ) : ?>
  37. <span class="sep"> | </span>
  38. <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
  39. <?php endif; ?>
  40. <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  41. </footer><!-- #entry-meta -->
  42. </article><!-- #post-<?php the_ID(); ?> -->