-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
61 lines (61 loc) · 2.48 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
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title><?php bloginfo('name'); ?></title>
<meta name="viewport" content="width=device-width,initial-scale=1, user-scalable=no">
<?php wp_head(); ?>
</head>
<body <?php body_class( $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;
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.8&appId=1906840886206070";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<header id="masthead" class="<?php echo arp_get_header_class(); ?>">
<div class="container">
<div class="twelve columns">
<div class="brand <?php echo arp_get_brand_class(); ?>">
<img src="<?php echo get_template_directory_uri(); ?>/img/wwf.png" />
<h1 class="title">
<?php
$lang = '';
if(function_exists('qtranxf_getLanguage'))
$lang = qtranxf_getLanguage();
if($lang == 'pb' || $lang == 'pt_BR') :
?>
<a href="<?php echo home_url('/'); ?>">
<span class="product">Portal</span>
<span class="subject">Rios da Amazônia</span>
</a>
<?php elseif($lang == 'es') : ?>
<a href="<?php echo home_url('/'); ?>">
<span class="product">Portal</span>
<span class="subject">Rios Amazónicos</span>
</a>
<?php else : ?>
<a href="<?php echo home_url('/'); ?>">
<span class="subject">Amazon Rivers</span>
<span class="product">Platform</span>
</a>
<?php endif; ?>
</h1>
</div>
<nav>
<?php wp_nav_menu(array('theme_location' => 'header_nav')); ?>
<form class="search" action="<?php echo home_url('/'); ?>">
<a href="#"><span class="fa fa-search"></span></a>
<input type="text" name="s" placeholder="<?php _e('Search anything...', 'arp'); ?>" value="<?php if(isset($_GET['s'])) echo $_GET['s']; ?>" />
</form>
<?php if(function_exists('qtranxf_generateLanguageSelectCode')) : ?>
<div class="language-selector">
<?php echo qtranxf_generateLanguageSelectCode('image'); ?>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</header>