Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2012
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="outer" id="contentwrap">
  3. <div class="postcont">
  4. <div id="content">
  5.  
  6. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  7. <div class="post" id="post-<?php the_ID(); ?>">
  8. <h2 class="title"><?php the_title(); ?></h2>
  9. <div class="entry">
  10. <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(300,225), array("class" => "alignleft post_thumbnail")); } ?>
  11. <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
  12.  
  13. <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  14.  
  15. </div>
  16. </div>
  17. <?php endwhile; endif; ?>
  18. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  19. // Both Comments and Pings are open ?>
  20. You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
  21.  
  22. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  23. // Only Pings are Open ?>
  24. Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
  25.  
  26. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  27. // Comments are open, Pings are not ?>
  28. You can skip to the end and leave a response. Pinging is currently not allowed.
  29.  
  30. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  31. // Neither Comments, nor Pings are open ?>
  32. Both comments and pings are currently closed.
  33.  
  34. <?php } edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
  35. <?php comments_template(); ?>
  36. </div>
  37. </div>
  38.  
  39.  
  40. <?php get_sidebars(); ?>
  41.  
  42. </div>
  43. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement