-
Notifications
You must be signed in to change notification settings - Fork 4
/
sidebar-header.php
45 lines (41 loc) · 935 Bytes
/
sidebar-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
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Albatross
*/
if (!is_active_sidebar('sidebar-1') &&
!is_active_sidebar('sidebar-2') &&
!is_active_sidebar('sidebar-3')) {
return;
}
?>
<div class="header-sidebar-wrapper">
<div id="header-sidebar" class="header-sidebar">
<?php
if (is_active_sidebar('sidebar-1')) :
?>
<div class="widget-area">
<?php dynamic_sidebar('sidebar-1'); ?>
</div>
<?php
endif;
if (is_active_sidebar('sidebar-2')) :
?>
<div class="widget-area">
<?php dynamic_sidebar('sidebar-2'); ?>
</div>
<?php
endif;
if (is_active_sidebar('sidebar-3')) :
?>
<div class="widget-area">
<?php dynamic_sidebar('sidebar-3'); ?>
</div>
<?php
endif;
?>
</div><!-- #secondary -->
</div>