-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathheader.php
More file actions
74 lines (60 loc) · 2.47 KB
/
header.php
File metadata and controls
74 lines (60 loc) · 2.47 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
66
67
68
69
70
71
72
73
74
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package podium
*/
use Podium\Config\Settings as settings;
$settings = new settings();
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="//gmpg.org/xfn/11">
<?php
wp_head();
get_template_part('template-parts/layouts/favicon', '');
?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<a class="skip-link show-for-sr" href="#content">
<?php esc_html_e('Skip to content', 'podium'); ?>
</a>
<header id="masthead" class="site-header" role="banner" data-sticky-container>
<div class="show-for-medium top-bar" data-sticky data-margin-top="0">
<div class="top-bar-right top-bar-menu">
<?php $settings->getMenu(new Top_Bar_Walker(), 'onCanvass'); // print menu (source config.php) ?>
</div>
<div class="top-bar-left text-left top-bar-logo">
<a href="<?php echo get_home_url(); ?>">
<span class="title-bar-title"><?php echo get_bloginfo('name'); ?></span>
</a>
</div>
</div>
<div class="hide-for-medium">
<div class="title-bar">
<div class="title-bar-right">
<a href="<?php echo get_home_url(); ?>">
<span class="title-bar-title"><?php echo get_bloginfo('name'); ?></span>
</a>
</div>
<div class="title-bar-left">
<button class="menu-icon" type="button" data-open="offCanvas"></button>
</div>
</div>
</div>
</header><!-- #masthead -->
<div class="off-canvas position-left" id="offCanvas" data-off-canvas>
<!-- Close button -->
<button class="close-button" aria-label="Close menu" type="button" data-close>
<span aria-hidden="true">×</span>
</button>
<!-- Menu -->
<?php $settings->getMenu(new Top_Bar_Walker(), 'offCanvas'); // print menu (source config.php) ?>
</div>
<div class="off-canvas-content" data-off-canvas-content>