-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
97 lines (78 loc) · 2.83 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Shelter
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<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' ); ?>">
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.png" />
<script src="https://use.typekit.net/lpb6dii.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<script src="https://use.fortawesome.com/27872501.js"></script>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6&appId=142401569149401";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'shelter' ); ?></a>
<div class="header-wrap">
<header id="masthead" class="site-header" role="banner">
<div class="site-mobile-logo">
</div>
<div class="site-header-inner">
<div class="site-header-left">
</div>
<div class="site-header-right">
<ul class="switcher">
<?php
// https://polylang.pro/doc/function-reference/
$translations = pll_the_languages( array( 'raw' => 1 ) );
foreach ($translations as $key => $value) { ?>
<li>
<a href="<?php echo $value['url'] ?>">
<div class="lang-name"><?php echo $value['name'] ?></div>
<div class="lang-flag"><img src="<?php echo $value['flag'] ?>" /></div>
</a>
</li>
<?php }
?>
</ul>
</div>
</div>
</header><!-- #masthead -->
</div>
<div class="nav-wrap">
<nav class="desktop-navigation" role="navigation">
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>
<nav class="mobile-navigation" role="navigation">
<div class="mobile-toggle"><i class="fa fa-menu"></i></div>
<div class="mobile-content">
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</div>
</nav>
</div>
<?php if ( is_page_template('page-home.php') ) : ?>
<div class="hero-wrap">
</div>
<?php endif; ?>
<div class="content-wrap">
<div id="content" class="site-content">