forked from striebwj/canuck-cp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
58 lines (57 loc) · 2.56 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
<?php
/**
* Header Template Part File
*
* Template part file that contains the HTML document head and
* opening HTML body elements, as well as the site header.
*
* This file is called by certain primary template pages, and is the default.
*
* @package Canuck CP ClassicPress Theme
* @copyright Copyright (C) 2020 or later Kevin Archibald
* @license http://www.gnu.org/licenses/gpl-2.0.html
* @author Kevin Archibald <https://kevinsspace.ca/contact/>
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset=<?php bloginfo( 'charset' ); ?> >
<meta name="viewport" content="width=device-width, initial-scale=1" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );// phpcs:ignore
}
?>
<a class="skip-link screen-reader-text" href="#content-wrap"><?php esc_html_e( 'Skip to content', 'canuck-cp' ); ?></a>
<header id="main-header" class="header-wide-no-feature">
<?php get_template_part( '/template-parts/header-parts/header', 'top-strip' ); ?>
<div class="header-logo-menu-wide">
<div class="header-logo-menu-strip">
<div class="header-image-left" >
<?php canuckcp_show_logo(); ?>
</div>
<?php
if ( has_nav_menu( 'canuckcp_primary' ) ) {
?>
<span class="menu-1-toggle-access screen-reader-text"></span>
<button class="menu-1-toggle" aria-expanded="false" aria-label="<?php esc_attr_e( 'Top Menu Toggle', 'canuck-cp' ); ?>"><?php echo canuckcp_svg( 'align-justify', '20', '#7f7f7f' );// phpcs:ignore ?></button>
<?php
}
?>
<nav class="nav-container" role="navigation" aria-label="<?php esc_attr_e( 'Main Menu', 'canuck-cp' ); ?>">
<h2 class="screen-reader-text"><?php esc_html_e( 'Main Navigation', 'canuck-cp' ); ?></h2>
<?php canuckcp_header_menu(); ?>
</nav>
</div>
</div>
</header>
<button class="sidebar-a-toggle toggle-off" aria-expanded="false" aria-label="<?php esc_attr_e( 'Sidebar A Toggle', 'canuck-cp' ); ?>"><i class="font-icon caret-right"><?php echo canuckcp_svg( 'caret-right', '12', '#7f7f7f' );// phpcs:ignore ?></i></button>
<button class="sidebar-b-toggle toggle-off" aria-expanded="false" aria-label="<?php esc_attr_e( 'Sidebar B Toggle', 'canuck-cp' ); ?>"><i class="font-icon caret-left"><?php echo canuckcp_svg( 'caret-left', '12', '#7f7f7f' );// phpcs:ignore ?></i></button>
<a href="#main-header" class="scrolltotop"><i class="font-icon chevron-up"><?php echo canuckcp_svg( 'chevron-up', '12', '#ffffff' );// phpcs:ignore ?></i></a>
<div class="sticky-spacer"> </div>