-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
27 lines (26 loc) · 833 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
<?php
/**
* The sidebar containing the main widget area
*
* @category TacticalWP-Theme
* @package TacticalWP
* @author Tyler Kemme <dev@tylerkemme.com>
* @license MIT https://opensource.org/licenses/MIT
* @version 1.0.4
* @link https://github.com/tpkemme/tacticalwp-theme
* @since 1.0.0
*/
?>
<?php if (get_post_meta(get_the_ID(), 'twp_page_layout_sticky_sidebar', true) === 'sticky' ) : ?>
<div class="sticky-sidebar-container"><aside class="sidebar sticky-sidebar">
<?php else : ?>
<aside class="sidebar">
<?php endif; ?>
<?php do_action('twp_before_sidebar'); ?>
<?php dynamic_sidebar('sidebar-widgets'); ?>
<?php do_action('twp_after_sidebar'); ?>
<?php if (get_post_meta(get_the_ID(), 'twp_page_layout_sticky_sidebar', true) === 'sticky' ) : ?>
</aside></div>
<?php else : ?>
</aside>
<?php endif; ?>