diff options
Diffstat (limited to 'dist/sidebar-templates/sidebar-left.php')
| -rw-r--r-- | dist/sidebar-templates/sidebar-left.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dist/sidebar-templates/sidebar-left.php b/dist/sidebar-templates/sidebar-left.php new file mode 100644 index 0000000..fb50b9a --- /dev/null +++ b/dist/sidebar-templates/sidebar-left.php @@ -0,0 +1,27 @@ +<?php +/** + * The sidebar containing the main widget area. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +if ( ! is_active_sidebar( 'left-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-3 widget-area" id="left-sidebar" role="complementary"> + <?php else : ?> +<div class="col-md-4 widget-area" id="left-sidebar" role="complementary"> + <?php endif; ?> +<?php dynamic_sidebar( 'left-sidebar' ); ?> + +</div><!-- #left-sidebar --> |
