-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheader.php
46 lines (45 loc) · 1.67 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
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the "site-content" div.
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!--[if lt IE 9]>
<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header id="header">
<div class="container">
<a href="/" class="navbar-brand"><?php echo get_bloginfo("name");?></a>
<?php wp_nav_menu( array('theme_location' => 'header-menu', 'menu_class' => 'nav navbar-nav')); ?>
<div class="nav navbar-nav navbar-right">
<form method="GET">
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-search"></i>
</span>
<input<?php if (isset($_GET['s'])):?> value="<?php echo $_GET['s'];?>"<?php endif;?> name="s" data-toggle="search" type="text" class="form-control"/>
</div>
</form>
</div>
</div>
</header>
<?php if (is_front_page() == false):?>
<div id="breadcrumb">
<?php echo Core::get_view_breadcrumb();?>
</div>
<?php endif;?>
<main id="main">