-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
67 lines (56 loc) · 3.14 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<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 if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_enqueue_style('zcraft-vendor-fontawesome-style', get_template_directory_uri() . '/css/vendor/font-awesome.css'); ?>
<?php wp_enqueue_style('zcraft-vendor-ie10wr-style', get_template_directory_uri() . '/css/vendor/ie10-viewport-bug-workaround.css'); ?>
<?php wp_enqueue_style('zcraft-generic-style', get_template_directory_uri() . '/style.css', array('zcraft-vendor-fontawesome-style')); ?>
<?php
if (is_front_page() && !is_home()):
wp_enqueue_style('zcraft-homepage-style', get_template_directory_uri() . '/css/homepage.css', array('zcraft-vendor-fontawesome-style'));
endif;
?>
<?php wp_head(); ?>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body <?php body_class(); ?><?php if (is_front_page() && !is_home()): ?> id="homepage"<?php endif; ?>>
<header>
<nav>
<h1>
<a href="<?php echo home_url(); ?>">
<img src="<?php echo get_theme_mod('zcraft-header-logo', get_stylesheet_directory_uri() . '/img/logo.png'); ?>" alt="<?php bloginfo('name')?>" />
</a>
</h1>
<?php
wp_nav_menu(array(
'theme_location' => 'top-left-menu',
'depth' => 0,
'container' => '',
'menu_class' => '',
'menu_id' => 'primary-menu',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'items_wrap' => '<ul role="menu" id="%1$s" class="%2$s">%3$s<li id="secondary-menu-button" data-title="" data-drawer="secondary-menu" class="fa-list"></li></ul>',
'walker' => new WP_Zcraft_Nav_Walker()
));
wp_nav_menu(array(
'theme_location' => 'top-right-menu',
'depth' => 0,
'container' => '',
'menu_class' => '',
'menu_id' => 'secondary-menu',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'items_wrap' => '<ul role="menu" id="%1$s" class="%2$s" data-title="Menu secondaire">%3$s</ul>',
'walker' => new WP_Zcraft_Nav_Walker(true)
));
?>
</nav>
<?php // Page title and </header> in content pages