PageRenderTime 87ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/catch-box/content-status.php

https://github.com/ActivateNY/activateny.org
PHP | 53 lines | 40 code | 5 blank | 8 comment | 5 complexity | 10f32cd81edda7c1008faf3f3f41b762 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  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 Catch Themes
  8. * @subpackage Catch_Box
  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', 'catchbox' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  15. <h3 class="entry-format"><?php _e( 'Status', 'catchbox' ); ?></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', 'catchbox' ) . '</span>', _x( '1', 'comments number', 'catchbox' ), _x( '%', 'comments number', 'catchbox' ) ); ?>
  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( 'catchbox_status_avatar', '65' ) ); ?></div>
  30. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'catchbox' ) ); ?>
  31. <?php wp_link_pages( array(
  32. 'before' => '<div class="page-link"><span class="pages">' . __( 'Pages:', 'catchbox' ) . '</span>',
  33. 'after' => '</div>',
  34. 'link_before' => '<span>',
  35. 'link_after' => '</span>',
  36. ) );
  37. ?>
  38. </div><!-- .entry-content -->
  39. <?php endif; ?>
  40. <footer class="entry-meta">
  41. <?php catchbox_posted_on(); ?>
  42. <?php if ( comments_open() ) : ?>
  43. <span class="sep"> | </span>
  44. <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'catchbox' ) . '</span>', __( '<b>1</b> Reply', 'catchbox' ), __( '<b>%</b> Replies', 'catchbox' ) ); ?></span>
  45. <?php endif; ?>
  46. <?php edit_post_link( __( 'Edit', 'catchbox' ), '<span class="edit-link">', '</span>' ); ?>
  47. </footer><!-- #entry-meta -->
  48. </article><!-- #post-<?php the_ID(); ?> -->