jetpack_twentyseventeen_has_footer_widgets

Custom function to check for the presence of footer widgets or the social links menu.

Description

jetpack_twentyseventeen_has_footer_widgets(); 

Usage

  1. if ( !function_exists( 'jetpack_twentyseventeen_has_footer_widgets' ) ) { 
  2. require_once '/modules/infinite-scroll/themes/twentyseventeen.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_twentyseventeen_has_footer_widgets(); 
  7.  

Defined (1)

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

/modules/infinite-scroll/themes/twentyseventeen.php  
  1. function jetpack_twentyseventeen_has_footer_widgets() { 
  2. if ( is_active_sidebar( 'sidebar-2' ) || 
  3. is_active_sidebar( 'sidebar-3' ) || 
  4. has_nav_menu( 'social' ) ) { 
  5. return true; 
  6. } else { 
  7. return false;