[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The Footer widget areas 4 * 5 * @package WordPress 6 * @subpackage Twenty_Ten 7 * @since Twenty Ten 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( 'first-footer-widget-area' ) 19 && ! is_active_sidebar( 'second-footer-widget-area' ) 20 && ! is_active_sidebar( 'third-footer-widget-area' ) 21 && ! is_active_sidebar( 'fourth-footer-widget-area' ) 22 ) { 23 return; 24 } 25 // If we get this far, we have widgets. Let do this. 26 ?> 27 28 <div id="footer-widget-area" role="complementary"> 29 30 <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?> 31 <div id="first" class="widget-area"> 32 <ul class="xoxo"> 33 <?php dynamic_sidebar( 'first-footer-widget-area' ); ?> 34 </ul> 35 </div><!-- #first .widget-area --> 36 <?php endif; ?> 37 38 <?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?> 39 <div id="second" class="widget-area"> 40 <ul class="xoxo"> 41 <?php dynamic_sidebar( 'second-footer-widget-area' ); ?> 42 </ul> 43 </div><!-- #second .widget-area --> 44 <?php endif; ?> 45 46 <?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?> 47 <div id="third" class="widget-area"> 48 <ul class="xoxo"> 49 <?php dynamic_sidebar( 'third-footer-widget-area' ); ?> 50 </ul> 51 </div><!-- #third .widget-area --> 52 <?php endif; ?> 53 54 <?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?> 55 <div id="fourth" class="widget-area"> 56 <ul class="xoxo"> 57 <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?> 58 </ul> 59 </div><!-- #fourth .widget-area --> 60 <?php endif; ?> 61 62 </div><!-- #footer-widget-area -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |