1. <?php
  2. /**
  3. * Footer Template
  4. *
  5. * Here we setup all logic and XHTML that is required for the footer section of all screens.
  6. *
  7. * @package WooFramework
  8. * @subpackage Template
  9. */
  10. global $woo_options;
  11.  
  12. $total = 4;
  13. if ( isset( $woo_options['woo_footer_sidebars'] ) && ( $woo_options['woo_footer_sidebars'] != '' ) ) {
  14. $total = $woo_options['woo_footer_sidebars'];
  15. }
  16.  
  17. if ( ( woo_active_sidebar( 'footer-1' ) ||
  18. woo_active_sidebar( 'footer-2' ) ||
  19. woo_active_sidebar( 'footer-3' ) ||
  20. woo_active_sidebar( 'footer-4' ) ) && $total > 0 ) {
  21.  
  22. ?>
  23.  
  24. <div id="footer-wrap">
  25.  
  26. <div class="col-full">
  27.  
  28. <section id="footer-widgets" class="col-<?php echo $total; ?> fix">
  29.  
  30. <?php $i = 0; while ( $i < $total ) { $i++; ?>
  31. <?php if ( woo_active_sidebar( 'footer-' . $i ) ) { ?>
  32.  
  33. <div class="block footer-widget-<?php echo $i; ?>">
  34. <?php woo_sidebar( 'footer-' . $i ); ?>
  35. </div>
  36.  
  37. <?php } ?>
  38. <?php } // End WHILE Loop ?>
  39.  
  40. </section><!-- /#footer-widgets -->
  41. <?php } // End IF Statement ?>
  42. <footer id="footer" class="fix col-full">
  43.  
  44. <div id="copyright" class="col-left">
  45. <?php if( isset( $woo_options['woo_footer_left'] ) && $woo_options['woo_footer_left'] == 'true' ) {
  46.  
  47. echo stripslashes( $woo_options['woo_footer_left_text'] );
  48.  
  49. } else { ?>
  50. <p>&copy; <?php echo date('Y'); ?> Indie Fashion Media. <a href="http://liverunway.com/advertise" target="_blank">Advertise or contact here.</a></p>
  51. <?php } ?>
  52. </div>
  53.  
  54. <div id="credit" class="col-right">
  55.  
  56. <?php if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'footer-menu' ) ) {
  57. wp_nav_menu( array( 'depth' => 1, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'footer-nav', 'menu_class' => 'nav', 'theme_location' => 'footer-menu' ) );
  58. } elseif ( isset( $woo_options['woo_footer_right'] ) && $woo_options['woo_footer_right'] == 'true' ) {
  59.  
  60. echo stripslashes( $woo_options['woo_footer_right_text'] );
  61.  
  62. } else { ?>
  63. <p></p>
  64. <?php } ?>
  65.  
  66. </div>
  67.  
  68. </footer><!-- /#footer -->
  69.  
  70. </div><!-- /.col-full -->
  71.  
  72. </div>
  73.  
  74. </div><!-- /#wrapper -->
  75. <?php wp_footer(); ?>
  76. <?php woo_foot(); ?>
  77. </body>
  78. </html>