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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-03-31 16:57:50 +00:00
parent c86599b85c
commit 2e9fd09468
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>