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

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 44 lines | 39 code | 1 blank | 4 comment | 3 complexity | 42da148f8a4752ce9916e2230849a610 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 Traction
  5. */
  6. get_header(); ?>
  7. <?php if (have_posts()) : ?>
  8. <div id="main-top">
  9. <div class="main-top-left">
  10. <h4><?php the_time( get_option( 'date_format' ) ); ?></h4>
  11. <div class="single-comments">
  12. <a href="#comments"><?php comments_number( '', '1', '%' ); ?></a>
  13. </div>
  14. </div>
  15. <?php get_template_part( 'subscribe' ); ?>
  16. </div>
  17. <div id="main" class="clear">
  18. <div id="content">
  19. <?php while (have_posts()) : the_post(); ?>
  20. <div id="post-<?php the_ID(); ?>" <?php post_class( 'clear single' ); ?>>
  21. <h1 class="title"><?php the_title(); ?></h1>
  22. <div class="entry single">
  23. <?php the_post_thumbnail( 'index-thumb', array( 'class' => 'single-post-thm alignright border' ) ); ?>
  24. <?php the_content(); ?>
  25. <?php edit_post_link( __( 'Edit', 'traction' ) ); ?>
  26. <?php wp_link_pages(); ?>
  27. </div><!--end entry-->
  28. <div class="meta clear">
  29. <div class="cats"><?php _e( '<em>Read more from</em>', 'traction' ); ?> <?php the_category( ', ' ); ?></div>
  30. <div class="tags"><?php the_tags( '' ); ?></div>
  31. </div><!--end meta-->
  32. </div><!--end post-->
  33. <?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
  34. <div class="navigation post single clear">
  35. <div class="alignleft"><?php previous_post_link( '%link', _x( '&larr;', 'Previous post link', 'paperpunch' ) . ' %title' ); ?></div>
  36. <div class="alignright" ><?php next_post_link( '%link', _x( '%title ', 'Next post link', 'paperpunch' ) . '&rarr;' ); ?></div>
  37. </div><!--end navigation-->
  38. <?php comments_template( '', true); ?>
  39. <?php else : ?>
  40. <?php endif; ?>
  41. </div><!--end content-->
  42. <?php get_sidebar(); ?>
  43. <?php get_footer(); ?>