forked from baomihuahua/lolimeow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
33 lines (33 loc) · 1.51 KB
/
sidebar.php
File metadata and controls
33 lines (33 loc) · 1.51 KB
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
<?php
/**
* @link https://www.boxmoe.com
* @package lolimeow
*/
//boxmoe.com===安全设置=阻止直接访问主题文件
if(!defined('ABSPATH')){echo'Look your sister';exit;}
?>
<?php if(get_boxmoe('boxmoe_blog_layout')=='two'): ?>
<div class="col-lg-4 blog-sidebar">
<div class="position-sticky top">
<div class="offcanvas-lg offcanvas-end" id="blog-sidebar" tabindex="-1" aria-labelledby="blog-sidebar">
<div class="offcanvas-header">
<h5 class="offcanvas-title h4" id="blog-sidebar">
<?php echo boxmoe_logo(); ?></h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#blog-sidebar"></button>
</div>
<div class="offcanvas-body flex-column">
<?php
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_site_sidebar')) : endif;
if (is_single()){
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_post_sidebar')) : endif;
}else if (is_page()){
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_page_sidebar')) : endif;
}else if (is_home()){
if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_home_sidebar')) : endif;
}
?>
</div>
</div>
</div>
</div>
<?php endif; ?>