PageRenderTime 58ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 63 lines | 49 code | 10 blank | 4 comment | 3 complexity | 91bffeb2fa391d48e32c7d41eecb01fe 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 Neutra
  5. */
  6. get_header(); ?>
  7. <div id="page">
  8. <div id="left">
  9. <?php if ( have_posts() ) : ?>
  10. <?php while ( have_posts() ) : the_post(); ?>
  11. <div <?php post_class('post'); ?> id="post-<?php the_ID(); ?>">
  12. <h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  13. <div class="postcontent">
  14. <?php the_content( 'Read more&#8230;' ); ?>
  15. <?php wp_link_pages( 'before=<p class="link-pages">Pages: &after=</p>' ); ?>
  16. <p class="edit-post"><?php edit_post_link( __( '(Edit this entry)' ) ); ?></p>
  17. <div class="postmetadata">
  18. <div class="floatleft">
  19. <p><span class="category"><?php the_category( ', ' ); ?></span></p>
  20. <p><?php the_tags( '<span class="tags">', ', ', '</span>' ); ?></p>
  21. </div><!-- /floatleft -->
  22. <div class="floatright">
  23. <p><span class="date"><?php the_time( get_option( 'date_format' ) ); ?></span></p>
  24. <p><span class="comments"><?php comments_popup_link( __( 'Leave a comment' ), __( '1 Comment' ), __( '% Comments' ) ) ?></span></p>
  25. </div><!-- /floatright -->
  26. </div><!-- /postmetadata -->
  27. </div><!-- /postcontent -->
  28. </div><!-- /post -->
  29. <div class="navigation">
  30. <div class="alignleft"><?php previous_post_link( '%link', '&laquo; %title' ); ?></div>
  31. <div class="alignright"><?php next_post_link( '%link', '%title &raquo;' ); ?></div>
  32. </div><!-- /navigation -->
  33. <?php comments_template( '', true ); ?>
  34. <?php endwhile; ?>
  35. <?php else : ?>
  36. <div class="post">
  37. <h2 class="title">I'm sorry, I couldn't find the article!</h2>
  38. <div class="postcontent">
  39. <p>Don't worry, you can always search the <strong>archives</strong> or browse the <strong>categories</strong>.</p>
  40. </div>
  41. </div><!-- /post -->
  42. <?php endif; ?>
  43. </div><!-- /left -->
  44. <div id="right">
  45. <?php get_sidebar(); ?>
  46. </div><!-- /right -->
  47. </div><!-- /page -->
  48. <?php get_footer(); ?>