-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathheader.php
More file actions
68 lines (63 loc) · 2.47 KB
/
header.php
File metadata and controls
68 lines (63 loc) · 2.47 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
<!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', 'ekuatorial') . 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')); $currentLang = get_locale();?>>
<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/<?php echo $currentLang; ?>/all.js#xfbml=1&appId=459964104075857";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<header id="masthead">
<div class="container">
<div class="twelve columns">
<a href="<?php echo home_url() ?>"><h1 class="headline">Biodiversity</h1></a>
<div class="header-right">
<?php if(function_exists('qtranxf_getLanguage')) : ?>
<nav id="langnav">
<ul>
<?php
$lang = qtranxf_getLanguage();
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 . '>' . $q_config['language_name'][$language] . '</a></li>';
}
?>
</ul>
</nav>
<?php endif; ?>
<div id="colophon">
<ul class="nav clearfix">
<li><a class="icon siej" href="http://www.siej.or.id" target="_blank">Society of Indonesian Environmental Journalists</a></li>
<li><a class="icon ejn" href="https://earthjournalism.net" target="_blank">Earth Journalism Network</a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<section id="main-content">