-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
60 lines (58 loc) · 3.01 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
<?php afft_check_requirements(); ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset') ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS2 Feed" href="<?php bloginfo('rss2_url'); ?>" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
<header id="header" role="banner" itemscope itemtype="http://schema.org/WPHeader">
<div class="container">
<div class="row">
<div class="col-xs-12">
<?php if(afft_has_logo() || afft_has_retina_logo()): ?>
<a href="<?php echo get_bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" rel='home'>
<img id="logo" src="<?php echo (!afft_has_logo() ? afft_get_retina_logo() : afft_get_logo()); ?>"
data-rjs="<?php echo afft_get_retina_logo() ?>" alt="<?php bloginfo('name'); ?>">
</a>
<?php else: ?>
<h1 id="title" class="display-4" itemprop="headline">
<a href="<?php echo get_bloginfo('url'); ?>" rel='home'>
<?php bloginfo('name') ?>
</a>
</h1>
<p id="tagline" class="lead text-muted" itemprop="description"><?php bloginfo('description') ?></p>
<?php endif; ?>
</div>
</div>
</div>
</header>
<nav id="main-menu" class="navbar" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#top-menu">
<span class="sr-only"><?php _e('Toggle navigation', 'affilicious-theme'); ?></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand visible-xs" href="<?php home_url('/'); ?>">
<?php bloginfo('name'); ?>
</a>
</div>
<?php if(afft_has_main_menu()): ?>
<?php afft_the_main_menu(); ?>
<?php endif; ?>
</div>
</div>
</div>
</nav>