PageRenderTime 36ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/single.php

https://github.com/petergibbons/OpenCounterWP
PHP | 70 lines | 39 code | 21 blank | 10 comment | 7 complexity | 2460c419a11545568923b43c913a0e57 MD5 | raw file
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6. get_header();
  7. ?>
  8. <div id="specialnav" class="widecolumn" role="main">
  9. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  10. <div class="navigation">
  11. <div class="alignleft"><?php previous_post_link( '%link', '&laquo; %title' ) ?></div>
  12. <div class="alignright"><?php next_post_link( '%link', '%title &raquo;' ) ?></div>
  13. </div>
  14. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  15. <h2><?php the_title(); ?></h2>
  16. <div class="entry">
  17. <?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'kubrick') . '</p>'); ?>
  18. <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  19. <?php the_tags( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>'); ?>
  20. <p class="postmetadata alt">
  21. <small>
  22. <?php /* This is commented, because it requires a little adjusting sometimes.
  23. You'll need to download this plugin, and follow the instructions:
  24. http://binarybonsai.com/wordpress/time-since/ */
  25. /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'kubrick'), time_since($entry_datetime)); */ ?>
  26. <?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'kubrick'), get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', ')); ?>
  27. <?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "kubrick"), get_post_comments_feed_link()); ?>
  28. <?php if ( comments_open() && pings_open() ) {
  29. // Both Comments and Pings are open ?>
  30. <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), get_trackback_url()); ?>
  31. <?php } elseif ( !comments_open() && pings_open() ) {
  32. // Only Pings are Open ?>
  33. <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), get_trackback_url()); ?>
  34. <?php } elseif ( comments_open() && !pings_open() ) {
  35. // Comments are open, Pings are not ?>
  36. <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); ?>
  37. <?php } elseif ( !comments_open() && !pings_open() ) {
  38. // Neither Comments, nor Pings are open ?>
  39. <?php _e('Both comments and pings are currently closed.', 'kubrick'); ?>
  40. <?php } edit_post_link(__('Edit this entry', 'kubrick'),'','.'); ?>
  41. </small>
  42. </p>
  43. </div>
  44. </div>
  45. <?php endwhile; else: ?>
  46. <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
  47. <?php endif; ?>
  48. </div>
  49. <?php get_footer(); ?>