This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/sidebar-right.php

23 lines
566 B
PHP
Raw Normal View History

<?php
/**
* The sidebar containing the main widget area.
*
* @package understrap
*/
if ( ! is_active_sidebar( 'right-sidebar' ) ) {
return;
}
// when both sidebars turned one, reduce col size to 3 from 4.
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
?>
<?php if ( 'both' === $sidebar_pos ): ?>
<div class="col-md-3 widget-area" id="secondary" role="complementary">
<?php else: ?>
<div class="col-md-4 widget-area" id="secondary" role="complementary">
<?php endif; ?>
<?php dynamic_sidebar( 'right-sidebar' ); ?>
</div><!-- #secondary -->