sbruner

loop-single.php

Nov 1st, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. <?php get_template_part('includes/breadcrumbs','single'); ?>
  2.  
  3. <div id="entries">
  4. <?php if ( is_active_sidebar( '468_top_area' ) ) { ?>
  5. <?php if ( !dynamic_sidebar('468_top_area') ) : ?>
  6. <?php endif; ?>
  7. <?php } ?>
  8.  
  9. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  10. <div class="entry post clearfix">
  11. <?php if (get_option('aggregate_integration_single_top') <> '' && get_option('aggregate_integrate_singletop_enable') == 'on') echo(get_option('aggregate_integration_single_top')); ?>
  12.  
  13. <h1 class="title"><?php the_title(); ?></h1>
  14. <?php get_template_part('includes/postinfo','single'); ?>
  15.  
  16. <?php if (get_option('aggregate_thumbnails') == 'on') { ?>
  17. <?php
  18. $thumb = '';
  19. $width = 200;
  20. $height = 200;
  21. $classtext = 'single-thumb';
  22. $titletext = get_the_title();
  23. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
  24. $thumb = $thumbnail["thumb"];
  25. ?>
  26.  
  27. <?php if($thumb <> '') { ?>
  28. <div class="thumb">
  29. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  30. <span class="overlay"></span>
  31. </div> <!-- end .thumb -->
  32. <?php } ?>
  33. <?php } ?>
  34.  
  35. <?php the_content(); ?>
  36. <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','Aggregate').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  37. <?php edit_post_link(esc_html__('Edit this page','Aggregate')); ?>
  38. </div> <!-- end .entry -->
  39.  
  40. <?php if (get_option('aggregate_integration_single_bottom') <> '' && get_option('aggregate_integrate_singlebottom_enable') == 'on') echo(get_option('aggregate_integration_single_bottom')); ?>
  41.  
  42. <?php if (get_option('aggregate_468_enable') == 'on') { ?>
  43. <?php if(get_option('aggregate_468_adsense') <> '') echo(get_option('aggregate_468_adsense'));
  44. else { ?>
  45. <a href="<?php echo esc_url(get_option('aggregate_468_url')); ?>"><img src="<?php echo esc_url(get_option('aggregate_468_image')); ?>" alt="468 ad" class="foursixeight" /></a>
  46. <?php } ?>
  47. <?php } ?>
  48.  
  49. <?php if (function_exists('nrelate_related')) nrelate_related(); ?>
  50.  
  51. <?php if (get_option('aggregate_show_postcomments') == 'on') comments_template('', true); ?>
  52. <?php endwhile; // end of the loop. ?>
  53.  
  54. <?php if ( is_active_sidebar( '468_bottom_area' ) ) { ?>
  55. <?php if ( !dynamic_sidebar('468_bottom_area') ) : ?>
  56. <?php endif; ?>
  57. <?php } ?>
  58. </div> <!-- end #entries -->
Advertisement
Add Comment
Please, Sign In to add comment