Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved topic sidebars

  • Loading branch information...
commit 2e0ff974b962319899dc01d654a482757c265674 1 parent afdbeca
@eyeseast eyeseast authored
Showing with 48 additions and 0 deletions.
  1. +24 −0 sidebar-category.php
  2. +24 −0 sidebar-topic.php
View
24 sidebar-category.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * category sidebar
+ */
+?>
+
+<div id="category-sidebar" class="widget-area" role="complementary">
+<ul class="widget-list">
+
+<?php
+ /* When we call the dynamic_sidebar() function, it'll spit out
+ * the widgets for that widget area. If it instead returns false,
+ * then the sidebar simply doesn't exist, so we'll hard-code in
+ * some default sidebar stuff just in case.
+ */
+ if ( ! dynamic_sidebar( 'category' ) ) : ?>
+
+ <!-- show if sidebar is empty -->
+
+<?php endif; // end primary widget area ?>
+ </ul>
+ </div><!-- #primary .widget-area -->
+
+
View
24 sidebar-topic.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * topic sidebar
+ */
+?>
+
+<div id="category-sidebar" class="widget-area" role="complementary">
+<ul class="widget-list">
+
+<?php
+ /* When we call the dynamic_sidebar() function, it'll spit out
+ * the widgets for that widget area. If it instead returns false,
+ * then the sidebar simply doesn't exist, so we'll hard-code in
+ * some default sidebar stuff just in case.
+ */
+ if ( ! dynamic_sidebar( 'topic' ) ) : ?>
+
+ <!-- show if sidebar is empty -->
+
+<?php endif; // end primary widget area ?>
+ </ul>
+ </div><!-- #primary .widget-area -->
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.