WordPress.org

Make WordPress Core

Changeset 5151


Ignore:
Timestamp:
03/31/07 16:57:50 (10 years ago)
Author:
rob1n
Message:

Add widget support (if plugin is available) to default themes. Props Otto42. fixes #4057

Location:
trunk/wp-content/themes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/classic/sidebar.php

    r4762 r5151  
    44 
    55<ul> 
     6<?php   /* Widgetized sidebar, if you have the plugin installed. */ 
     7        if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> 
    68    <?php wp_list_pages('title_li=' . __('Pages:')); ?> 
    79    <?php wp_list_bookmarks('title_after=&title_before='); ?> 
     
    3335    </ul> 
    3436 </li> 
     37<?php endif; ?> 
    3538 
    3639</ul> 
  • trunk/wp-content/themes/default/functions.php

    r4990 r5151  
    11<?php 
     2if ( function_exists('register_sidebar') ) 
     3    register_sidebar(array( 
     4        'before_widget' => '<li id="%1$s" class="widget %2$s">', 
     5        'after_widget' => '</li>', 
     6        'before_title' => '<h2 class="widgettitle">', 
     7        'after_title' => '</h2>', 
     8    )); 
    29 
    310function kubrick_head() { 
  • trunk/wp-content/themes/default/sidebar.php

    r5127 r5151  
    11    <div id="sidebar"> 
    22        <ul> 
    3  
     3            <?php   /* Widgetized sidebar, if you have the plugin installed. */ 
     4                    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> 
    45            <li> 
    56                <?php include (TEMPLATEPATH . '/searchform.php'); ?> 
     
    6768                </li> 
    6869            <?php } ?> 
    69  
     70             
     71            <?php endif; ?> 
    7072        </ul> 
    7173    </div> 
Note: See TracChangeset for help on using the changeset viewer.