2016-11-05 12:34:48 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2016-11-05 12:35:33 +00:00
|
|
|
* The right sidebar containing the main widget area.
|
2016-11-05 12:34:48 +00:00
|
|
|
*
|
|
|
|
* @package understrap
|
|
|
|
*/
|
|
|
|
|
2018-09-10 21:59:04 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit; // Exit if accessed directly.
|
|
|
|
}
|
|
|
|
|
2016-11-05 12:34:48 +00:00
|
|
|
if ( ! is_active_sidebar( 'right-sidebar' ) ) {
|
|
|
|
return;
|
|
|
|
}
|
2016-11-05 12:35:33 +00:00
|
|
|
|
|
|
|
// when both sidebars turned on reduce col size to 3 from 4.
|
2016-11-05 12:34:48 +00:00
|
|
|
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
|
|
|
|
?>
|
|
|
|
|
2016-11-19 17:43:22 +00:00
|
|
|
<?php if ( 'both' === $sidebar_pos ) : ?>
|
2016-11-05 12:35:33 +00:00
|
|
|
<div class="col-md-3 widget-area" id="right-sidebar" role="complementary">
|
2016-11-19 17:43:22 +00:00
|
|
|
<?php else : ?>
|
2016-11-05 12:35:33 +00:00
|
|
|
<div class="col-md-4 widget-area" id="right-sidebar" role="complementary">
|
2016-11-05 12:34:48 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php dynamic_sidebar( 'right-sidebar' ); ?>
|
|
|
|
|
2018-06-12 03:32:20 +00:00
|
|
|
</div><!-- #right-sidebar -->
|