PageRenderTime 47ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/pilcrow/loop-single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 56 lines | 32 code | 10 blank | 14 comment | 3 complexity | 39d29da29bfc2dc7d0bca644a76cc7e9 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * The loop that displays a single post.
  4. *
  5. * The loop displays the posts and the post content. See
  6. * http://codex.wordpress.org/The_Loop to understand it and
  7. * http://codex.wordpress.org/Template_Tags to understand
  8. * the tags used in it.
  9. *
  10. * This can be overridden in child themes with loop-single.php.
  11. *
  12. * @package WordPress
  13. * @subpackage Pilcrow
  14. * @since Pilcrow 1.0
  15. */
  16. ?>
  17. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  18. <div id="nav-above" class="navigation">
  19. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'pilcrow' ) . '</span> %title' ); ?></div>
  20. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'pilcrow' ) . '</span>' ); ?></div>
  21. </div><!-- #nav-above -->
  22. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  23. <div class="entry-meta">
  24. <?php the_date(); ?> &middot; <?php the_time(); ?>
  25. <?php edit_post_link( __( 'Edit', 'pilcrow' ), '<span class="edit-link"> | ', '</span>' ); ?>
  26. </div><!-- .entry-meta -->
  27. <?php if ( comments_open() ) : ?>
  28. <div class="jump"><a href="<?php the_permalink(); ?>#comments"><?php _e( '<span class="meta-nav">&darr; </span>Jump to Comments', 'pilcrow' ); ?></a></div>
  29. <?php endif; ?>
  30. <h1 class="entry-title"><?php the_title(); ?></h1>
  31. <div class="entry entry-content">
  32. <?php the_content(); ?>
  33. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'pilcrow' ), 'after' => '</div>' ) ); ?>
  34. </div><!-- .entry-content -->
  35. <div class="entry-links">
  36. <p class="comment-number"><?php comments_popup_link( __( 'Leave a Comment' ), __( '1 Comment' ), __( '% Comments' ) ); ?></p>
  37. <p class="entry-categories tagged"><?php printf( __( 'Filed under %s' ), get_the_category_list( ', ' ) ); ?></p>
  38. <p class="entry-tags tagged"><?php the_tags( __( 'Tagged as' ).' ', ', ', '<br />' ); ?></p>
  39. </div><!-- .entry-links -->
  40. </div><!-- #post-## -->
  41. <div id="nav-below" class="navigation">
  42. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'pilcrow' ) . '</span> %title' ); ?></div>
  43. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'pilcrow' ) . '</span>' ); ?></div>
  44. </div><!-- #nav-below -->
  45. <?php comments_template( '', true ); ?>
  46. <?php endwhile; // end of the loop. ?>