PageRenderTime 53ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/twentyeleven/content-featured.php

https://bitbucket.org/abnopanda/wordpress
PHP | 47 lines | 33 code | 5 blank | 9 comment | 3 complexity | 5b2a19f797d677ab45c82261999337f1 MD5 | raw file
  1. <?php
  2. /**
  3. * The template for displaying content featured in the showcase.php page template
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Eleven
  7. * @since Twenty Eleven 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 echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  14. <div class="entry-meta">
  15. <?php twentyeleven_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( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  21. </div><!-- .entry-content -->
  22. <footer class="entry-meta">
  23. <?php
  24. /* translators: used between list items, there is a space after the comma */
  25. $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  26. if ( '' != $tag_list ) {
  27. $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>.', 'twentyeleven' );
  28. } else {
  29. $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  30. }
  31. printf(
  32. $utility_text,
  33. /* translators: used between list items, there is a space after the comma */
  34. get_the_category_list( __( ', ', 'twentyeleven' ) ),
  35. $tag_list,
  36. esc_url( get_permalink() ),
  37. the_title_attribute( 'echo=0' )
  38. );
  39. ?>
  40. <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  41. </footer><!-- .entry-meta -->
  42. </article><!-- #post-<?php the_ID(); ?> -->