PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/davodey/WordPress
PHP | 48 lines | 33 code | 4 blank | 11 comment | 5 complexity | a4763bcf3f7d7fde8349fe3265efc659 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * Template for displaying posts in the Link Post Format
  4. *
  5. * Used on index and archive pages
  6. *
  7. * @link http://codex.wordpress.org/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 wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  34. </div><!-- .entry-content -->
  35. <?php endif; ?>
  36. <footer class="entry-meta">
  37. <?php twentyeleven_posted_on(); ?>
  38. <?php if ( comments_open() ) : ?>
  39. <span class="sep"> | </span>
  40. <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>
  41. <?php endif; ?>
  42. <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  43. </footer><!-- .entry-meta -->
  44. </article><!-- #post-<?php the_ID(); ?> -->