]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyseventeen/sidebar.php
WordPress 4.7-scripts
[autoinstalls/wordpress.git] / wp-content / themes / twentyseventeen / sidebar.php
diff --git a/wp-content/themes/twentyseventeen/sidebar.php b/wp-content/themes/twentyseventeen/sidebar.php
new file mode 100644 (file)
index 0000000..ae1761a
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+/**
+ * The sidebar containing the main widget area
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package WordPress
+ * @subpackage Twenty_Seventeen
+ * @since 1.0
+ * @version 1.0
+ */
+
+if ( ! is_active_sidebar( 'sidebar-1' ) ) {
+       return;
+}
+?>
+
+<aside id="secondary" class="widget-area" role="complementary">
+       <?php dynamic_sidebar( 'sidebar-1' ); ?>
+</aside><!-- #secondary -->