get_template_part('template-parts/header/header', 'image');
?>

		<?php 
if (has_nav_menu('top')) {
    ?>
			<div class="navigation-top">
				<div class="wrap">
					<?php 
    get_template_part('template-parts/navigation/navigation', 'top');
    ?>
				</div><!-- .wrap -->
			</div><!-- .navigation-top -->
		<?php 
}
?>

	</header><!-- #masthead -->

	<?php 
// If a regular post or page, and not the front page, show the featured image.
if (has_post_thumbnail() && (is_single() || is_page() && !twentyseventeen_is_frontpage())) {
    echo '<div class="single-featured-image-header">';
    the_post_thumbnail('twentyseventeen-featured-image');
    echo '</div><!-- .single-featured-image-header -->';
}
?>

	<div class="site-content-contain">
		<div id="content" class="site-content">
/**
 * Set the content width in pixels, based on the theme's design and stylesheet.
 *
 * Priority 0 to make it available to lower priority callbacks.
 *
 * @global int $content_width
 */
function twentyseventeen_content_width()
{
    $content_width = 700;
    if (twentyseventeen_is_frontpage()) {
        $content_width = 1120;
    }
    /**
     * Filter Twenty Seventeen content width of the theme.
     *
     * @since Twenty Seventeen 1.0
     *
     * @param $content_width integer
     */
    $GLOBALS['content_width'] = apply_filters('twentyseventeen_content_width', $content_width);
}
Beispiel #3
0
			<?php 
$description = get_bloginfo('description', 'display');
if ($description || is_customize_preview()) {
    ?>
					<p class="site-description"><?php 
    echo $description;
    ?>
</p>
				<?php 
}
?>
		</div><!-- .site-branding-text -->

		<?php 
if ((twentyseventeen_is_frontpage() || is_home() && is_front_page()) && !has_nav_menu('top')) {
    ?>
		<a href="#content" class="menu-scroll-down"><?php 
    echo twentyseventeen_get_svg(array('icon' => 'arrow-right'));
    ?>
<span class="screen-reader-text"><?php 
    _e('Scroll down to content', 'twentyseventeen');
    ?>
</span></a>
	<?php 
}
?>

	</div><!-- .wrap -->
</div><!-- .site-branding -->
 */
?>
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php 
_e('Top Menu', 'twentyseventeen');
?>
">
	<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false"><?php 
echo twentyseventeen_get_svg(array('icon' => 'bars'));
echo twentyseventeen_get_svg(array('icon' => 'close'));
_e('Menu', 'twentyseventeen');
?>
</button>
	<?php 
wp_nav_menu(array('theme_location' => 'top', 'menu_id' => 'top-menu'));
?>

	<?php 
if ((twentyseventeen_is_frontpage() || is_home() && is_front_page()) && has_custom_header()) {
    ?>
		<a href="#content" class="menu-scroll-down"><?php 
    echo twentyseventeen_get_svg(array('icon' => 'arrow-right'));
    ?>
<span class="screen-reader-text"><?php 
    _e('Scroll down to content', 'twentyseventeen');
    ?>
</span></a>
	<?php 
}
?>
</nav><!-- #site-navigation -->