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

/blog/wp-content/themes/notepad/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 71 lines | 55 code | 12 blank | 4 comment | 2 complexity | a452c58809d9a17aa7b3867608210c41 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Notepad
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8. <div id="content">
  9. <p class="post-nav">
  10. <span class="previous">
  11. <?php previous_post_link('%link') ?>
  12. </span>
  13. <span class="next">
  14. <?php next_post_link('%link') ?>
  15. </span>
  16. </p>
  17. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  18. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  19. <h2 class="post-title">
  20. <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
  21. </h2>
  22. <p class="post-date">
  23. <?php the_time( get_option( 'date_format' ) ) ?>
  24. </p>
  25. <p class="post-data">
  26. <span class="postauthor">
  27. <?php the_author_link(); ?>
  28. </span>
  29. <span class="postcategory">
  30. <?php the_category( ', ' ) ?>
  31. </span>
  32. <?php the_tags( '<span class="posttag">', ', ', '</span>' ); ?>
  33. <span class="postcomment">
  34. <?php comments_popup_link(__( 'Leave a comment','notepad-theme' ), __( '1 Comment','notepad-theme' ), __( '% Comments','notepad-theme' ) ); ?>
  35. </span>
  36. <?php edit_post_link(__( '[Edit]','notepad-theme' ) ); ?>
  37. </p>
  38. <div class="post-content">
  39. <?php the_content(__( 'More','notepad-theme' ) ); ?>
  40. </div>
  41. <?php wp_link_pages( array( 'before' => '<p><strong>'.__( 'Pages:','notepad-theme' ).'</strong> ', 'after' => '</p>', 'next_or_number' => 'number') ); ?>
  42. </div>
  43. <!--/post -->
  44. <?php comments_template(); ?>
  45. <p class="post-nav">
  46. <span class="previous">
  47. <?php previous_post_link( '%link' ) ?>
  48. </span>
  49. <span class="next">
  50. <?php next_post_link( '%link' ) ?>
  51. </span>
  52. </p>
  53. <?php endwhile; else: ?>
  54. <p>Sorry, no posts matched your criteria.</p>
  55. <?php endif; ?>
  56. </div>
  57. <!--/content -->
  58. <?php get_sidebar(); ?>
  59. <?php get_footer(); ?>