-
Notifications
You must be signed in to change notification settings - Fork 12
/
header.php
67 lines (46 loc) · 1.8 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
67
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<!--- basic page needs
================================================== -->
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
<!-- mobile specific metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<?php wp_head(); ?>
</head>
<body id="top" <?php body_class() ?>>
<!-- pageheader
================================================== -->
<section class="s-pageheader <?php echo apply_filters("philosophy_home_banner_class","s-pageheader--home"); ?>">
<header class="header">
<div class="header__content row">
<div class="header__logo">
<?php if(has_custom_logo()){
the_custom_logo();
}else{
echo "<h1><a href='".home_url("/")."'>".get_bloginfo('name')."</a></h1>";
}
?>
</div> <!-- end header__logo -->
<?php
if(is_active_sidebar("header-section")){
dynamic_sidebar("header-section");
}
?>
<a class="header__search-trigger" href="#0"></a>
<div class="header__search">
<?php get_search_form(); ?>
<a href="#0" title="Close Search" class="header__overlay-close">Close</a>
</div> <!-- end header__search -->
<?php get_template_part( "template-parts/common/navigation" ); ?>
</div> <!-- header-content -->
</header> <!-- header -->
<?php
if ( is_home() ) {
get_template_part( "template-parts/blog-home/featured" );
}
?>
</section> <!-- end s-pageheader -->