forked from daibach/edtechhub-database-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
63 lines (53 loc) · 1.84 KB
/
header.php
File metadata and controls
63 lines (53 loc) · 1.84 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
<?php
/**
* Header file for the ETHDB theme.
*
* @package WordPress
* @subpackage ETHDB
* @since EdTech Hub Database 0.1
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
wp_body_open();
?>
<header>
<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-3">
<div class="brand">
<?php
$logo_url = get_bloginfo( 'template_directory' )."/logos/logo.png";
echo '<a href="/"><img src="'. esc_url( $logo_url) .'" width="200" title="'. get_bloginfo( 'name' ) .'" alt="'. get_bloginfo( 'name').'" /></a>';
?>
</div>
</div>
<div class="col-sm-12 col-lg-9">
<nav class="navbar navbar-expand-lg navbar-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<?php wp_nav_menu(array(
'menu' => 'ethdb-header-menu',
'menu_class' => 'navbar-nav',
'depth' => 2
)); ?>
</div>
<button type="submit" class="search_submit icon-search-alt" onclick="openSearch()">
<span class="search-submit-text">Search</span>
</button>
</nav>
</div>
</div>
</div>
</header>
<main id="site-content" role="main">
<div class="container">