Advertisement
alchymyth

twetwe si-fro.php 3 wid

Feb 23rd, 2013
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The sidebar containing the front page widget areas.
  4.  *
  5.  * If no active widgets in either sidebar, they will be hidden completely.
  6.  *
  7.  * Twenty Twelve child theme
  8.  */
  9.  
  10. /*
  11.  * The front page widget area is triggered if any of the areas
  12.  * have widgets. So let's check that first.
  13.  *
  14.  * If none of the sidebars have widgets, then let's bail early.
  15.  */
  16. if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) && !is_active_sidebar( 'sidebar-4' ) )
  17.     return;
  18.  
  19. // If we get this far, we have widgets. Let do this.
  20. ?>
  21. <div id="secondary" class="widget-area" role="complementary">
  22.     <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
  23.     <div class="first front-widgets">
  24.         <?php dynamic_sidebar( 'sidebar-2' ); ?>
  25.     </div><!-- .first -->
  26.     <?php endif; ?>
  27.  
  28.     <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
  29.     <div class="second front-widgets">
  30.         <?php dynamic_sidebar( 'sidebar-3' ); ?>
  31.     </div><!-- .second -->
  32.     <?php endif; ?>
  33.  
  34.     <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
  35.     <div class="third front-widgets">
  36.         <?php dynamic_sidebar( 'sidebar-4' ); ?>
  37.     </div><!-- .third -->
  38.     <?php endif; ?>
  39.  
  40. </div><!-- #secondary -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement