forked from bootscore/bootscore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
39 lines (31 loc) · 1.22 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
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Bootscore
* @version 5.3.3
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
if (!is_active_sidebar('sidebar-1')) {
return;
}
?>
<div class="<?= bootscore_sidebar_col_class(); ?>">
<aside id="secondary" class="widget-area">
<button class="<?= bootscore_sidebar_toggler_class(); ?>" type="button" data-bs-toggle="offcanvas" data-bs-target="#sidebar" aria-controls="sidebar">
<?php esc_html_e('Open side menu', 'bootscore'); ?> <i class="fa-solid fa-ellipsis-vertical"></i>
</button>
<div class="<?= bootscore_sidebar_offcanvas_class(); ?>" tabindex="-1" id="sidebar" aria-labelledby="sidebarLabel">
<div class="offcanvas-header">
<span class="h5 offcanvas-title" id="sidebarLabel"><?php esc_html_e('Sidebar', 'bootscore'); ?></span>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#sidebar" aria-label="Close"></button>
</div>
<div class="offcanvas-body flex-column">
<?php dynamic_sidebar('sidebar-1'); ?>
</div>
</div>
</aside><!-- #secondary -->
</div>