Advertisement
Guest User

SMPL footer

a guest
Apr 26th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  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 if ( $woo_options[ 'woo_display_store_info' ] == "true" ) {
  26. $email = get_option('woo_store_email_address');
  27. $phone = get_option('woo_store_phone_number');
  28. $twitterID = get_option('woo_contact_twitter');
  29. ?>
  30. <ul class="store-info">
  31.  
  32. <li class="phone">
  33. <a href="tel:<?php echo $phone; ?>"><?php echo $phone; ?></a>
  34. </li>
  35.  
  36. <li class="email">
  37. <a href="mailto:<?php echo $email; ?>" title="<?php _e('Send us an email', 'woothemes')?>"><?php echo $email; ?></a>
  38. </li>
  39.  
  40. <?php if ( $woo_options[ 'woo_store_twitter_username' ] == "true" ) {
  41.  
  42. ?>
  43. <li class="twitter">
  44. <a href="http://twitter.com/<?php echo $twitterID; ?>" title="<?php _e('Follow','woothemes'); ?> @<?php echo $twitterID; ?> <?php _e('on Twitter','woothemes'); ?>" class="tooltip">@<?php echo $twitterID; ?></a>
  45. </li>
  46. <?php } ?>
  47.  
  48. </ul><!--/.store-info-->
  49. <?php } ?>
  50.  
  51. <?php $i = 0; while ( $i < $total ) { $i++; ?>
  52. <?php if ( woo_active_sidebar( 'footer-' . $i ) ) { ?>
  53.  
  54. <div class="block footer-widget-<?php echo $i; ?>">
  55. <?php woo_sidebar( 'footer-' . $i ); ?>
  56. </div>
  57.  
  58. <?php } ?>
  59. <?php } // End WHILE Loop ?>
  60.  
  61. </section><!-- /#footer-widgets -->
  62. <?php } // End IF Statement ?>
  63. <footer id="footer" class="col-full">
  64.  
  65. <div id="copyright" class="col-left">
  66. <?php if( isset( $woo_options['woo_footer_left'] ) && $woo_options['woo_footer_left'] == 'true' ) {
  67.  
  68. echo stripslashes( $woo_options['woo_footer_left_text'] );
  69.  
  70. } else { ?>
  71. <p><?php bloginfo(); ?> &copy; <?php echo date( 'Y' ); ?>. <?php _e( 'All Rights Reserved.', 'woothemes' ); ?></p>
  72. <?php } ?>
  73. </div>
  74.  
  75. <div id="credit" class="col-right">
  76. <?php if( isset( $woo_options['woo_footer_right'] ) && $woo_options['woo_footer_right'] == 'true' ) {
  77.  
  78. echo stripslashes( $woo_options['woo_footer_right_text'] );
  79.  
  80. } else { ?>
  81. <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>
  82. <?php } ?>
  83. </div>
  84.  
  85. </footer><!-- /#footer -->
  86.  
  87. </div><!-- /#wrapper -->
  88. <?php wp_footer(); ?>
  89. <?php woo_foot(); ?>
  90. </body>
  91. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement