forked from walternasc/wpbr-mapa
/
header.php
42 lines (36 loc) · 1.94 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="google" value="notranslate"><!-- this avoids problems with hash change and the google chrome translate bar -->
<title><?php
global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' );
$site_description = get_bloginfo( 'description', 'display' );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="map"></div>
<?php if ( !isset($_GET['embed']) ) : ?>
<div id="blog-title">
<a href="<?php echo home_url(); ?>">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/img/header.png" />
</a>
</div>
<?php wp_nav_menu( array( 'container_class' => 'map-menu-top', 'theme_location' => 'mapasdevista_top', 'fallback_cb' => false ) ); ?>
<?php endif; ?>
<?php $menu_positions = get_theme_mod('nav_menu_locations'); ?>
<?php if (isset($menu_positions['mapasdevista_side']) && $menu_positions['mapasdevista_side'] != '0'): ?>
<div id="toggle-side-menu">
<?php mapasdevista_image("side-menu.png", array("id" => "toggle-side-menu-icon")); ?>
</div>
<?php endif; ?>
<div id="posts-loader">
<span id="posts-loader-loaded">0</span>/<span id="posts-loader-total">0</span> <span><?php _e('users', 'mapasdevista'); ?></span>
</div>
<?php wp_nav_menu( array( 'container_class' => 'map-menu-side', 'theme_location' => 'mapasdevista_side', 'fallback_cb' => false ) ); ?>