wp/wp-content/themes/twentytwelve/sidebar-front.php
changeset 7 cf61fcea0001
parent 0 d970ebf37754
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    13  * The front page widget area is triggered if any of the areas
    13  * The front page widget area is triggered if any of the areas
    14  * have widgets. So let's check that first.
    14  * have widgets. So let's check that first.
    15  *
    15  *
    16  * If none of the sidebars have widgets, then let's bail early.
    16  * If none of the sidebars have widgets, then let's bail early.
    17  */
    17  */
    18 if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) )
    18 if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
    19 	return;
    19 	return;
       
    20 }
    20 
    21 
    21 // If we get this far, we have widgets. Let do this.
    22 // If we get this far, we have widgets. Let do this.
    22 ?>
    23 ?>
    23 <div id="secondary" class="widget-area" role="complementary">
    24 <div id="secondary" class="widget-area" role="complementary">
    24 	<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
    25 	<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>