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

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

https://bitbucket.org/broderboy/shannonbroder-wordpress
PHP | 36 lines | 25 code | 4 blank | 7 comment | 3 complexity | 10ed0cf96313ee7e9699aa55ab6711d8 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, AGPL-1.0
  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 the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
  22. <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
  23. </div><!-- .entry-content -->
  24. <?php if ( is_single() ) : ?>
  25. <footer class="entry-meta">
  26. <?php twentythirteen_entry_meta(); ?>
  27. <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
  28. <?php get_template_part( 'author-bio' ); ?>
  29. <?php endif; ?>
  30. </footer><!-- .entry-meta -->
  31. <?php endif; // is_single() ?>
  32. </article><!-- #post -->