diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-27 12:23:12 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-27 12:23:12 -0500 |
commit | 8e2064bbd878ac93438a6616cbf4af21a0f41edd (patch) | |
tree | 113cd09cd2dd11d02455d575037dd1f32bb4aaea /sidebar.php |
I'm not planning on maintaining this, I just figured I'd put it in git in
case I ever want it.
This has already been cleaned up a lot.
I might one day do the work to make it a proper child theme (it was forked
too many versions ago for it to be clean), but probably not.
Diffstat (limited to 'sidebar.php')
-rw-r--r-- | sidebar.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..f44aabe --- /dev/null +++ b/sidebar.php @@ -0,0 +1,35 @@ +<?php
+/**
+ * The Sidebar containing the primary and secondary widget areas.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Ten
+ * @since Twenty Ten 1.0
+ */
+?>
+
+ <div class="sidebar widget-area">
+ <ul class="xoxo">
+<?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( 'RightSide' ) ) { ?>
+ <p>Default Sidebar</p>
+ <?php } ?>
+ </ul>
+ </div><!-- .sidebar -->
+
+<?php
+ // A second sidebar for widgets, just because.
+ if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
+
+ <div class="sidebar-secondary widget-area">
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
+ </ul>
+ </div><!-- #secondary .widget-area -->
+
+<?php endif; ?>
|