-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
66 lines (49 loc) · 2.03 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
63
64
65
66
<?php
/**
* The template for displaying the header
*
* This is the template that displays all of the <head> section
*
*/
?>
<!doctype html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<!-- Force IE to use the latest rendering engine available -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta class="foundation-mq">
<!-- If Site Icon isn't set in customizer -->
<?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) { ?>
<!-- Icons & Favicons -->
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png">
<link href="<?php echo get_template_directory_uri(); ?>/assets/images/apple-touch-icon.png" rel="apple-touch-icon" />
<?php } ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/assets/foundation-icons/foundation-icons.css" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="off-canvas-wrapper">
<!-- Load off-canvas container. Feel free to remove if not using. -->
<?php get_template_part( 'parts/content', 'offcanvas' ); ?>
<div class="off-canvas-content" data-off-canvas-content>
<?php
if (! is_page('housinghunt')) {
get_template_part( 'parts/announcement', 'bar' );
} ?>
<?php
//if (is_page_template('homepage.php') || (is_page_template('template-key.php'))) {
// Header starts & ends in homepage.php
//}
//else {
?>
<!-- <header class="header" role="banner"> -->
<!-- This navs will be applied to the topbar, above all content
To see additional nav styles, visit the /parts directory -->
<?php //get_template_part( 'parts/nav', 'offcanvas-topbar' ); ?>
<!-- </header> -->
<?php
//} ?>