-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathheader.php
65 lines (45 loc) · 1.74 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="site-content">
*
* Some stuff are added to the head via wp_head() from functions.php including title tag, fonts, style.css, scripts and more
*
* @package ignition
* @since 1.0
* @version 1.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg dom-loading front-end">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<?php
$app_menu = ign_get_config("mobile_menu_type", 'regular_menu'); //accepts svg icon or 'app' which renders the special = to x
?>
<body <?php body_class( $app_menu ); ?>>
<a class="skip-link screen-reader-text" href="#site-content-skip">
<?php _e( 'Skip to content', 'ignition' ); ?>
</a>
<div class="site-container" id="site-container">
<?php
$menu_icon = ign_get_config( 'menu_icon', 'icon-regular' );
if($menu_icon == 'icon-regular'){
$menu_icon = "<span class='$menu_icon'></span>";
}
?>
<div id="panel-left"></div>
<div id="panel-right"></div>
<button aria-haspopup="true" tabindex="1" id="panel-left-toggle" aria-label="Toggle Left Panel" class="panel-left-toggle" data-toggle="menu-open" data-target="body">
<span class="navigation-menu-icon"><?php echo $menu_icon; ?></span>
<span class="screen-reader-text">Open left Panel</span>
</button>
<div id="page" class="site">
<?php locate_template('src/parts/global/site-top.php', true, true); ?>
<a id="site-content-skip" class="screen-reader-skip">-</a>
<div id="site-content" class="site-content">