-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsidebar.php
77 lines (56 loc) · 1.77 KB
/
sidebar.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
<?php
/**
* Sidebar template
*
* @package Receptar
* @copyright 2015 WebMan - Oliver Juhas
*
* @since 1.0.0
* @version 1.8.4
*/
?>
<section id="secondary" class="secondary">
<div class="secondary-content">
<div class="secondary-content-container">
<?php do_action( 'wmhook_secondary_content_top' ); ?>
<nav id="site-navigation" class="main-navigation" aria-label="<?php printf( esc_attr__( '%s site navigation', 'receptar' ), get_bloginfo( 'name' ) ); ?>">
<?php
echo receptar_accessibility_skip_link( 'to_content' );
wp_nav_menu( apply_filters( 'wmhook_navigation_args', array(
'theme_location' => 'primary',
'container' => 'div',
'container_class' => 'menu-main-navigation',
'menu_class' => 'menu-main-navigation', // fallback for pagelist
'items_wrap' => '<ul>%3$s</ul>',
) ) );
?>
</nav>
<?php
if ( is_active_sidebar( 'sidebar' ) ) {
wmhook_sidebars_before();
?>
<aside class="widget-area sidebar">
<?php
wmhook_sidebar_top();
dynamic_sidebar( 'sidebar' );
wmhook_sidebar_bottom();
?>
</aside>
<?php
wmhook_sidebars_after();
}
?>
<?php do_action( 'wmhook_secondary_content_bottom' ); ?>
</div>
</div>
<div class="secondary-controls">
<?php do_action( 'wmhook_secondary_controls_top' ); ?>
<button id="menu-toggle" class="menu-toggle" aria-controls="secondary" aria-expanded="false">
<span class="hamburger-item"></span>
<span class="hamburger-item"></span>
<span class="hamburger-item"></span>
<span class="screen-reader-text"><?php echo esc_html_x( 'Menu', 'Mobile navigation toggle button title.', 'receptar' ); ?></span>
</button>
<?php do_action( 'wmhook_secondary_controls_bottom' ); ?>
</div>
</section>