Advertisement
Guest User

footer.php

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