PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 73 lines | 51 code | 18 blank | 4 comment | 2 complexity | e9091103390dee787f91f5f3b92c6f39 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 Bueno
  5. */
  6. get_header();
  7. ?>
  8. <div id="content" class="col-full">
  9. <div id="main" class="col-left">
  10. <?php if (have_posts()) : $count = 0; ?>
  11. <?php while (have_posts()) : the_post(); $count++; ?>
  12. <div class="post">
  13. <h1 class="title"><?php the_title(); ?></h1>
  14. <p class="date">
  15. <span class="day"><?php the_time('j'); ?></span>
  16. <span class="month"><?php the_time('M'); ?></span>
  17. </p>
  18. <div class="entry">
  19. <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'woothemes' ) ); ?>
  20. <?php wp_link_pages( array( 'before' => '<p class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</p>' ) ); ?>
  21. <?php the_tags( '<p>' . __( 'Tags: ', 'woothemes' ), ', ', '</p>' ); ?>
  22. <?php edit_post_link( __( 'Edit This', 'woothemes' ), '<p>', '</p>' ); ?>
  23. </div>
  24. <div class="post-meta">
  25. <ul>
  26. <li class="comments">
  27. <span class="head"><?php _e('Comments', 'woothemes') ?></span>
  28. <span class="body"><?php comments_popup_link(__('Leave a Comment', 'woothemes'), __('1 Comment', 'woothemes'), __('% Comments', 'woothemes')); ?></span>
  29. </li>
  30. <li class="categories">
  31. <span class="head"><?php _e('Categories', 'woothemes') ?></span>
  32. <span class="body"><?php the_category(', ') ?></span>
  33. </li>
  34. <li class="author">
  35. <span class="head"><?php _e('Author', 'woothemes') ?></span>
  36. <span class="body"><?php the_author_posts_link(); ?></span>
  37. </li>
  38. </ul>
  39. <div class="fix"></div>
  40. </div><!-- /.post-meta -->
  41. <div id="nav-below" class="navigation">
  42. <div class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> %title' ) ); ?></div>
  43. <div class="nav-next"><?php next_post_link( '%link', __('%title <span class="meta-nav">&rarr;</span>') ); ?></div>
  44. </div><!-- #nav-below -->
  45. </div><!-- /.post -->
  46. <?php comments_template('', true); ?>
  47. <?php endwhile; else: ?>
  48. <div class="post">
  49. <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
  50. </div><!-- /.post -->
  51. <?php endif; ?>
  52. </div><!-- /#main -->
  53. <?php get_sidebar(); ?>
  54. </div><!-- /#content -->
  55. <?php get_footer(); ?>