-
Notifications
You must be signed in to change notification settings - Fork 4
/
sidebar.php
54 lines (32 loc) · 916 Bytes
/
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
<?php
/**
* Sidebar template
*
* @package Auberge
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0
* @version 2.5.3
*/
/**
* Requirements check
*/
if ( ! is_active_sidebar( 'sidebar' ) ) {
return;
}
/**
* Output
*/
do_action( 'tha_sidebars_before' );
?>
<aside id="secondary" class="widget-area sidebar" aria-labelledby="sidebar-label"<?php echo wm_schema_org( 'WPSideBar' ); ?>>
<h2 class="screen-reader-text" id="sidebar-label"><?php echo esc_attr_x( 'Sidebar', 'Sidebar aria label', 'auberge' ); ?></h2>
<a href="#" id="toggle-mobile-sidebar" class="toggle-mobile-sidebar button" aria-controls="secondary" aria-expanded="false"><?php esc_html_e( 'Toggle sidebar', 'auberge' ); ?></a>
<?php
do_action( 'tha_sidebar_top' );
dynamic_sidebar( 'sidebar' );
do_action( 'tha_sidebar_bottom' );
?>
</aside>
<?php
do_action( 'tha_sidebars_after' );