twenty_eleven_has_footer_widgets

Have we any footer widgets?.

Description

twenty_eleven_has_footer_widgets( (bool) $has_widgets ); 

Parameters (1)

0. $has_widgets (bool)
The has widgets.

Usage

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

Defined (1)

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

/modules/infinite-scroll/themes/twentyeleven.php  
  1. function twenty_eleven_has_footer_widgets( $has_widgets ) { 
  2. // Are any of the "Footer Area" sidebars active? 
  3. if ( is_active_sidebar( 'sidebar-3' ) || is_active_sidebar( 'sidebar-4' ) || is_active_sidebar( 'sidebar-5' ) ) 
  4. return true; 
  5.  
  6. // If we're on mobile and the Main Sidebar has widgets, it falls below the content, so we have footer widgets. 
  7. if ( function_exists( 'jetpack_is_mobile' ) && jetpack_is_mobile() && is_active_sidebar( 'sidebar-1' ) ) 
  8. return true; 
  9.  
  10. return $has_widgets;