Guest User

Untitled

a guest
Mar 27th, 2012
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php global $woo_options;
  2.  
  3. $total = 4;
  4. if ( isset( $woo_options['woo_footer_sidebars'] ) && ( $woo_options['woo_footer_sidebars'] != '' ) ) {
  5. $total = $woo_options['woo_footer_sidebars'];
  6. }
  7.  
  8. if ( ( woo_active_sidebar( 'footer-1' ) ||
  9. woo_active_sidebar( 'footer-2' ) ||
  10. woo_active_sidebar( 'footer-3' ) ||
  11. woo_active_sidebar( 'footer-4' ) ) && $total > 0 ) {
  12.  
  13. ?>
  14. <div id="footer-widgets" class="col-full col-<?php echo $total; ?>">
  15.  
  16. <?php $i = 0; while ( $i < $total ) { $i++; ?>
  17. <?php if ( woo_active_sidebar( 'footer-' . $i ) ) { ?>
  18.  
  19. <div class="block footer-widget-<?php echo $i; ?>">
  20. <?php woo_sidebar( 'footer-' . $i ); ?>
  21. </div>
  22.  
  23. <?php } ?>
  24. <?php } // End WHILE Loop ?>
  25.  
  26. <div class="fix"></div><!--/.fix-->
  27.  
  28. </div><!-- /#footer-widgets -->
  29. <?php } // End IF Statement ?>
  30.  
  31. <div id="footer">
  32.  
  33. <div id="copyright" class="col-left">
  34. <?php if($woo_options['woo_footer_left'] == 'true'){
  35.  
  36. echo stripslashes($woo_options['woo_footer_left_text']);
  37.  
  38. } else { ?>
  39. <p>&copy; <?php echo date('Y'); ?> <?php bloginfo(); ?>. <?php _e('All Rights Reserved.', 'woothemes') ?></p>
  40. <?php } ?>
  41. </div>
  42.  
  43. <div id="credit" class="col-right">
  44. <?php if($woo_options['woo_footer_right'] == 'true'){
  45.  
  46. echo stripslashes($woo_options['woo_footer_right_text']);
  47.  
  48. } else { ?>
  49. <p><?php _e('Powered by', 'woothemes') ?> <a href="http://www.wordpress.org">Wordpress</a>. <?php _e('Designed by', 'woothemes') ?> <a href="<?php $aff = $woo_options['woo_footer_aff_link']; if(!empty($aff)) { echo $aff; } else { echo 'http://www.woothemes.com'; } ?>"><img src="<?php bloginfo('template_directory'); ?>/images/woothemes.png" width="74" height="19" alt="Woo Themes" /></a></p>
  50. <?php } ?>
  51. </div>
  52.  
  53. <div class="fix"></div>
  54.  
  55. </div><!-- /#footer -->
  56.  
  57. </div><!-- /#wrapper -->
  58.  
  59. <?php wp_footer(); ?>
  60. <?php woo_foot(); ?>
  61. </body>
  62. </html>
RAW Paste Data