forked from ffullenk/gobcl-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·125 lines (97 loc) · 4.27 KB
/
header.php
File metadata and controls
executable file
·125 lines (97 loc) · 4.27 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/ie.css">
<![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
<?php
if (function_exists('is_tag') && is_tag()) {
echo 'Etiqueta "'.single_tag_title('', false ).'" - ';
} elseif (is_archive()) {
wp_title(''); echo ' Archivo - ';
} elseif (is_search()) {
echo 'Resultados de búsqueda para "'.esc_html($s).'" - ';
} elseif (!(is_404()) && (is_single()) || (is_page())) {
wp_title(''); echo ' - ';
} elseif (is_404()) {
echo 'No encontrado - ';
} echo get_bloginfo('name');
if (is_home()) {
echo ' - ' . get_bloginfo('description');
}
?>
</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/main.css">
<link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('template_url'); ?>/img/favicon.ico" />
<?php get_template_part('inc/header', 'meta'); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
// reemplazar ID_DEL_APP_DE_FACEBOOK
js.src = "//connect.facebook.net/es_LA/sdk.js#xfbml=1&appId=ID_DEL_APP_DE_FACEBOOK&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="menu-movil">
<div class="wrap">
<nav id="menu-principal">
<!-- Menu Principal - Móvil -->
<?php $args = array(
'theme_location' => 'menu_principal',
'container' => '',
'menu_class' => 'menu',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="menu-main-menu" class="menu-main">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
wp_nav_menu( $args ); ?>
</nav>
</div>
</div>
<header style="background-image:url('<?php header_image(); ?>')">
<div class="wrap">
<h1 id="logo-main">
<a href="<?php bloginfo('url'); ?>/">
<img src="<?php echo (get_theme_mod( 'gobcl_logo' )) ? get_theme_mod( 'gobcl_logo' ) : 'http://placehold.it/180/0168b3&text=Isologo+(180x180)' ?>">
</a>
</h1>
<nav id="menu-principal">
<!-- Menu Principal -->
<?php $args = array(
'theme_location' => 'menu_principal',
'container' => '',
'menu_class' => 'menu',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="menu-main-menu" class="menu-main">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
wp_nav_menu( $args ); ?>
</nav>
<a href="#" id="menu-movil-trigger">Menú Principal</a>
</div>
</header>