blob: e5c4f62bffa25d4b9fad32f6a66f6ab2c89e7c85 (
plain)
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 containing the main widget area.
*
* @package understrap
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( ! is_active_sidebar( 'right-sidebar' ) ) {
return;
}
// when both sidebars turned on reduce col size to 3 from 4.
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
?>
<?php if ( 'both' === $sidebar_pos ) : ?>
<div class="col-md-2 widget-area" id="right-sidebar" role="complementary">
<?php else : ?>
<div class="col-lg-4 widget-area" id="right-sidebar" role="complementary">
<?php endif; ?>
<?php dynamic_sidebar( 'right-sidebar' ); ?>
</div><!-- #right-sidebar -->
|