PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/markjaquith/WordPress
PHP | 55 lines | 40 code | 4 blank | 11 comment | 5 complexity | 43fb57cfc077d8d22f15e380b660106b MD5 | raw file
Possible License(s): 0BSD
  1. <?php
  2. /**
  3. * Template for displaying posts in the Link Post Format
  4. *
  5. * Used on index and archive pages
  6. *
  7. * @link https://wordpress.org/support/article/post-formats/
  8. *
  9. * @package WordPress
  10. * @subpackage Twenty_Eleven
  11. * @since Twenty Eleven 1.0
  12. */
  13. ?>
  14. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  15. <header class="entry-header">
  16. <hgroup>
  17. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  18. <h3 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h3>
  19. </hgroup>
  20. <?php if ( comments_open() && ! post_password_required() ) : ?>
  21. <div class="comments-link">
  22. <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
  23. </div>
  24. <?php endif; ?>
  25. </header><!-- .entry-header -->
  26. <?php if ( is_search() ) : // Only display excerpts for search. ?>
  27. <div class="entry-summary">
  28. <?php the_excerpt(); ?>
  29. </div><!-- .entry-summary -->
  30. <?php else : ?>
  31. <div class="entry-content">
  32. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  33. <?php
  34. wp_link_pages(
  35. array(
  36. 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>',
  37. 'after' => '</div>',
  38. )
  39. );
  40. ?>
  41. </div><!-- .entry-content -->
  42. <?php endif; ?>
  43. <footer class="entry-meta">
  44. <?php twentyeleven_posted_on(); ?>
  45. <?php if ( comments_open() ) : ?>
  46. <span class="sep"> | </span>
  47. <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>
  48. <?php endif; ?>
  49. <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  50. </footer><!-- .entry-meta -->
  51. </article><!-- #post-<?php the_ID(); ?> -->