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:
parent
c86599b85c
commit
2e9fd09468
|
@ -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>
|
||||
|
||||
|
|
|
@ -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<!--";
|
||||
|
|
|
@ -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>
|
||||
|
@ -67,6 +68,7 @@
|
|||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue