twentyfourteen_has_footer_widgets

The Jetpack by WordPress.com twentyfourteen has footer widgets function.

Description

twentyfourteen_has_footer_widgets( $has_widgets ); 

Parameters (1)

0. $has_widgets
The has widgets.

Usage

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

Defined (1)

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

/modules/infinite-scroll/themes/twentyfourteen.php  
  1. function twentyfourteen_has_footer_widgets( $has_widgets ) { 
  2. if ( ( Jetpack_User_Agent_Info::is_ipad() && is_active_sidebar( 'sidebar-1' ) ) 
  3. || ( jetpack_is_mobile( '', true ) && ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2' ) ) ) 
  4. || is_active_sidebar( 'sidebar-3' ) ) 
  5.  
  6. return true; 
  7.  
  8. return $has_widgets;