PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 60 lines | 42 code | 14 blank | 4 comment | 9 complexity | 8c87a656ceac431b2513a2c14c3b3c7e MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <?php get_sidebar(); ?>
  3. <?php include (TEMPLATEPATH . '/right-sidebar.php'); ?>
  4. <div id="content">
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <div class="navigation">
  7. <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
  8. <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
  9. </div>
  10. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  11. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h2>
  12. <p class="date"><?php _e('Posted by','andreas09'); ?> <?php if (get_the_author_url()) { ?><a href="<?php the_author_url(); ?>"><?php the_author(); ?></a><?php } else { the_author(); } ?> <?php _e('on','andreas09'); ?> <?php the_time(get_option("date_format")); ?></p>
  13. <div class="entrytext">
  14. <?php the_content(__('Read the rest of this entry &raquo;','andreas09')); ?>
  15. </div>
  16. <?php link_pages('<p><strong>'.__('Pages:','andreas09').'</strong> ', '</p>', 'number'); ?>
  17. <p class="postmetadata">
  18. <?php _e('This entry was posted on','andreas09'); ?> <?php the_time(get_option('date_format')) ?> <?php _e('at','andreas09'); ?> <?php the_time() ?>
  19. <?php _e('and is filed under','andreas09'); ?> <?php the_category(', ') ?>.
  20. <?php the_tags( __( 'Tagged' ) . ': ', ', ', '. '); ?>
  21. <?php _e('You can follow any responses to this entry through the','andreas09'); ?> <?php post_comments_feed_link( 'RSS 2.0' ); ?> <?php _e('feed','andreas09'); ?>.
  22. <?php if (comments_open() && pings_open()) {
  23. // Both Comments and Pings are open ?>
  24. <?php _e('You can','andreas09'); ?> <a href="#respond"><?php _e('leave a response','andreas09'); ?></a>, <?php _e('or','andreas09'); ?> <a href="<?php trackback_url(true); ?>" rel="trackback"><?php _e('trackback','andreas09'); ?></a> <?php _e('from your own site','andreas09'); ?>.
  25. <?php } elseif (!comments_open() && pings_open()) {
  26. // Only Pings are Open ?>
  27. <?php _e('Responses are currently closed, but you can','andreas09'); ?> <a href="<?php trackback_url(true); ?> " rel="trackback"><?php _e('trackback','andreas09'); ?></a> <?php _e('from your own site','andreas09'); ?>.
  28. <?php } elseif (comments_open() && !pings_open()) {
  29. // Comments are open, Pings are not ?>
  30. <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.','andreas09'); ?>
  31. <?php } elseif (!comments_open() && !pings_open()) {
  32. // Neither Comments, nor Pings are open ?>
  33. <?php _e('Both comments and pings are currently closed.','andreas09'); ?>
  34. <?php } edit_post_link(__('Edit this entry.','andreas09'),'',''); ?>
  35. </p>
  36. </div>
  37. <?php comments_template(); ?>
  38. <div class="bottomnavigation">
  39. <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
  40. <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
  41. </div>
  42. <?php endwhile; else: ?>
  43. <p><?php _e('Sorry, no posts matched your criteria.','andreas09'); ?></p>
  44. <?php endif; ?>
  45. </div>
  46. <?php get_footer(); ?>