single.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php get_header(); ?>
  2. <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
  3. <div class="post">
  4. <?php the_title('<h1 class="post-title entry-title">', '</h1>'); ?>
  5. <div class="info">
  6. <?php edit_post_link(__('Edit', 'philna'), '<span class="editpost">', '</span>'); ?>
  7. <span class="comments-link addcomment"><a href="#respond" title="<?php _e('Add a comment', 'philna') ?>"><?php _e('Add a comment', 'philna') ?></a></span>
  8. <span class="published"><?php the_time(__('F jS, Y', 'philna')) ?></span>
  9. <span class="post-author"><a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));?>"><?php the_author();?></a></span>
  10. </div>
  11. <div class="entry-content">
  12. <?php the_content(__('Continue reading','philna') . ' ' . the_title('"', '"', false)); ?>
  13. <?php wp_link_pages("before=<p class='pages'>".__('Pages:','philna')."&after=</p>"); ?>
  14. </div>
  15. <div class="entry-meta">
  16. <span class="cat-links"><?php the_category(', '); ?></span>
  17. <?php the_tags('<span class="tag-links">', ', ', '</span>');?>
  18. </div>
  19. </div>
  20. <?php endwhile; ?>
  21. <?php
  22. if(function_exists('wp23_related_posts')) {
  23. echo '<div id="related_posts">';
  24. wp23_related_posts();
  25. echo '</div>';
  26. }
  27. ?>
  28. <?php comments_template('', true); ?>
  29. <?php else: ?>
  30. <p class="no-data"><?php _e('Sorry, no posts matched your criteria.','philna'); ?></p>
  31. <?php endif; ?>
  32. <?php if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Opera')):?>
  33. <div id="postnavi">
  34. <span class="prev"><?php next_post_link('%link') ?></span>
  35. <span class="next"><?php previous_post_link('%link') ?></span>
  36. <div class="fixed"></div>
  37. </div>
  38. <?php endif?>
  39. <?php get_footer(); ?>