sidebar-menu.php 677 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * The sidebars containing the widget areas on small screens.
  4. *
  5. * @package Publication
  6. */
  7. if ( ! is_active_sidebar( 'sidebar-1' ) && ! is_active_sidebar( 'sidebar-2' ) ) {
  8. return;
  9. }
  10. ?>
  11. <div id="tertiary" class="widget-area" role="complementary">
  12. <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
  13. <div id="sidebar-1" class="widget-column">
  14. <?php dynamic_sidebar( 'sidebar-1' ); ?>
  15. </div><!-- .widget-column -->
  16. <?php endif; ?>
  17. <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
  18. <div id="sidebar-2" class="widget-column sidebar-2">
  19. <?php dynamic_sidebar( 'sidebar-2' ); ?>
  20. </div><!-- .widget-column -->
  21. <?php endif; ?>
  22. </div><!-- #tertiary -->