This repository has been archived by the owner on May 8, 2021. It is now read-only.
forked from InfoAmazonia/newsroom
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheader.php
executable file
·84 lines (78 loc) · 2.4 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
<!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', 'newsroom') . 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 echo get_template_directory_uri(); ?>/img/favicon.ico" type="image/x-icon" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<?php wp_head(); ?>
</head>
<body <?php body_class(get_bloginfo('language')); ?>>
<header id="masthead">
<div>
<div class="site-meta">
<?php newsroom_logo(); ?>
</div>
<div class="top-nav">
<nav id="langnav">
<?php
if(function_exists('qtranxf_generateLanguageSelectCode')) {
echo qtranxf_generateLanguageSelectCode('text');
}
?>
</nav>
<nav id="socialnav">
<?php
$fb = newsroom_get_facebook_url();
$tw = newsroom_get_twitter_url();
if($fb) :
?>
<a href="<?php echo $fb; ?>" rel="external" title="Facebook" class="icon icon-facebook"></a>
<?php
endif;
if($tw) :
?>
<a href="<?php echo $tw; ?>" rel="external" title="Twitter" class="icon icon-twitter"></a>
<?php
endif;
?>
</nav>
</div>
</div>
<div>
<nav id="mastnav">
<?php wp_nav_menu(array('theme_location' => 'header_menu')); ?>
<?php get_search_form(); ?>
</nav>
</div>
</header>
<div class="mobile-header" style="display:none;">
<?php newsroom_logo(true); ?>
<nav id="mobile-nav">
<a href="javascript:void(0);" class="icon toggle-nav icon-menu"></a>
<div class="mobile-nav-content">
<?php wp_nav_menu(array('theme_location' => 'header_menu')); ?>
<?php
if(function_exists('qtranxf_generateLanguageSelectCode')) :
?>
<p class="label"><?php _e('Select your language', 'newsroom'); ?></p>
<?php echo qtranxf_generateLanguageSelectCode('text'); ?>
<?php
endif;
?>
<?php get_search_form(); ?>
</div>
</nav>
</div>