This repository was archived by the owner on Jan 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
69 lines (56 loc) · 2.59 KB
/
header.php
File metadata and controls
69 lines (56 loc) · 2.59 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
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_url'); ?>/assets/css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_url'); ?>/assets/css/style.css" media="screen,projection">
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/slick/slick-theme.css"/>
</head>
<body class="grey lighten-4" >
<?php function for_whatever_reason_I_need_a_function_for_this( $length ) {
return 43;
}
add_filter( 'excerpt_length', 'for_whatever_reason_I_need_a_function_for_this');
?>
<?php
$page_child = get_pages( array('child_of' => '15') );
$IDs_of_excluded_pages_array = array();
foreach ( $page_child as $page ) {
$IDs_of_excluded_pages_array[] = $page->ID;
}
$IDs_of_excluded_pages_string = implode(',', $IDs_of_excluded_pages_array);
?>
<!--NAVBAR-->
<nav id="nav" class="light-blue darken-4 z-depth-3">
<div class="containernav">
<div class="nav-wrapper">
<a href="<?php echo home_url(); ?>" class="brand-logo white-text">
<img class="responsive-img" src="<?php bloginfo( 'template_url')?>/assets/images/Logo-Klein.png" style="padding-left: 40px; padding-right: 40px;">
</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<?php
$args = array('title_li' => 0, 'exclude' => $IDs_of_excluded_pages_string );
wp_list_pages( $args ); ?>
</ul>
<!-- SIDE-NAV -->
<ul id="slide-out" class="side-nav hide-on-large-only">
<li>
<div class="user-view">
<div class="background">
<img src="images/office.jpg">
</div>
</div>
</li>
<?php wp_list_pages( $args ); ?>
</ul>
<!-- /SIDE-NAV -->
<a href="#" data-activates="slide-out" class="button-collapse hide-on-large-only"><i class="material-icons">menu</i></a>
</div>
</div>
</nav>
<!--END NAVBAR-->