-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsidebar-right.php
More file actions
27 lines (24 loc) · 892 Bytes
/
sidebar-right.php
File metadata and controls
27 lines (24 loc) · 892 Bytes
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 right sidebar.
*
* @package bootstrap-basic4
*
* phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact, Generic.WhiteSpace.ScopeIndent.Incorrect
*/
global $bootstrap_basic4_sidebar_right_size;
if (empty($bootstrap_basic4_sidebar_right_size) || !is_numeric($bootstrap_basic4_sidebar_right_size)) {
$bootstrap_basic4_sidebar_right_size = 3;
}
if (is_active_sidebar('sidebar-right')) {
?>
<div id="sidebar-right" class="col-md-<?php echo esc_attr($bootstrap_basic4_sidebar_right_size); ?>">
<?php
// use WordPress core hook.
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
do_action('before_sidebar');
?>
<?php dynamic_sidebar('sidebar-right'); ?>
</div>
<?php
}