PageRenderTime 55ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 48 lines | 30 code | 14 blank | 4 comment | 3 complexity | 0f46d6efded9fedff17cdc13ef4245e8 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 P2
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8. <div class="sleeve_main">
  9. <div id="main">
  10. <?php if ( have_posts() ) : ?>
  11. <?php while ( have_posts() ) : the_post(); ?>
  12. <div class="controls">
  13. <a href="#" id="togglecomments"><?php _e( 'Hide threads', 'p2' ); ?></a>
  14. &nbsp;|&nbsp;
  15. <a href="#directions" id="directions-keyboard"><?php _e( 'Keyboard Shortcuts', 'p2' ); ?></a>
  16. </div>
  17. <ul id="postlist">
  18. <?php p2_load_entry(); // loads entry.php ?>
  19. </ul>
  20. <?php endwhile; ?>
  21. <?php else : ?>
  22. <ul id="postlist">
  23. <li class="no-posts">
  24. <h3><?php _e( 'No posts yet!', 'p2' ); ?></h3>
  25. </li>
  26. </ul>
  27. <?php endif; ?>
  28. <div class="navigation">
  29. <p class="nav-older"><?php previous_post_link( '%link', __( '&larr;', 'Previous post link', 'p2' ) . ' %title' ); ?></p>
  30. <p class="nav-newer"><?php next_post_link( '%link', '%title ' . __( '&rarr;', 'Next post link', 'p2' ) ); ?></p>
  31. </div>
  32. </div> <!-- main -->
  33. </div> <!-- sleeve -->
  34. <?php get_footer(); ?>