-
Notifications
You must be signed in to change notification settings - Fork 7
/
sidebar.php
45 lines (27 loc) · 720 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
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Reykjavik
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
* @version 1.0.0
*/
// Requirements check
if ( ! is_active_sidebar( 'sidebar' ) ) {
return;
}
do_action( 'tha_sidebars_before' );
?>
<aside id="secondary" class="widget-area sidebar" aria-label="<?php echo esc_attr_x( 'Sidebar', 'Sidebar aria label', 'reykjavik' ); ?>">
<?php
do_action( 'tha_sidebar_top' );
dynamic_sidebar( 'sidebar' );
do_action( 'tha_sidebar_bottom' );
?>
</aside><!-- /#secondary -->
<?php
do_action( 'tha_sidebars_after' );