-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathheader.php
More file actions
65 lines (62 loc) · 1.68 KB
/
header.php
File metadata and controls
65 lines (62 loc) · 1.68 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
<?php
if (!defined('WPINC')) {
die;
}
/*
* Header file for the theme.
*/
?>
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
wp_body_open();
?>
<div id="hidden_header_anchor"></div>
<header class="<?php if (get_field('header_promo_activation', 'option') ) { echo "with-promo-banner"; }?>" id="header"><?php //class with-promo-banner ?>
<a href="#main" class="skip"><?php echo __('Skip to main content','nextcloud'); ?></a>
<?php
get_template_part("inc/header-promo-banner");
?>
<div class="container" id="">
<div class="row">
<div class="col-12">
<div class="header-holder">
<div class="logo-holder">
<?php
$custom_header_logo_svg = get_field('custom_header_logo_svg', 'option');
if($custom_header_logo_svg){
echo $custom_header_logo_svg;
}else {
if (get_custom_logo()) {
the_custom_logo();
}
}
?>
</div>
<div class="phone-menu">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<div class="header-items">
<?php
wp_nav_menu(array(
'theme_location' => 'primary',
'menu' => 'primary-menu',
'menu_class' => 'primary-menu',
'container_id' => 'menu-primary-menu-container',
));
?>
</div>
</div>
</div>
</div>
</div>
</header>