modules/infinite-scroll/themes/twentyeleven.php 1 location
|
@@ 34-44 (lines=11) @@
|
31 |
|
/** |
32 |
|
* Do we have footer widgets? |
33 |
|
*/ |
34 |
|
function jetpack_twentyeleven_has_footer_widgets() { |
35 |
|
// Are any of the "Footer Area" sidebars active? |
36 |
|
if ( is_active_sidebar( 'sidebar-3' ) || is_active_sidebar( 'sidebar-4' ) || is_active_sidebar( 'sidebar-5' ) ) |
37 |
|
return true; |
38 |
|
|
39 |
|
// If we're on mobile and the Main Sidebar has widgets, it falls below the content, so we have footer widgets. |
40 |
|
if ( function_exists( 'jetpack_is_mobile' ) && jetpack_is_mobile() && is_active_sidebar( 'sidebar-1' ) ) |
41 |
|
return true; |
42 |
|
|
43 |
|
return false; |
44 |
|
} |
45 |
|
|
modules/infinite-scroll/themes/twentyfourteen.php 1 location
|
@@ 28-38 (lines=11) @@
|
25 |
|
* |
26 |
|
* @return bool |
27 |
|
*/ |
28 |
|
function jetpack_twentyfourteen_has_footer_widgets() { |
29 |
|
if ( function_exists( 'jetpack_is_mobile' ) ) { |
30 |
|
if ( ( Jetpack_User_Agent_Info::is_ipad() && is_active_sidebar( 'sidebar-1' ) ) |
31 |
|
|| ( jetpack_is_mobile( '', true ) && ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2' ) ) ) |
32 |
|
|| is_active_sidebar( 'sidebar-3' ) ) |
33 |
|
|
34 |
|
return true; |
35 |
|
} |
36 |
|
|
37 |
|
return false; |
38 |
|
} |
39 |
|
|
40 |
|
/** |
41 |
|
* Enqueue CSS stylesheet with theme styles for Infinite Scroll. |
modules/infinite-scroll/themes/twentytwelve.php 1 location
|
@@ 34-43 (lines=10) @@
|
31 |
|
/** |
32 |
|
* Do we have footer widgets? |
33 |
|
*/ |
34 |
|
function jetpack_twentytwelve_has_footer_widgets() { |
35 |
|
if ( function_exists( 'jetpack_is_mobile' ) && jetpack_is_mobile() ) { |
36 |
|
if ( is_front_page() && ( is_active_sidebar( 'sidebar-2' ) || is_active_sidebar( 'sidebar-3' ) ) ) |
37 |
|
return true; |
38 |
|
elseif ( is_active_sidebar( 'sidebar-1' ) ) |
39 |
|
return true; |
40 |
|
} |
41 |
|
|
42 |
|
return false; |
43 |
|
} |
44 |
|
|