Guest User

swatch footer.php

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