-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
74 lines (53 loc) · 1.86 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!-- Required meta tags -->
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Google Font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Alegreya:wght@900&display=swap" rel="stylesheet">
<?php wp_head(); // intégrer des elements indispensable à Wordpress comme les fichiers CSS, JS, Admin bar
?>
</head>
<body <?php body_class('bg-color-brown text-light'); ?>>
<?php
if (function_exists('wp_body_open')) {
wp_body_open();
}
?>
<div> </div>
<div class="container-fluid conteneur"> <!-- General Container -->
<div class="row container">
<header class="col-xl-12 bg-color-black overflow-hidden">
<?php the_custom_logo(); ?>
<img src="<?php header_image(); ?>" alt="">
</header>
<!-- NAV -->
<nav class="col-xl-2 bg-color-black border border-primary menu_font_alegreya navbar-expand-xl col">
<!-- BOUTON (Mobile) -->
<button class="navbar-toggler wacool-menu-icon" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas light fa-bars"></i>
</button>
<div class="collapse navbar-collapse flex-column" id="navbarSupportedContent">
<!-- MENU -->
<?php
if (has_nav_menu('primary')) {
wp_nav_menu(
array(
'menu' => 'primary',
'theme_location' => 'primary',
)
);
} elseif (!has_nav_menu('expanded')) {
wp_list_pages(
array(
'match_menu_classes' => true,
'show_sub_menu_icons' => true,
'title_li' => false,
)
);
}
?>
</div>
</nav> <!-- End of NAV -->