-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
53 lines (48 loc) · 1.61 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package pine-alpha
*/
?>
<!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="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body
<?php
body_class();
if( get_theme_mod( 'pine_alpha_header_section_navigation_sticky', 0 ) == 1 ) { echo ' data-sticky="true"'; }
if( get_theme_mod( 'pine_alpha_footer_scrolltop_enable', 0 ) == 1 ) { echo ' data-scroll-top="true"'; }
?>
>
<a class="skip-link" href="#main"><?php esc_html_e( 'Skip to content', 'pine-alpha' ); ?></a>
<div class="js-canvi-navbar--right canvi-navbar animate--in">
<div class="canvi-navbar__inside">
<div class="canvi-title"><?php _e( 'Navigation', 'pine-alpha' ); ?></div>
<?php
wp_nav_menu( array(
'theme_location' => 'header',
'menu_id' => 'primary-menu-off-canvas',
'menu_class' => 'canvi-navigation'
) );
?>
<div class="canvi-navbar__widgets">
<?php dynamic_sidebar( 'canvi-1' ); ?>
</div>
</div>
</div>
<div class="js-canvi-content canvi-content">
<header class="site-header"
<?php if( get_theme_mod( 'pine_alpha_header_section_navigation_sticky', 0 ) == 1 ) : ?> data-sticky="true" <?php endif; ?>
>
<?php get_template_part( 'template-parts/header/main', 'section' ); ?>
</header>