This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

Wikeasi Footer

By: sgodar on Apr 6th, 2012  |  syntax: PHP  |  size: 2.31 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         <section id="footer-widgets" class="col-full col-<?php echo $total; ?> fix">
  24.  
  25.                 <?php $i = 0; while ( $i < $total ) { $i++; ?>
  26.                         <?php if ( woo_active_sidebar( 'footer-' . $i ) ) { ?>
  27.  
  28.                 <div class="block footer-widget-<?php echo $i; ?>">
  29.                 <?php woo_sidebar( 'footer-' . $i ); ?>
  30.                 </div>
  31.  
  32.                 <?php } ?>
  33.                 <?php } // End WHILE Loop ?>
  34.  
  35.         </section><!-- /#footer-widgets  -->
  36. <?php } // End IF Statement ?>
  37.     <footer id="footer-container">
  38.         <footer id="footer" class="col-full">
  39.  
  40.                 <div id="copyright" class="col-left">
  41.                 <?php if( isset( $woo_options['woo_footer_left'] ) && $woo_options['woo_footer_left'] == 'true' ) {
  42.  
  43.                                 echo stripslashes( $woo_options['woo_footer_left_text'] );
  44.  
  45.                 } else { ?>
  46.                         <p><?php bloginfo(); ?> &copy; <?php echo date( 'Y' ); ?>. <?php _e( 'All Rights Reserved.', 'woothemes' ); ?></p>
  47.                 <?php } ?>
  48.                 </div>
  49.  
  50.                 <div id="credit" class="col-right">
  51.         <?php if( isset( $woo_options['woo_footer_right'] ) && $woo_options['woo_footer_right'] == 'true' ) {
  52.  
  53.                 echo stripslashes( $woo_options['woo_footer_right_text'] );
  54.  
  55.                 } else { ?>
  56.                         <p><?php _e( 'Powered by', 'woothemes' ); ?> <a href="http://www.wordpress.org">WordPress</a>. <?php _e( 'Designed by', 'woothemes' ); ?> <a href="<?php echo ( isset( $woo_options['woo_footer_aff_link'] ) && ! 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>
  57.                 <?php } ?>
  58.                 </div>
  59.  
  60.         </footer><!-- /#footer  -->
  61.         </footer><!-- /#footer-container -->
  62.  
  63. </div><!-- /#wrapper -->
  64. <?php wp_footer(); ?>
  65. <?php woo_foot(); ?>
  66. </body>
  67. </html>
clone this paste RAW Paste Data