Advertisement
erica34

Loop Page

Feb 11th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  2. <article class="entry post clearfix">
  3. <h1 class="main_title"><?php the_title(); ?></h1>
  4.  
  5. <?php if (get_option('evolution_page_thumbnails') == 'on') { ?>
  6. <?php
  7. $thumb = '';
  8. $width = apply_filters( 'evolution_single_image_width', 203 );
  9. $height = apply_filters( 'evolution_single_image_height', 203 );
  10. $classtext = 'post-thumb';
  11. $titletext = get_the_title();
  12. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Single');
  13. $thumb = $thumbnail["thumb"];
  14. ?>
  15.  
  16. <?php if($thumb <> '') { ?>
  17. <div class="single-thumbnail">
  18. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  19. <span class="post-overlay"></span>
  20. </div> <!-- end .single-thumbnail -->
  21. <?php } ?>
  22. <?php } ?>
  23.  
  24. <?php the_content(); ?>
  25. <?php wp_link_pages(array('before' => '<p><strong>'.esc_attr__('Pages','Evolution').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  26. <?php edit_post_link(esc_attr__('Edit this page','Evolution')); ?>
  27. </article> <!-- end .entry -->
  28. <?php endwhile; // end of the loop. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement