-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathheader.php
34 lines (30 loc) · 1.08 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
<!DOCTYPE html>
<html class="no-js no-js-animation" <?php language_attributes(); ?>>
<head>
<script type="text/javascript">
//<![CDATA[
(function(){
function replaceHtmlClass(regexp, str) {
var h = document.documentElement;
h.className = h.className.replace(regexp, str);
}
replaceHtmlClass(/no-js/, 'js');
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
replaceHtmlClass(/no-js-animation/, 'js-animation');
}
})();
//]]>
</script>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php
get_template_part( 'components/parts/common/skip-links' );
get_template_part( 'components/parts/common/header' );
?>
<main id="content" role="main" tabindex="-1" aria-label="<?php esc_attr_e( 'Main content', 'beapi-frontend-framework' ); ?>">