Changeset 14708 for trunk/wp-content/themes/twentyten/sidebar.php
- Timestamp:
- 05/17/2010 06:36:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/sidebar.php
r14707 r14708 5 5 * @package WordPress 6 6 * @subpackage Twenty_Ten 7 * @since 3.0.07 * @since Twenty Ten 1.0 8 8 */ 9 9 ?> … … 11 11 <div id="primary" class="widget-area" role="complementary"> 12 12 <ul class="xoxo"> 13 <?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area ?> 13 14 <?php 15 /* When we call the dynamic_sidebar() function, it'll spit out 16 * the widgets for that widget area. If it instead returns false, 17 * then the sidebar simply doesn't exist, so we'll hard-code in 18 * some default sidebar stuff just in case. 19 */ 20 if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?> 21 14 22 <li id="search" class="widget-container widget_search"> 15 23 <?php get_search_form(); ?> … … 31 39 </ul> 32 40 </li> 33 <?php endif; // end primary widget area ?> 41 42 <?php endif; // end primary widget area ?> 34 43 </ul> 35 44 </div><!-- #primary .widget-area --> 36 45 37 <?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : // Nothing here by default and design ?> 46 <?php 47 // A second sidebar for widgets, just because. 48 if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?> 49 38 50 <div id="secondary" class="widget-area" role="complementary"> 39 51 <ul class="xoxo"> … … 41 53 </ul> 42 54 </div><!-- #secondary .widget-area --> 55 43 56 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.