wp-content/themes/twentyseventeen/inc/template-tags.php:142Displays a front page section.
$partialWP_Customize_Partialoptionalnull$idintoptional0function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { if ( $partial instanceof WP_Customize_Partial ) { // Find out the ID and set it up during a selective refresh. global $twentyseventeencounter; $id = str_replace( 'panel_', '', $partial->id ); $twentyseventeencounter = $id; } // Only when in Customizer, use a placeholder for an empty panel. $show_panel_placeholder = false; global $post; // Modify the global post object before setting up post data. if ( get_theme_mod( 'panel_' . $id ) ) { $post = get_post( get_theme_mod( 'panel_' . $id ) ); setup_postdata( $post ); set_query_var( 'panel', $id ); if ( $post && in_array( $post->post_status, array( 'publish', 'private' ), true ) ) { get_template_part( 'template-parts/page/content', 'front-page-panels' ); } elseif ( is_customize_preview() ) { $show_panel_placeholder = true; } wp_reset_postdata(); } elseif ( is_customize_preview() ) { $show_panel_placeholder = true; } if ( $show_panel_placeholder ) { // The output placeholder anchor. printf( '<article class="panel-placeholder panel twentyseventeen-panel twentyseventeen-panel%1$s" id="panel%1$s">' . '<span class="twentyseventeen-panel-title">%2$s</span></article>', $id, /* translators: %s: The section ID. */ sprintf( __( 'Front Page Section %s Placeholder', 'twentyseventeen' ), $id ) ); }}Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyseventeen/inc/template-tags.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.