Advertisement
Guest User

my footer.php

a guest
Nov 15th, 2012
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $footer_sidebars = array('footer-area-1','footer-area-2','footer-area-3');
  3. $any_widget_area_active = is_active_sidebar( $footer_sidebars[0] ) || is_active_sidebar( $footer_sidebars[1] ) || is_active_sidebar( $footer_sidebars[2] );
  4. ?>
  5.  
  6. </div> <!-- end .container -->
  7. </div> <!-- end #main-area -->
  8. <footer id="main-footer">
  9. <?php if ( $any_widget_area_active ) { ?>
  10. <div id="footer-divider"></div>
  11. <?php } ?>
  12. <div class="container">
  13. <div id="footer-widgets" class="clearfix">
  14. <?php
  15. if ( $any_widget_area_active ) {
  16. foreach ( $footer_sidebars as $key => $footer_sidebar ){
  17. if ( is_active_sidebar( $footer_sidebar ) ) {
  18. echo '<div class="footer-widget' . ( 2 == $key ? ' last' : '' ) . '">';
  19. dynamic_sidebar( $footer_sidebar );
  20. echo '</div> <!-- end .footer-widget -->';
  21. }
  22. }
  23. }
  24. ?>
  25. </div> <!-- end #footer-widgets -->
  26. </div> <!-- end .container -->
  27.  
  28. <?php if ( 'on' == et_get_option( 'lucid_728_enable', 'false' ) ){ ?>
  29. <div id="bottom-advertisment">
  30. <div class="container">
  31. <?php
  32. if ( ( $lucid_728_adsense = et_get_option('lucid_728_adsense') ) && '' != $lucid_728_adsense ) echo( $lucid_728_adsense );
  33. else { ?>
  34. <a href="<?php echo esc_url(et_get_option('lucid_728_url')); ?>"><img src="<?php echo esc_url(et_get_option('lucid_728_image')); ?>" /></a>
  35. <?php } ?>
  36. </div> <!-- end .container -->
  37. </div>
  38. <?php } ?>
  39. </footer> <!-- end #main-footer -->
  40.  
  41. <div id="footer-bottom">
  42. <div class="container clearfix">
  43. <?php
  44. $menuID = 'bottom-menu';
  45. $footerNav = '';
  46.  
  47. if (function_exists('wp_nav_menu')) $footerNav = wp_nav_menu( array( 'theme_location' => 'footer-menu', 'container' => '', 'fallback_cb' => '', 'menu_id' => $menuID, 'menu_class' => 'bottom-nav', 'echo' => false, 'depth' => '1' ) );
  48. if ($footerNav == '') show_page_menu($menuID);
  49. else echo($footerNav);
  50. ?>
  51.  
  52. <p id="copyright"><?php printf( __('Designed by %s | Powered by %s', 'Lucid'), '<a href="http://www.elegantthemes.com" title="Premium WordPress Themes">Elegant Themes</a>', '<a href="http://www.wordpress.org">WordPress</a>' ); ?></p>
  53. </div> <!-- end .container -->
  54. </div> <!-- end #footer-bottom -->
  55.  
  56. <?php wp_footer(); ?>
  57. </body>
  58. </html>
Advertisement
RAW Paste Data Copied
Advertisement