summaryrefslogtreecommitdiff
path: root/sidebar-templates/sidebar-left.php
diff options
context:
space:
mode:
authorMax2018-10-15 23:46:42 +0200
committerMax2018-10-15 23:46:42 +0200
commit00c9709fd9763542e848f6278db8ba26af5c9886 (patch)
tree92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /sidebar-templates/sidebar-left.php
downloadfuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz
Initial commit.
Diffstat (limited to 'sidebar-templates/sidebar-left.php')
-rw-r--r--sidebar-templates/sidebar-left.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/sidebar-templates/sidebar-left.php b/sidebar-templates/sidebar-left.php
new file mode 100644
index 0000000..fb50b9a
--- /dev/null
+++ b/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 -->