modules/infinite-scroll/themes/twentyseventeen.php 1 location
|
@@ 24-33 (lines=10) @@
|
21 |
|
/** |
22 |
|
* Custom render function for Infinite Scroll. |
23 |
|
*/ |
24 |
|
function jetpack_twentyseventeen_infinite_scroll_render() { |
25 |
|
while ( have_posts() ) { |
26 |
|
the_post(); |
27 |
|
if ( is_search() ) { |
28 |
|
get_template_part( 'template-parts/post/content', 'search' ); |
29 |
|
} else { |
30 |
|
get_template_part( 'template-parts/post/content', get_post_format() ); |
31 |
|
} |
32 |
|
} |
33 |
|
} |
34 |
|
|
35 |
|
/** |
36 |
|
* Custom function to check for the presence of footer widgets or the social links menu |
modules/infinite-scroll/themes/twentysixteen.php 1 location
|
@@ 23-32 (lines=10) @@
|
20 |
|
/** |
21 |
|
* Custom render function for Infinite Scroll. |
22 |
|
*/ |
23 |
|
function twentysixteen_infinite_scroll_render() { |
24 |
|
while ( have_posts() ) { |
25 |
|
the_post(); |
26 |
|
if ( is_search() ) { |
27 |
|
get_template_part( 'template-parts/content', 'search' ); |
28 |
|
} else { |
29 |
|
get_template_part( 'template-parts/content', get_post_format() ); |
30 |
|
} |
31 |
|
} |
32 |
|
} |
33 |
|
|
34 |
|
/** |
35 |
|
* Enqueue CSS stylesheet with theme styles for Infinite Scroll. |