PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/clean-home/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 47 lines | 34 code | 9 blank | 4 comment | 4 complexity | ae77c97ed97419fc3aa37fa690d5372b 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 Clean Home
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8. <div class="content">
  9. <?php if ( have_posts() ) : ?>
  10. <?php while ( have_posts() ) : the_post(); ?>
  11. <div class="navigation nav-above">
  12. <div class="alignleft"><?php next_post_link( '&larr; %link' ); ?></div>
  13. <div class="alignright"><?php previous_post_link( '%link &rarr;' ); ?></div>
  14. </div>
  15. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  16. <h1><?php the_title(); ?></h1>
  17. <small class="post-meta"><b><?php _e( 'Posted:', 'cleanhome' ); ?></b> <?php the_time( 'F jS, Y' ); ?> | <b><?php _e( 'Author:', 'cleanhome' ); ?></b> <?php the_author_posts_link(); ?> | <b><?php _e( 'Filed under:', 'cleanhome' ); ?></b> <?php the_category( ', ' ); ?> <?php the_tags( ' | <b>Tags:</b> ', ', ', '' ); ?><?php edit_post_link( __( 'Edit this', 'cleanhome' ), ' | <b>Modify:</b> ' ); ?> | <?php comments_popup_link( __( 'Leave a comment &#187;', 'cleanhome' ), __( '<strong>1</strong> Comment &#187;', 'cleanhome' ), __( '<strong>%</strong> Comments &#187;', 'cleanhome' ) ); ?></small>
  18. <?php the_content( 'Read the rest of this entry &raquo;' ); ?>
  19. <?php wp_link_pages( array( 'before' => '<p>Page: ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
  20. <hr/>
  21. </div>
  22. <?php comments_template(); ?>
  23. <?php endwhile; ?>
  24. <div class="navigation">
  25. <div class="alignleft"><?php next_post_link( '&larr; %link' ); ?></div>
  26. <div class="alignright"><?php previous_post_link( '%link &rarr;' ); ?></div>
  27. </div>
  28. <?php else : ?>
  29. <h2 class="center"><?php _e( 'Not found', 'cleanhome' ); ?></h2>
  30. <p class="center"><?php _e( "Sorry, but you are looking for something that isn't here.", 'cleanhome' ); ?></p>
  31. <?php endif; ?>
  32. </div>
  33. <?php get_footer(); ?>