-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
57 lines (54 loc) · 1.64 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
<?php
declare(strict_types=1);
/**
* Project: wordpress-skeleton-theme
*
* @author Thilo Ratnaweera <thilo.ratnaweera@netbrothers.de>
* @copyright © 2024 NetBrothers GmbH.
* @license GPLv3
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title(); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header>
<?php
wp_nav_menu([
'container_id' => 'main-menu-container',
'container' => 'nav',
'menu_id' => 'main-menu',
'theme_location' => 'nb-main-menu',
// 'after' => '',
// 'before' => '',
// 'container_aria_label' => '',
// 'container_class' => '',
// 'depth' => '',
// 'echo' => '',
// 'fallback_cb' => '',
// 'item_spacing' => '',
// 'items_wrap' => '',
// 'link_after' => '',
// 'link_before' => '',
// 'menu_class' => 'main-menu',
// 'menu_id' => '',
// 'menu' => '',
// 'walker' => '',
]);
wp_nav_menu([
'container_id' => 'cta-menu-container',
'container' => 'nav',
'fallback_cb' => false, // show nothing if menu is not set by admin
'menu_id' => 'cta-menu',
'theme_location' => 'nb-cta-menu',
]);
?>
</header>