-
Notifications
You must be signed in to change notification settings - Fork 6
/
header.php
66 lines (62 loc) · 2.28 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 header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Acajou
*/
?><!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php
if( false === get_option( 'site_icon', false ) ) {
// Show favicon
wp_site_icon();
}
?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<section class="nav-wrapper">
<nav>
<header class="home-menu">
<section class="top-bar-section">
<?php if(has_custom_logo()):?>
<section class="logo">
<a href="<?php echo esc_url(home_url()); ?>">
<?php the_custom_logo();?>
</a>
</section>
<?php endif;?>
<?php
get_template_part('menu', 'main');
?>
</section>
<section class="socials">
<ul class="columns ">
<?php get_template_part('menu', 'social'); ?>
</ul>
</section>
</header>
</nav>
</section>
<?php
if(is_home() && is_front_page()):
get_template_part('template-parts/content', 'slider');
else:
get_template_part('header-overlay');?>
<?php if(!is_singular()):?>
<section>
<h1 class="category-title"><?php the_archive_title();?></h1>
<div class="category-title-line large-2 large-centered columns"></div>
</section>
<?php endif;?>
<?php endif;?>