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

git-svn-id: https://develop.svn.wordpress.org/trunk@5151 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-03-31 16:57:50 +00:00
parent a059392772
commit 158614b4aa
3 changed files with 14 additions and 2 deletions

View File

@ -3,6 +3,8 @@
<div id="menu">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<?php wp_list_pages('title_li=' . __('Pages:')); ?>
<?php wp_list_bookmarks('title_after=&title_before='); ?>
<?php wp_list_categories('title_li=' . __('Categories:')); ?>
@ -32,6 +34,7 @@
<?php wp_meta(); ?>
</ul>
</li>
<?php endif; ?>
</ul>

View File

@ -1,4 +1,11 @@
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
function kubrick_head() {
$head = "<style type='text/css'>\n<!--";

View File

@ -1,6 +1,7 @@
<div id="sidebar">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<li>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
@ -66,7 +67,8 @@
</ul>
</li>
<?php } ?>
<?php endif; ?>
</ul>
</div>