Guest User

Untitled

a guest
Nov 24th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="slider" class="col-full">
  4. <?php $showfeatured = get_option('woo_featured'); if ($showfeatured <> "true") { if (get_option('woo_exclude')) update_option("woo_exclude", ""); } ?>
  5. <?php if ( !$paged && $showfeatured == "true" ) include ( TEMPLATEPATH . '/includes/featured.php' ); ?>
  6. </div>
  7.  
  8. <div id="content" class="col-full">
  9. <div id="main" class="col-left">
  10.  
  11. <?php
  12. // Exclude stored duplicates
  13. $exclude = get_option('woo_exclude');
  14. // Exclude categories
  15. //$cat_exclude = array();
  16. $cats = explode(',',get_option('woo_home_exclude'));
  17. foreach ($cats as $cat)
  18. $cat_exclude[] = $cat;
  19. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  20. $args = array( 'post__not_in' => $exclude,
  21. 'category__not_in' => $cat_exclude,
  22. 'paged'=> $paged );
  23. query_posts($args);
  24. ?>
  25.  
  26. <?php $count = 0; ?>
  27.  
  28. <div id="home-widgets">
  29.  
  30. <div class="left">
  31.  
  32. <?php woo_sidebar('home-left'); ?>
  33.  
  34. </div><!-- /.left -->
  35.  
  36. <div class="right">
  37.  
  38. <?php woo_sidebar('home-right'); ?>
  39.  
  40. </div><!-- /.right -->
  41.  
  42. <div class="clear"></div>
  43.  
  44. </div>
  45.  
  46.  
  47. </div><!-- /#main -->
  48.  
  49. <?php get_sidebar(); ?>
  50.  
  51. </div><!-- /#content -->
  52.  
  53. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment