responsive_has_footer_widgets

Check whether or not footer widgets are present.

Description

responsive_has_footer_widgets( (bool) $has_widgets ); 

If they are present, then a button to 'Load more posts' will be displayed and IS will not be triggered unless a user manually clicks on that button.

Parameters (1)

0. $has_widgets (bool)
The has widgets.

Usage

  1. if ( !function_exists( 'responsive_has_footer_widgets' ) ) { 
  2. require_once '/includes/jetpack.compat.php'; 
  3.  
  4. // The has widgets. 
  5. $has_widgets = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = responsive_has_footer_widgets($has_widgets); 
  9.  

Defined (1)

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

/includes/jetpack.compat.php  
  1. function responsive_has_footer_widgets( $has_widgets ) { 
  2. if ( ( Jetpack_User_Agent_Info::is_ipad() || ( function_exists( 'jetpack_is_mobile' ) && jetpack_is_mobile() ) ) && is_active_sidebar( 'sidebar-1' ) ) 
  3. $has_widgets = true; 
  4.  
  5. return $has_widgets;