[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Footer widget areas 4 * 5 * @package WordPress 6 * @subpackage Twenty_Eleven 7 * @since Twenty Eleven 1.0 8 */ 9 ?> 10 11 <?php 12 /* 13 * The footer widget area is triggered if any of the areas 14 * have widgets. So let's check that first. 15 * 16 * If none of the sidebars have widgets, then let's bail early. 17 */ 18 if ( ! is_active_sidebar( 'sidebar-3' ) 19 && ! is_active_sidebar( 'sidebar-4' ) 20 && ! is_active_sidebar( 'sidebar-5' ) 21 ) { 22 return; 23 } 24 // If we get this far, we have widgets. Let do this. 25 ?> 26 <div id="supplementary" <?php twentyeleven_footer_sidebar_class(); ?>> 27 <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?> 28 <div id="first" class="widget-area" role="complementary"> 29 <?php dynamic_sidebar( 'sidebar-3' ); ?> 30 </div><!-- #first .widget-area --> 31 <?php endif; ?> 32 33 <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?> 34 <div id="second" class="widget-area" role="complementary"> 35 <?php dynamic_sidebar( 'sidebar-4' ); ?> 36 </div><!-- #second .widget-area --> 37 <?php endif; ?> 38 39 <?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?> 40 <div id="third" class="widget-area" role="complementary"> 41 <?php dynamic_sidebar( 'sidebar-5' ); ?> 42 </div><!-- #third .widget-area --> 43 <?php endif; ?> 44 </div><!-- #supplementary -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |