Guest User

swatch index.php

a guest
Jan 30th, 2012
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <?php
  2. get_header();
  3. global $woo_options;
  4. ?>
  5.  
  6. <?php if ( isset( $woo_options['woo_slider'] ) && $woo_options['woo_slider'] == 'true' && is_home() && ! is_paged() ) { get_template_part( 'includes/featured' ); } // Load the Featured Slider ?>
  7. <?php if ( isset( $woo_options['woo_mini_features'] ) && $woo_options['woo_mini_features'] == 'true' && is_home() && ! is_paged() ) { get_template_part( 'includes/mini-features' ); } // Load the Mini Features ?>
  8.  
  9. <div id="content" class="col-full">
  10. <div id="main" class="fullwidth">
  11.  
  12. <?php if ( $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
  13. <div id="breadcrumbs">
  14. <?php woo_breadcrumbs(); ?>
  15. </div><!--/#breadcrumbs -->
  16. <?php } ?>
  17. <?php
  18. $homepage_columns = array( 'left' => 'pagecontent', 'middle' => 'portfolio', 'right' => 'blog' );
  19.  
  20. $count = 0;
  21. foreach ( $homepage_columns as $k => $v ) { $count++;
  22.  
  23. $css_class = 'block';
  24. if ( $count == count( $homepage_columns ) ) { $css_class .= ' last'; }
  25. ?>
  26. <div id="homepage-column-<?php echo $count; ?>" class="<?php echo $css_class; ?>">
  27. <?php
  28. if ( is_active_sidebar( 'homepage-' . $k ) ) {
  29. dynamic_sidebar( 'homepage-' . $k );
  30. } else {
  31. get_template_part( 'includes/home', $v );
  32. }
  33. ?>
  34. </div><!--/.block-->
  35. <?php
  36. }
  37. ?>
  38.  
  39. <div class="clear"></div><!--/.clear-->
  40. </div><!-- /#main -->
  41.  
  42. </div><!-- /#content -->
  43. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment