-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·62 lines (53 loc) · 2.42 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
61
62
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title><?php bloginfo('name'); ?> | <?php is_front_page() ? bloginfo('description') : wp_title(''); ?></title>
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1, maximum-scale=1">
<?php // wp_head(); // wordpress head functions ?>
<link rel="icon" type="image/x-icon" href="<?php theActiveThemeDirectory(); ?>favicon.ico">
<link href="<?php theHTML5BoilerplateDirectory(); ?>css/normalize.css" rel="stylesheet">
<link href="<?php theSkeletonDirectory(); ?>css/skeleton.css" rel="stylesheet">
<link href="<?php theActiveThemeDirectory(); ?>css/main.css" rel="stylesheet">
<link href="<?php theFontAwesomeDirectory(); ?>css/font-awesome.min.css" rel="stylesheet">
<script src="<?php theHTML5BoilerplateDirectory(); ?>js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body <?php body_class(); ?>>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="nav-bar">
<div class="container">
<div class="row">
<div class="three columns">
<div class="logo">
<a href="<?php echo site_url(); ?>" id="logo-link"></a>
</div>
<div class="home">
<a href="<?php echo site_url(); ?>">Metod</a>
</div>
</div>
<nav class="nine columns">
<input class="trigger" type="checkbox" id="nav-button">
<label class="hamburger" for="nav-button" onclick>+</label>
<ul class="u-pull-right">
<?php
// get all the pages from 'main' category
$main_pages = get_posts( array( 'post_type' => 'page', 'order' => 'ASC', 'orderby' => 'menu_order', 'category_name' => 'main', 'posts_per_page' => 200 ) );
foreach($main_pages as $main_page) // for each school within schools
{
$main_URL = get_page_link($main_page->ID);
$main_name = $main_page->post_title;
// showMeTheGoods($school_name);
echo '<li><a href="' . $main_URL . '">' . $main_name . '</a></li>';
}
?>
<li><a href="#me">Me</a></li>
</ul>
</nav>
<!-- <a class="">+</a> -->
</div>
</div>
</div>