PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/ActivateNY/activateny.org
PHP | 52 lines | 39 code | 4 blank | 9 comment | 5 complexity | 5b4055e739dea0f4ee67c03b97c23fd3 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 Aside 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. * @since Catch Box 1.0
  10. */
  11. ?>
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <header class="entry-header">
  14. <hgroup>
  15. <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>
  16. <h3 class="entry-format"><?php _e( 'Aside', 'catchbox' ); ?></h3>
  17. </hgroup>
  18. <?php if ( comments_open() && ! post_password_required() ) : ?>
  19. <div class="comments-link">
  20. <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'catchbox' ) . '</span>', _x( '1', 'comments number', 'catchbox' ), _x( '%', 'comments number', 'catchbox' ) ); ?>
  21. </div>
  22. <?php endif; ?>
  23. </header><!-- .entry-header -->
  24. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  25. <div class="entry-summary">
  26. <?php the_excerpt(); ?>
  27. </div><!-- .entry-summary -->
  28. <?php else : ?>
  29. <div class="entry-content">
  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(); ?> -->