]> scripts.mit.edu Git - autoinstallsdev/wordpress.git/blobdiff - wp-content/themes/twentytwelve/sidebar.php
Wordpress 3.5
[autoinstallsdev/wordpress.git] / wp-content / themes / twentytwelve / sidebar.php
diff --git a/wp-content/themes/twentytwelve/sidebar.php b/wp-content/themes/twentytwelve/sidebar.php
new file mode 100644 (file)
index 0000000..2bc4969
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+/**
+ * The sidebar containing the main widget area.
+ *
+ * If no active widgets in sidebar, let's hide it completely.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Twelve
+ * @since Twenty Twelve 1.0
+ */
+?>
+
+       <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
+               <div id="secondary" class="widget-area" role="complementary">
+                       <?php dynamic_sidebar( 'sidebar-1' ); ?>
+               </div><!-- #secondary -->
+       <?php endif; ?>
\ No newline at end of file