-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
91 lines (80 loc) · 2.98 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
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the "container" div.
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
?>
<?php
// Debug bdd
// echo dirname( __FILE__ );
?>
<!doctype html>
<html class="no-js" <?php language_attributes(); ?> >
<head>
<script src="http://momentjs.com/downloads/moment.js"></script>
<script src="http://momentjs.com/downloads/moment-timezone-with-data.js"></script>
<!-- REDIRECTION -->
<!-- <meta http-equiv="refresh" content="7; URL='http://www.owinfinity.com/en/'" /> -->
<!-- FIN REDIRECTION -->
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="<?= get_stylesheet_directory_uri() ?>/assets/images/icons/favicon.ico" type="image/x-icon">
<?php wp_head(); ?>
<?php
$urlPhoto = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
?>
<style>
body {
background-image: url(<?php echo $urlPhoto ?>);
}
</style>
</head>
<body <?php body_class(); ?>>
<?php do_action( 'foundationpress_after_body' ); ?>
<?php if ( get_theme_mod( 'wpt_mobile_menu_layout' ) == 'offcanvas' ) : ?>
<div class="off-canvas-wrapper">
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
<?php get_template_part( 'template-parts/mobile-off-canvas' ); ?>
<?php endif; ?>
<?php do_action( 'foundationpress_layout_start' ); ?>
<header id="masthead" class="site-header" role="banner">
<div class="title-bar" data-responsive-toggle="site-navigation">
<button class="menu-icon" type="button" data-toggle="mobile-menu"></button>
<div class="title-bar-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</div>
</div>
<nav id="site-navigation" class="main-navigation top-bar row" role="navigation">
<div class="top-bar-left">
<ul class="menu">
<li class="home">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src="<?= get_stylesheet_directory_uri().'/assets/images/icons/logo.png' ?>" alt="Overwatch Infinity Logo" />
</a>
<div class="version-number-wrap">
<div class="version-number">v1.0</div>
</div>
</li>
</ul>
</div>
<div class="top-bar-right">
<?php foundationpress_top_bar_r(); ?>
<?php if ( ! get_theme_mod( 'wpt_mobile_menu_layout' ) || get_theme_mod( 'wpt_mobile_menu_layout' ) == 'topbar' ) : ?>
<?php get_template_part( 'template-parts/mobile-top-bar' ); ?>
<?php endif; ?>
</div>
<div class="top-bar-right-right">
<?php foundationpress_top_bar_lang(); ?>
</div>
</nav>
</header>
<?php if(!is_singular('hero') || is_page_template('page-templates/page-full-width.php')) : ?>
<section class="container" data-parallax="scroll" data-image-src="<?php do_action('parallax') ?>">
<?php else : ?>
<section class="container">
<?php endif; ?>
<?php do_action( 'foundationpress_after_header' );