This repository has been archived by the owner on Aug 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
47 lines (46 loc) · 1.51 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html <?php language_attributes() ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head() ?>
</head>
<body <?php body_class() ?>>
<nav class="header__top-menu">
<ul>
<?php if (has_nav_menu('top')) : ?>
<?php wp_nav_menu(array(
'theme_location' => 'top',
'items_wrap' => '%3$s',
'container' => '',
'depth' => 1
)) ?>
<?php endif; ?>
<?php pll_the_languages(array(
'show_flags' => true,
'hide_current' => true
)) ?>
</ul>
</nav>
<div class="base__container">
<div class="header__menu">
<h1 class="header__logo-wrap">
<a href="<?= esc_url(home_url('/')) ?>" class="header__logo"><?php bloginfo('name') ?></a>
</h1>
<label class="header__menu-toggle" for="header__menu-checkbox">
<i class="fa fa-bars"></i>
</label>
<input id="header__menu-checkbox" type="checkbox">
<nav class="header__nav">
<?php wp_nav_menu(array('theme_location' => 'primary')) ?>
</nav>
</div>
<main class="base__main">
<?php if (get_header_image()) : ?>
<header class="index__banner">
<img class="index__banner-img" alt="banner" src="<?= get_header_image() ?>" width="<?= get_custom_header()->width ?>" height="<?= get_custom_header()->height ?>">
</header>
<?php endif; ?>