Advertisement
Guest User

single.php

a guest
Nov 28th, 2012
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="content" class="grid_9 <?php echo of_get_option('blog_sidebar_pos') ?>">
  3. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  4. <div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
  5. <article class="post-holder single-post clearfix">
  6. <header>
  7. <h1><?php the_title(); ?></h1>
  8. </header>
  9. <?php $single_image_size = of_get_option('single_image_size'); ?>
  10. <?php if($single_image_size=='' || $single_image_size=='normal'){ ?>
  11. <?php if(has_post_thumbnail()) {
  12. echo '<figure class="featured-thumbnail"><span class="img-wrap">'; the_post_thumbnail(); echo '</span></figure>';
  13. }
  14. ?>
  15. <?php } else { ?>
  16. <?php if(has_post_thumbnail()) {
  17. echo '<figure class="featured-thumbnail large"><span class="img-wrap"><span class="f-thumb-wrap">'; the_post_thumbnail('post-thumbnail-xl'); echo '</span></span></figure>';
  18. }
  19. ?>
  20. <?php } ?>
  21. <div class="post-content">
  22. <?php the_content(); ?>
  23. <?php wp_link_pages('before=<div class="pagination">&after=</div>'); ?>
  24. </div><!--.post-content-->
  25. </article>
  26.  
  27. </div><!-- #post-## -->
  28.  
  29.  
  30. <nav class="oldernewer">
  31. <div class="older">
  32. <?php previous_post_link('%link', '&laquo; Previous post') ?>
  33. </div><!--.older-->
  34. <div class="newer">
  35. <?php next_post_link('%link', 'Next Post &raquo;') ?>
  36. </div><!--.newer-->
  37. </nav><!--.oldernewer-->
  38.  
  39. <?php comments_template( '', true ); ?>
  40.  
  41. <?php endwhile; /* end loop */ ?>
  42. </div><!--#content-->
  43. <?php get_sidebar(); ?>
  44. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement