mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
fcf096f4b9
With IE11 no longer supported, the primary problem with assistive technology support for native HTML5 elements no longer applies. This commit removes the `role` attribute from the following HTML5 elements with default landmark roles, per formerly required role attributes and W3C. Follow-up to [17669], [21261], [23452], [24832], [29892], [38833], [40851], [43842], [46271], [49216]. Props costdev, craigfrancis, joedolson, mukesh27, ryokuhi, sabernhardt. Fixes #54079. Built from https://develop.svn.wordpress.org/trunk@52013 git-svn-id: http://core.svn.wordpress.org/trunk@51604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* The front page template file
|
|
*
|
|
* If the user has selected a static page for their homepage, this is what will
|
|
* appear.
|
|
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Seventeen
|
|
* @since Twenty Seventeen 1.0
|
|
* @version 1.0
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<div id="primary" class="content-area">
|
|
<main id="main" class="site-main">
|
|
|
|
<?php
|
|
// Show the selected front page content.
|
|
if ( have_posts() ) :
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
get_template_part( 'template-parts/page/content', 'front-page' );
|
|
endwhile;
|
|
else :
|
|
get_template_part( 'template-parts/post/content', 'none' );
|
|
endif;
|
|
?>
|
|
|
|
<?php
|
|
// Get each of our panels and show the post data.
|
|
if ( 0 !== twentyseventeen_panel_count() || is_customize_preview() ) : // If we have pages to show.
|
|
|
|
/**
|
|
* Filters the number of front page sections in Twenty Seventeen.
|
|
*
|
|
* @since Twenty Seventeen 1.0
|
|
*
|
|
* @param int $num_sections Number of front page sections.
|
|
*/
|
|
$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
|
|
global $twentyseventeencounter;
|
|
|
|
// Create a setting and control for each of the sections available in the theme.
|
|
for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) {
|
|
$twentyseventeencounter = $i;
|
|
twentyseventeen_front_page_section( null, $i );
|
|
}
|
|
|
|
endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here.
|
|
?>
|
|
|
|
</main><!-- #main -->
|
|
</div><!-- #primary -->
|
|
|
|
<?php
|
|
get_footer();
|