]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php
WordPress 4.7-scripts
[autoinstalls/wordpress.git] / wp-content / themes / twentyseventeen / template-parts / footer / footer-widgets.php
diff --git a/wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php b/wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php
new file mode 100644 (file)
index 0000000..ed6bb59
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Displays footer widgets if assigned
+ *
+ * @package WordPress
+ * @subpackage Twenty_Seventeen
+ * @since 1.0
+ * @version 1.0
+ */
+
+?>
+
+<?php
+if ( is_active_sidebar( 'sidebar-2' ) ||
+        is_active_sidebar( 'sidebar-3' ) ) :
+?>
+
+       <aside class="widget-area" role="complementary">
+               <?php
+               if ( is_active_sidebar( 'sidebar-2' ) ) { ?>
+                       <div class="widget-column footer-widget-1">
+                               <?php dynamic_sidebar( 'sidebar-2' ); ?>
+                       </div>
+               <?php }
+               if ( is_active_sidebar( 'sidebar-3' ) ) { ?>
+                       <div class="widget-column footer-widget-2">
+                               <?php dynamic_sidebar( 'sidebar-3' ); ?>
+                       </div>
+               <?php } ?>
+       </aside><!-- .widget-area -->
+
+<?php endif; ?>