-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheader.php
57 lines (53 loc) · 2.49 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
<?php //mapi_mobile_header('class', TRUE, FALSE); ?>
<!DOCTYPE HTML>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<?php blankout_copyright(); ?>
<!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1' /><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<?php if (function_exists('mapi_get_favicon_url') && mapi_get_favicon_url() != NULL) : ?>
<link rel="shortcut icon" href="<?php echo mapi_get_favicon_url(); ?>" />
<?php else : ?>
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/img/favicon.png" />
<?php endif; ?>
<link rel="alternate" type="application/rss+xml" href="<?php echo htmlspecialchars(get_feed_link()); ?>" title="<?php echo esc_html(get_bloginfo('name')); ?> latest updates" />
<?php if (function_exists('mapi_is_true') && mapi_is_true(get_option('default_comment_status'))) : ?>
<link rel="alternate" type="application/rss+xml" href="<?php echo htmlspecialchars(get_post_comments_feed_link()); ?>" title="<?php echo esc_html(get_bloginfo('name')); ?> recent comments" />
<?php endif; ?>
<?php if (function_exists('mapi_is_true') && mapi_is_true(get_option('default_ping_status'))) : ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php endif; ?>
<?php wp_head(); ?>
<?php blankout_enable_nav_hover(); ?>
</head>
<body <?php body_class(); ?>>
<a id="top"></a>
<div class="container">
<header class="header">
<nav class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only"><?php _e('Toggle navigation', 'blankout'); ?></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
</button>
<a class="navbar-brand" id="logo" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>
</div>
<div class="collapse navbar-collapse">
<?php
if (has_nav_menu('main-nav')) {
wp_nav_menu(
array(
'container' => FALSE,
'container_class' => 'nav',
'menu' => 'main-nav',
'menu_class' => 'nav navbar-nav',
'theme_location' => 'main-nav',
'depth' => '2',
'walker' => new Blankout_Menu_Walker(),
)
);
} ?>
</div>
</nav>
</header>
</div>