-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-user.php
82 lines (74 loc) · 2.71 KB
/
header-user.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?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 MinnPost Largo
*/
?><!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head <?php do_action( 'add_head_attributes' ); ?>>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div class="m-ad-region m-ad-region-leaderboard">
<div class="o-wrapper">
<?php do_action( 'acm_tag', 'leaderboard' ); ?>
</div>
</div>
<header id="masthead" class="o-header">
<div class="o-wrapper o-wrapper-site-header<?php echo ( false !== get_query_var( 'grid', false ) ) ? ' o-wrapper-grid-overlay' : ''; ?>">
<?php get_template_part( 'template-parts/logo', 'top' ); ?>
<?php do_action( 'minnpost_membership_site_header', true ); ?>
</div>
<div class="o-wrapper o-wrapper-site-navigation">
<nav id="navigation-primary" class="m-main-navigation">
<button class="menu-toggle" aria-controls="primary-links" aria-expanded="false">
<i class="fas fa-bars"></i><span><?php esc_html_e( 'Menu', 'minnpost-largo' ); ?></span>
</button>
<?php
wp_nav_menu(
array(
'theme_location' => 'primary_links',
'menu_id' => 'primary-links',
'depth' => 1,
'container' => false,
'walker' => new Minnpost_Walker_Nav_Menu(),
'priority' => '20',
'items_wrap' => '<ul hidden id="%1$s" class="m-menu m-menu-%1$s">%3$s</ul>',
// 'item_classes' => 'values',
)
);
wp_nav_menu(
array(
'theme_location' => 'primary_actions',
'menu_id' => 'primary-actions',
// 'depth' => 1,
'container' => false,
'walker' => new Minnpost_Walker_Nav_Menu(),
'item_classes' => 'values',
'items_wrap' => '<ul id="%1$s" class="m-menu m-menu-%1$s">%3$s</ul>',
)
);
?>
</nav><!-- #navigation-primary -->
</div>
<?php minnpost_account_management_menu(); ?>
</header><!-- #masthead -->
<?php
$full_class = '';
if ( is_singular() ) {
$remove_sidebar = get_post_meta( get_the_ID(), '_mp_remove_right_sidebar', true );
if ( isset( $remove_sidebar ) && 'on' === $remove_sidebar ) {
$full_class = ' o-wrapper-content-full';
}
}
?>
<?php do_action( 'wp_message_inserter', 'header' ); ?>
<div id="content" class="o-wrapper o-wrapper-content<?php echo $full_class; ?><?php echo ( false !== get_query_var( 'grid', false ) ) ? ' o-wrapper-grid-overlay' : ''; ?>">