<?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 * * @global int|string $twentyseventeencounter Front page section counter. * * @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();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
template-parts | Folder | 0755 |
|
|
404.php | File | 914 B | 0644 |
|
archive.php | File | 1.93 KB | 0644 |
|
comments.php | File | 2.46 KB | 0644 |
|
footer.php | File | 1.28 KB | 0644 |
|
front-page.php | File | 1.6 KB | 0644 |
|
functions.php | File | 22.85 KB | 0644 |
|
header.php | File | 1.61 KB | 0644 |
|
index.php | File | 2.24 KB | 0644 |
|
page.php | File | 990 B | 0644 |
|
readme.txt | File | 6.8 KB | 0644 |
|
rtl.css | File | 9.58 KB | 0644 |
|
screenshot.png | File | 353.64 KB | 0644 |
|
search.php | File | 2.15 KB | 0644 |
|
searchform.php | File | 1.08 KB | 0644 |
|
sidebar.php | File | 501 B | 0644 |
|
single.php | File | 1.68 KB | 0644 |
|
style.css | File | 82.18 KB | 0644 |
|