forked from bootscore/bootscore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
35 lines (30 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
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Bootscore
*
* @version 5.2.0.0-beta1
*/
if (!is_active_sidebar('sidebar-1')) {
return;
}
?>
<div class="col-md-4 col-xxl-3 order-first order-md-last">
<aside id="secondary" class="widget-area">
<button class="btn btn-outline-primary w-100 mb-4 d-flex d-md-none justify-content-between align-items-center" 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="offcanvas-md offcanvas-end" tabindex="-1" id="sidebar" aria-labelledby="sidebarLabel">
<div class="offcanvas-header bg-light">
<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>