Permalink
Browse files

Widget area redux.

  • Loading branch information...
1 parent cfacb21 commit 26cd039216b6e129e7897c0fbd89c8289fc59e62 Dougal Campbell committed Apr 22, 2011
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area above the header.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'above-header' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="above-header" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'above-header' ); ?>
+ </ul>
+ </div><!-- #above-header .widget-area -->
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area at the bottom of the index page.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'index-bottom' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="index-bottom" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'index-bottom' ); ?>
+ </ul>
+ </div><!-- #index-bottom .widget-area -->
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area between the 1st and 2nd post on the index page.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'index-insert' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="index-insert" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'index-insert' ); ?>
+ </ul>
+ </div><!-- #index-insert .widget-area -->
View
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area between the header and the posts on the index page.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'index-top' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="index-top" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'index-top' ); ?>
+ </ul>
+ </div><!-- #index-top .widget-area -->
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area below the content of a page.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'page-bottom' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="page-bottom" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'page-bottom' ); ?>
+ </ul>
+ </div><!-- #page-bottom .widget-area -->
View
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area above the content of a page.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'page-top' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="page-top" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'page-top' ); ?>
+ </ul>
+ </div><!-- #page-top .widget-area -->
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The secondary sidebar widget area.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'secondary-aside' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="secondary-aside" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'secondary-aside' ); ?>
+ </ul>
+ </div><!-- #secondary-aside .widget-area -->
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area at the bottom of a single post page.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'single-bottom' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="single-bottom" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'single-bottom' ); ?>
+ </ul>
+ </div><!-- #single-bottom .widget-area -->
@@ -0,0 +1,21 @@
+<?php
+/**
+ * The widget area between the header and content of a single post page.
+ *
+ * @package WordPress
+ * @subpackage Initializr
+ * @since Initializr 1.0
+ */
+?>
+<?php
+ if ( ! is_active_sidebar( 'single-top' ) )
+ return;
+ // If we get this far, we have widgets. Let's do this.
+?>
+
+ <div id="single-top" class="widget-area" role="complementary">
+
+ <ul class="xoxo">
+ <?php dynamic_sidebar( 'single-top' ); ?>
+ </ul>
+ </div><!-- #single-top .widget-area -->

0 comments on commit 26cd039

Please sign in to comment.