aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-content/themes/twentysixteen/sidebar-content-bottom.php
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/wordpress/wp-content/themes/twentysixteen/sidebar-content-bottom.php')
-rw-r--r--srcs/wordpress/wp-content/themes/twentysixteen/sidebar-content-bottom.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/sidebar-content-bottom.php b/srcs/wordpress/wp-content/themes/twentysixteen/sidebar-content-bottom.php
new file mode 100644
index 0000000..d561eb7
--- /dev/null
+++ b/srcs/wordpress/wp-content/themes/twentysixteen/sidebar-content-bottom.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * The template for the content bottom widget areas on posts and pages
+ *
+ * @package WordPress
+ * @subpackage Twenty_Sixteen
+ * @since Twenty Sixteen 1.0
+ */
+
+if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
+ return;
+}
+
+// If we get this far, we have widgets. Let's do this.
+?>
+<aside id="content-bottom-widgets" class="content-bottom-widgets" role="complementary">
+ <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
+ <div class="widget-area">
+ <?php dynamic_sidebar( 'sidebar-2' ); ?>
+ </div><!-- .widget-area -->
+ <?php endif; ?>
+
+ <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
+ <div class="widget-area">
+ <?php dynamic_sidebar( 'sidebar-3' ); ?>
+ </div><!-- .widget-area -->
+ <?php endif; ?>
+</aside><!-- .content-bottom-widgets -->