forked from InfoAmazonia/infoamazonia-wptheme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
126 lines (121 loc) · 4.24 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<title><?php
global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' );
$site_description = get_bloginfo('description', 'display');
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . __('Page', 'infoamazonia') . max($paged, $page);
?></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'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/img/favicon.ico" type="image/x-icon" />
<?php wp_head(); ?>
</head>
<body <?php body_class(get_bloginfo('language')); ?>>
<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;
js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1&appId=459964104075857";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<header id="masthead">
<div class="regular-header">
<div class="container">
<div class="three columns">
<?php
$lang = '';
if(function_exists('qtranxf_getLanguage'))
$lang = qtranxf_getLanguage();
?>
<h1>
<a href="<?php echo home_url('/' . $lang); ?>" title="<?php echo bloginfo('name'); ?>"><span><?php bloginfo('name'); ?></span> <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/logo.png" class="logo" /></a>
</h1>
</div>
<?php /*
<div class="four columns">
<?php get_search_form(); ?>
</div>
*/ ?>
<div class="nine columns">
<section id="mastnav" class="clearfix">
<nav>
<ul>
<?php wp_nav_menu(array(
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s<!--<li><a href="#submit" class="submit-story">' . __('Submit a story', 'infoamazonia') . '</a></li>--></ul>'
)); ?>
</ul>
</nav>
</section>
</div>
</div>
</div>
<?php if(is_singular('post')) : ?>
<div class="single-post-header scrolled-header">
<div class="container">
<div class="two columns">
<span class="site-logo">
<a href="<?php echo home_url('/' . $lang); ?>" title="<?php echo bloginfo('name'); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/img/logo.png" class="logo" /></a>
</span>
</div>
<div class="seven columns">
<span class="post-title"><span class="publisher"><?php echo get_the_term_list($post->ID, 'publisher', '', ', ', ': '); ?></span><?php the_title(); ?></span>
</div>
<div class="three columns">
<span class="post-actions">
<a href="javascript:void(0);" class="toggle-top-map"><span class="lsf"></span> <?php _e('View map', 'infoamazonia'); ?></a>
</span>
</div>
</div>
</div>
<div id="top-map">
<?php jeo_map(); ?>
</div>
<?php endif; ?>
</header>
<section id="subnav">
<div class="container">
<div class="twelve columns">
<div class="subnav-container">
<div class="subnav-content">
<?php if(function_exists('qtranxf_getLanguage')) : ?>
<nav id="langnav">
<ul>
<?php
global $q_config;
if(is_404()) $url = get_option('home'); else $url = '';
$current = qtranxf_getLanguage();
foreach($q_config['enabled_languages'] as $language) {
$attrs = '';
if($language == $current)
$attrs = 'class="active"';
echo '<li><a href="' . qtranxf_convertURL($url, $language) . '" ' . $attrs . '>' . $language . '</a></li>';
}
?>
</ul>
</nav>
<?php endif; ?>
<nav id="social">
<ul>
<li class="twitter">
<a href="https://twitter.com/infoamazonia" rel="external" target="_blank" title="Twitter"></a>
</li>
<li class="fb">
<a href="https://www.facebook.com/infoamazonia" rel="external" target="_blank" title="Facebook"></a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</section>
<section id="main-content">