PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/markjaquith/WordPress
PHP | 52 lines | 39 code | 5 blank | 8 comment | 3 complexity | d21b49a21bee08412d7a8961cbf2ae1b 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 Link post format
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Thirteen
  7. * @since Twenty Thirteen 1.0
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <h1 class="entry-title">
  13. <a href="<?php echo esc_url( twentythirteen_get_link_url() ); ?>"><?php the_title(); ?></a>
  14. </h1>
  15. <div class="entry-meta">
  16. <?php twentythirteen_entry_date(); ?>
  17. <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
  18. </div><!-- .entry-meta -->
  19. </header><!-- .entry-header -->
  20. <div class="entry-content">
  21. <?php
  22. the_content(
  23. sprintf(
  24. /* translators: %s: Post title. */
  25. __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
  26. the_title( '<span class="screen-reader-text">', '</span>', false )
  27. )
  28. );
  29. wp_link_pages(
  30. array(
  31. 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
  32. 'after' => '</div>',
  33. 'link_before' => '<span>',
  34. 'link_after' => '</span>',
  35. )
  36. );
  37. ?>
  38. </div><!-- .entry-content -->
  39. <?php if ( is_single() ) : ?>
  40. <footer class="entry-meta">
  41. <?php twentythirteen_entry_meta(); ?>
  42. <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
  43. <?php get_template_part( 'author-bio' ); ?>
  44. <?php endif; ?>
  45. </footer><!-- .entry-meta -->
  46. <?php endif; // is_single() ?>
  47. </article><!-- #post -->