PageRenderTime 54ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 42 lines | 38 code | 0 blank | 4 comment | 6 complexity | 04101f9ee5bb31db727c5d29eda280f2 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 Paperpunch
  5. */
  6. ?><?php get_header(); ?>
  7. <?php if (have_posts()) : ?>
  8. <?php while (have_posts()) : the_post(); ?>
  9. <div class="post-box">
  10. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <div class="meta clear">
  12. <div class="author"><?php the_time( get_option( 'date_format' ) ); ?> <span>/ <?php printf(__( '%s', 'paperpunch' ), get_the_author()); ?></span></div>
  13. </div><!--end meta-->
  14. <div class="post-header">
  15. <h1><?php the_title(); ?></h1>
  16. <?php the_tags( '<div class="tags">', ', ', '</div>' ); ?>
  17. </div><!--end post header-->
  18. <div class="entry clear">
  19. <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail( array(250,9999), array( 'class' => ' alignleft' ) ); ?>
  20. <?php the_content(__( 'Read more...', 'paperpunch' )); ?>
  21. <?php edit_post_link( __( 'Edit this', 'paperpunch' ), '<p>', '</p>' ); ?>
  22. <?php wp_link_pages(); ?>
  23. </div><!--end entry-->
  24. <div class="post-footer clear">
  25. <?php if ( 'closed' == $post->comment_status) : ?>
  26. <p class="note"><?php _e( 'Comments are closed.', 'paperpunch' ); ?></p>
  27. <?php endif; ?>
  28. <div class="category"><?php _e( 'Filed under', 'paperpunch' ); ?> <?php the_category( ', ' ); ?></div>
  29. </div><!--end post footer-->
  30. </div><!--end post-->
  31. </div><!--end post-box-->
  32. <div class="pagination post single clear">
  33. <div class="alignleft"><?php previous_post_link( '%link', _x( '&larr;', 'Previous post link', 'paperpunch' ) . ' %title' ); ?></div>
  34. <div class="alignright" ><?php next_post_link( '%link', _x( '%title ', 'Next post link', 'paperpunch' ) . '&rarr;' ); ?></div>
  35. </div><!--end pagination-->
  36. <?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
  37. <?php comments_template( '', true); ?>
  38. <?php else : ?>
  39. <?php endif; ?>
  40. </div><!--end content-->
  41. <?php get_sidebar(); ?>
  42. <?php get_footer(); ?>