-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
64 lines (51 loc) · 1.55 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
<?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 rohas
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php do_action('rohas_body_top'); ?>
<header id="header" style="background-image: url(<?php esc_url(header_image()); ?>);">
<?php
if(is_header_video_active() && has_header_video()) {
the_custom_header_markup();
}
?>
<div class="overlay">
<?php
get_template_part('parts/header-top-bar');
do_action('rohas_header_logo_before');
// Display logo
echo '<div class="logo_wrapper">';
rohas_get_logo();
echo '</div>';
do_action('rohas_header_logo_after');
?>
</div><!-- / .overlay -->
</header><!-- /#header -->
<?php
//Display left header menu
$menu_location = 'header_menu';
if(has_nav_menu($menu_location)) {
echo '<nav id="main_navigation"><div class="wrapper">';
do_action('rohas_header_navigation_before');
wp_nav_menu( array('theme_location' => $menu_location, 'container' => '' ) );
do_action('rohas_header_navigation_after');
echo '</div><!-- / .wrapper --></nav><!-- /#main_navigation -->';
}
?>
<main>
<div class="wrapper">
<?php do_action('rohas_wrapper_top'); ?>