-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
103 lines (85 loc) · 2.92 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
98
99
100
101
102
103
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till #main div
*
* @package Odin
* @since 2.2.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.0" />
<link rel="profile" href="http:https://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( ! get_option( 'site_icon' ) ) : ?>
<link href="<?php echo get_template_directory_uri(); ?>/assets/images/favicon.ico" rel="shortcut icon" />
<?php endif; ?>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-5750060815915776",
enable_page_level_ads: true
});
</script>
<?php wp_head(); ?>
</head>
<body class="blue-grey lighten-5">
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '629417637481520',
cookie : true,
xfbml : true,
version : '3.2'
});
FB.AppEvents.logPageView();
};
(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 = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<header>
<div class="row blue darken-3">
<nav class="nav-extended blue darken-4">
<div class="nav-wrapper container">
<a href="<?php $url = home_url(); echo esc_url( $url ); ?>" class="brand-logo"><span class="icon-galo"></span>Página 20</a>
<a href="#" data-target="mobile-menu" class="sidenav-trigger"><i class="material-icons">menu</i></a>
</div>
<?php
wp_nav_menu( array(
'theme_location' => 'menu-pagina20',
'menu' => 'Menu Pagina20',
'menu_id' => 'primary-menu',
'menu_class' => 'left hide-on-med-and-down',
'container' => 'div',
'container_class' =>'container blue darken-4',
'depth' => 2,
'walker' => new Materialize_Walker_Nav_Menu(),
));
?>
</nav>
<?php
wp_nav_menu( array(
'theme_location' => 'menu-pagina20',
'menu' => 'Menu Pagina20',
'menu_id' => 'mobile-menu',
'depth' => 2,
'container' => 'ul',
'container_class' => 'left collapsible',
'menu_class' => 'sidenav',
'walker' => new Materialize_Walker_Nav_Menu(),
));
?>
</div>
</header><!-- #header -->