forked from bonfirelab/bearded
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu-primary.php
More file actions
27 lines (23 loc) · 754 Bytes
/
menu-primary.php
File metadata and controls
27 lines (23 loc) · 754 Bytes
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
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu(
array(
'theme_location' => 'primary',
'container' => 'nav',
'container_id' => 'menu-primary',
'container_class' => 'menu',
'menu_id' => 'menu-primary-items',
'menu_class' => 'menu-items',
'items_wrap' => '<a href="#menu-items" id="menu-toggle" title="' . esc_attr__( 'Navigation', 'bearded' ) . '"></a><ul id="%1$s" class="%2$s">%3$s</ul>',
'walker' => new Bearded_Custom_Menu_Walker()
)
);
} else {
echo '<nav class="menu" id="menu-primary">';
echo '<a href="#menu-items" id="menu-toggle" title="' . esc_attr__( 'Navigation', 'bearded' ) . '"></a>';
wp_page_menu(
array(
'menu_class' => 'menu-items',
)
);
echo '</nav>';
} ?>