-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
95 lines (87 loc) · 4.02 KB
/
header.php
File metadata and controls
95 lines (87 loc) · 4.02 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
/**
* KCSU website functions and definitions (can declare global variables here)
*
* @package KCSU
* @file header.php
* @author Gideon Farrell <me@gideonfarrell.co.uk>
* @license BSD 3-Clause
*
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
?></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!-- Some Fonts -->
<!-- Our serif font, Donegal One -->
<link href='http://fonts.googleapis.com/css?family=Donegal+One' rel='stylesheet' type='text/css'>
<?php wp_head(); ?>
</head>
<body>
<div id="KCSUPageHeader" class="header">
<div class="navbar main">
<div class="navbar-inner">
<div class="container">
<!-- Collapsible menu -->
<div class="navbar-menu nav-collapse collapse">
<?php
wp_nav_menu( array(
'theme_location' => 'main_menu',
'menu' => 'navbar',
'container' => false,
'menu_class' => 'nav',
'depth' => 2,
'walker' => new wp_bootstrap_navwalker())
);
?>
<!-- Account stuff -->
<ul class="nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Account <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="<?php echo admin_url(); ?>"><i class="icon-dashboard"></i> Dashboard</a></li>
<li><a href="<?php echo wp_login_url(); ?>"><i class="icon-signin"></i> Log in</a></li>
<li><a href="<?php echo wp_logout_url(); ?>"><i class="icon-signout"></i> Log out</a></li>
</ul>
</li>
</ul>
<!-- Search -->
<?php /* ?>
<form id="NavbarSearchForm" method="get" class="navbar-search pull-right" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input name="s" id="NavbarSearchField" type="text" class="search-query" placeholder="search" />
</form>
</div>
<?php */ ?>
</div>
<!-- collapse button for low resolution devices -->
<div class="expand-bar visible-phone">
<a data-toggle="collapse" data-target=".nav-collapse">
KCSU <i class="icon-chevron-down"></i>
</a>
</div>
</div><!-- END .container -->
</div><!-- END .navbar-inner -->
<!-- Logo: hidden on phones -->
<div class="logo hidden-phone">
<a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/img/kcsu_full.png" alt="KCSU" /></a>
</div>
</div><!-- END .navbar.main -->
</div><!-- END HEADER -->