PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/ActivateNY/activateny.org
PHP | 53 lines | 39 code | 5 blank | 9 comment | 3 complexity | 9ae9b7c2282f6b9788b3ac3392939c40 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * The template for displaying content featured in the showcase.php page template
  4. *
  5. * @package Catch Themes
  6. * @subpackage Catch_Box
  7. * @since Catch Box 1.0
  8. */
  9. global $feature_class;
  10. ?>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>>
  12. <header class="entry-header">
  13. <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>
  14. <div class="entry-meta">
  15. <?php catchbox_posted_on(); ?>
  16. </div><!-- .entry-meta -->
  17. </header><!-- .entry-header -->
  18. <div class="entry-summary">
  19. <?php the_excerpt(); ?>
  20. <?php wp_link_pages( array(
  21. 'before' => '<div class="page-link"><span class="pages">' . __( 'Pages:', 'catchbox' ) . '</span>',
  22. 'after' => '</div>',
  23. 'link_before' => '<span>',
  24. 'link_after' => '</span>',
  25. ) );
  26. ?>
  27. </div><!-- .entry-content -->
  28. <footer class="entry-meta">
  29. <?php
  30. /* translators: used between list items, there is a space after the comma */
  31. $tag_list = get_the_tag_list( '', __( ', ', 'catchbox' ) );
  32. if ( '' != $tag_list ) {
  33. $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'catchbox' );
  34. } else {
  35. $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'catchbox' );
  36. }
  37. printf(
  38. $utility_text,
  39. /* translators: used between list items, there is a space after the comma */
  40. get_the_category_list( __( ', ', 'catchbox' ) ),
  41. $tag_list,
  42. esc_url( get_permalink() ),
  43. the_title_attribute( 'echo=0' )
  44. );
  45. ?>
  46. <?php edit_post_link( __( 'Edit', 'catchbox' ), '<span class="edit-link">', '</span>' ); ?>
  47. </footer><!-- .entry-meta -->
  48. </article><!-- #post-<?php the_ID(); ?> -->