Advertisement
Guest User

fashionista sidebar-footer

a guest
Jan 11th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <?php
  2. /**
  3. * The widget areas in the footer.
  4. *
  5. * @package aThemes
  6. */
  7. ?>
  8.  
  9. <?php
  10. /* The footer widget area is triggered if any of the areas
  11. * have widgets. So let's check that first.
  12. *
  13. * If none of the sidebars have widgets, then let's bail early.
  14. */
  15. if ( ! is_active_sidebar( 'sidebar-3' )
  16. && ! is_active_sidebar( 'sidebar-4' )
  17. && ! is_active_sidebar( 'sidebar-5' )
  18. && ! is_active_sidebar( 'sidebar-6' )
  19. )
  20. return;
  21. // If we get this far, we have widgets. Let do this.
  22. ?>
  23.  
  24. <div id="extra" <?php athemes_footer_sidebar_class(); ?>>
  25. <div class="clearfix pad">
  26. <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
  27. <div id="widget-area-3" class="widget-area" role="complementary">
  28. <?php dynamic_sidebar( 'sidebar-3' ); ?>
  29. <!-- #widget-area-3 --></div>
  30. <?php endif; ?>
  31.  
  32. <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
  33. <div id="widget-area-4" class="widget-area" role="complementary">
  34. <?php dynamic_sidebar( 'sidebar-4' ); ?>
  35. <!-- #widget-area-4 --></div>
  36. <?php endif; ?>
  37.  
  38. <?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?>
  39. <div id="widget-area-5" class="widget-area" role="complementary">
  40. <?php dynamic_sidebar( 'sidebar-5' ); ?>
  41. <!-- #widget-area-5 --></div>
  42. <?php endif; ?>
  43.  
  44. <?php if ( is_active_sidebar( 'sidebar-6' ) ) : ?>
  45. <div id="widget-area-6" class="widget-area" role="complementary">
  46. <?php dynamic_sidebar( 'sidebar-6' ); ?>
  47. <!-- #widget-area-6 --></div>
  48. <?php endif; ?>
  49. </div>
  50. <!-- #extra --></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement