Advertisement
Guest User

Single.php

a guest
Oct 31st, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="main">
  3. <div class="columns">
  4. <div class="narrowcolumn singlepage">
  5. <?php if (have_posts()) : ?>
  6. <?php while (have_posts()) : the_post(); ?>
  7. <div class="post">
  8.  
  9. <div class="title">
  10. <h2><?php the_title(); ?></h2>
  11. <small><?php _e('Posted by','nattywp'); ?> <span class="author"><?php theme_get_profile() ?></span> <?php _e('in','nattywp'); ?> <?php the_category(' | ');?> <?php edit_post_link(__('Edit','nattywp'), ' | ', ''); ?></small>
  12. </div>
  13. <div class="entry">
  14. <?php t_show_video($post->ID); ?>
  15. <?php the_content(); ?>
  16. <div class="clear"></div>
  17. </div>
  18.  
  19. <p class="postmetadata">
  20. <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  21. <span class="category"><?php the_tags('', ', ', ''); ?></span>
  22. </p>
  23.  
  24. <p><small><?php _e('You can follow any responses to this entry through the','nattywp'); ?> <?php post_comments_feed_link('RSS 2.0'); ?>
  25. <?php if ( comments_open() && pings_open() ) {
  26. // Both Comments and Pings are open ?>
  27. <?php _e('You can <a href="#respond">leave a response</a>, or','nattywp'); ?> <a href="<?php trackback_url(); ?>" rel="trackback"><?php _e('trackback','nattywp'); ?></a>.
  28. <?php } elseif ( !comments_open() && pings_open() ) {
  29. // Only Pings are Open ?>
  30. <?php _e('Responses are currently closed, but you can','nattywp'); ?> <a href="<?php trackback_url(); ?> " rel="trackback"><?php _e('trackback','nattywp'); ?></a>.
  31. <?php } elseif ( comments_open() && !pings_open() ) {
  32. // Comments are open, Pings are not ?>
  33. <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.','nattywp'); ?>
  34. <?php } elseif ( !comments_open() && !pings_open() ) {
  35. // Neither Comments, nor Pings are open ?>
  36. <?php _e('Both comments and pings are currently closed.','nattywp'); ?>
  37. <?php } ?>
  38. </small>
  39. </p>
  40.  
  41. </div>
  42. <div class="post">
  43. <?php comments_template(); ?>
  44. </div>
  45. <?php endwhile; ?>
  46. <?php else : ?>
  47. <div class="post">
  48. <h2><?php _e('Not Found','nattywp'); ?></h2>
  49. <div class="entry"><p><?php _e('Sorry, but you are looking for something that isn\'t here.','nattywp'); ?></p>
  50. <?php get_search_form(); ?>
  51. </div>
  52. </div>
  53. <?php endif; ?>
  54.  
  55. </div> <!-- END Narrowcolumn -->
  56. <div id="sidebar" class="profile">
  57. <?php get_sidebar();?>
  58. </div>
  59. <div class="clear"></div>
  60.  
  61.  
  62. <?php get_footer(); ?>
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement