twenty_ten_has_footer_widgets

Do we have footer widgets?.

Description

twenty_ten_has_footer_widgets( $has_widgets ); 

Parameters (1)

0. $has_widgets
The has widgets.

Usage

  1. if ( !function_exists( 'twenty_ten_has_footer_widgets' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/infinite-scroll/themes/twentyten.php'; 
  3.  
  4. // The has widgets. 
  5. $has_widgets = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twenty_ten_has_footer_widgets($has_widgets); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/infinite-scroll/themes/twentyten.php  
  1. function twenty_ten_has_footer_widgets( $has_widgets ) { 
  2. if ( is_active_sidebar( 'first-footer-widget-area' ) || is_active_sidebar( 'second-footer-widget-area' ) || is_active_sidebar( 'third-footer-widget-area' ) || is_active_sidebar( 'fourth-footer-widget-area' ) ) 
  3. $has_widgets = true; 
  4.  
  5. return $has_widgets;