Update header.php

This commit is contained in:
Pedro Reis 2018-04-17 10:47:53 +01:00 committed by GitHub
parent 5e73bd2cd3
commit 7fe52f676a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 12 deletions

View File

@ -7,14 +7,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="dns-prefetch" href="//google-analytics.com"> <link rel="dns-prefetch" href="//google-analytics.com">
<style>
<?php
/**
* For better peformance, core styles are inlined
*/
echo file_get_contents(sprintf('%s/css/core.min.css', get_stylesheet_directory())); ?>
</style>
<link rel="stylesheet" href="<?php echo get_bloginfo('stylesheet_url') . '?' . filemtime(get_stylesheet_directory() . '/style.css'); ?>"> <link rel="stylesheet" href="<?php echo get_bloginfo('stylesheet_url') . '?' . filemtime(get_stylesheet_directory() . '/style.css'); ?>">
<?php wp_head(); ?> <?php wp_head(); ?>
@ -30,19 +22,18 @@
<body <?php body_class(); ?>> <body <?php body_class(); ?>>
<header class="header" role="banner"> <header class="header" role="banner">
<div class="container"> <div class="container">
<a href="<?php bloginfo('url'); ?>" class="logo logo--header"> <a href="<?php bloginfo('url'); ?>" class="header__logo">
<?php echo is_front_page() ? '<h1>' : ''; ?> <?php echo is_front_page() ? '<h1>' : ''; ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo.svg" onerror="this.src='<?php bloginfo('stylesheet_directory'); ?>/img/logo.png'" alt="<?php bloginfo('title'); ?>" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo.svg" onerror="this.src='<?php bloginfo('stylesheet_directory'); ?>/img/logo.png'" alt="<?php bloginfo('title'); ?>" />
<?php echo is_front_page() ? '</h1>' : ''; ?> <?php echo is_front_page() ? '</h1>' : ''; ?>
</a> </a>
<a href="#" class="nav-burger js-menu-toggle"> <a href="#" class="nav-burger js-menu-toggle">
<span class="nav-burger__line"></span> <span class="nav-burger__line"></span>
<span class="nav-burger__line"></span> <span class="nav-burger__line"></span>
<span class="nav-burger__line"></span> <span class="nav-burger__line"></span>
</a> </a>
<nav role="navigation" class="nav nav--header"> <nav role="navigation" class="header__navigation">
<?php wp_nav_menu(['theme_location' => 'header', 'menu_class' => 'nav__list']); ?> <?php wp_nav_menu(['theme_location' => 'header', 'menu_class' => 'nav nav--header']); ?>
</nav> </nav>
</div> </div>
</header> </header>