content-link.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * The template for displaying link post formats.
  4. *
  5. * Used for both single and index/archive/search.
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Fifteen
  9. * @since Twenty Fifteen 1.0
  10. */
  11. ?>
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <?php twentyfifteen_post_thumbnail(); ?>
  14. <header class="entry-header">
  15. <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' ); ?>
  16. </header>
  17. <!-- .entry-header -->
  18. <div class="entry-content">
  19. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfifteen' ) ); ?>
  20. <?php
  21. wp_link_pages( array(
  22. 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'twentyfifteen' ) . '</span>',
  23. 'after' => '</div>',
  24. 'link_before' => '<span>',
  25. 'link_after' => '</span>',
  26. ) );
  27. ?>
  28. </div>
  29. <!-- .entry-content -->
  30. <?php
  31. if ( is_single() && get_the_author_meta( 'description' ) ) :
  32. get_template_part( 'author-bio' );
  33. endif;
  34. ?>
  35. <footer class="entry-footer">
  36. <?php twentyfifteen_entry_meta(); ?>
  37. <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
  38. </footer>
  39. <!-- .entry-footer -->
  40. </article><!-- #post-## -->