PageRenderTime 24ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/the-go-green-theme/single.php

https://bitbucket.org/aqge/deptandashboard
PHP | 67 lines | 40 code | 21 blank | 6 comment | 15 complexity | f9c366237633aeac905f1761d48ce465 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <div id="content" class="widecolumn">
  3. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4. <div class="navigation">
  5. <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
  6. <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
  7. </div>
  8. <div class="post" id="post-<?php the_ID(); ?>">
  9. <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  10. <div class="entry">
  11. <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
  12. <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  13. <p><?php the_tags(); ?></p>
  14. <p class="postmetadata alt">
  15. <small>
  16. This entry was posted
  17. <?php /* This is commented, because it requires a little adjusting sometimes.
  18. You'll need to download this plugin, and follow the instructions:
  19. http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
  20. /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
  21. on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
  22. and is filed under <?php the_category(', ') ?>.
  23. You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
  24. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  25. // Both Comments and Pings are open ?>
  26. You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
  27. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  28. // Only Pings are Open ?>
  29. Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
  30. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  31. // Comments are open, Pings are not ?>
  32. You can skip to the end and leave a response. Pinging is currently not allowed.
  33. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  34. // Neither Comments, nor Pings are open ?>
  35. Both comments and pings are currently closed.
  36. <?php } edit_post_link('Edit this entry.','',''); ?>
  37. </small>
  38. </p>
  39. </div>
  40. </div>
  41. <?php comments_template(); ?>
  42. <?php endwhile; else: ?>
  43. <p>Sorry, no posts matched your criteria.</p>
  44. <?php endif; ?>
  45. </div>
  46. <?php get_footer(); ?>