forked from Invulu/90s-retro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
86 lines (57 loc) · 1.91 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
<?php
/**
* The Header for our theme.
* Displays all of the <head> section and everything up till <div id="wrap">
*
* @package 90s Retro
* @since 90s Retro 1.0
*/
?><!DOCTYPE html>
<html class="no-js" <?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 echo bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- BEGIN #wrapper -->
<div id="wrapper">
<!-- BEGIN .container -->
<div class="container">
<!-- BEGIN #header -->
<div id="header">
<!-- BEGIN .row -->
<div class="row">
<?php get_template_part( 'content/logo', 'title' ); ?>
<?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?>
<div id="custom-header">
<img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="<?php echo esc_attr( get_bloginfo() ); ?>" />
</div>
<?php } ?>
<!-- END .row -->
</div>
<!-- BEGIN .row -->
<div class="row">
<!-- BEGIN #navigation -->
<nav id="navigation" class="navigation-main clearfix" role="navigation">
<button class="menu-toggle"><i class="fa fa-bars"></i></button>
<?php wp_nav_menu( array(
'theme_location' => 'main-menu',
'title_li' => '',
'depth' => 4,
'fallback_cb' => 'wp_page_menu',
'container_class' => '',
'menu_class' => 'menu',
)
); ?>
<!-- END #navigation -->
</nav>
<!-- END .row -->
</div>
<!-- END #header -->
</div>
<?php if ( '' != get_theme_mod( 'retro_start_music', '' ) ) { ?>
<audio src="<?php echo esc_url( get_theme_mod( 'retro_upload_audio', get_template_directory_uri() . '/audio/come_and_find_me.mp3' ) ); ?>" preload="auto" autoplay="autoplay"></audio>
<?php } ?>