Skip to main content

Ivan Teoh

Something personal yet public

55-sidebar.php

(Source)

<?php
/**
 * @package WordPress
 * @subpackage Your_Theme
 */
?>
<!-- begin sidebar -->
<ul>
    <?php   /* Widgetized sidebar, if you have the plugin installed. */
        if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

    <li>
        <label for="s"><?php _e('Search'); ?></label>
        <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
            <input type="text" name="s" id="s" size="15" /><br />
            <input type="submit" value="<?php _e('Search'); ?>" />
        </form>
    </li>

    <?php wp_list_pages('title_li=' . __('Pages')); ?>

    <li><?php _e('Archives'); ?>
        <ul>
            <?php wp_get_archives('type=monthly'); ?>
        </ul>
    </li>

    <?php wp_list_categories('title_li=' . __('Categories')); ?>

    <?php wp_list_bookmarks('title_after=&title_before='); ?>

    <li><?php _e('Meta'); ?>
        <ul>
            <?php wp_register(); ?>
            <li><?php wp_loginout(); ?></li>
            <li><a title="<?php _e('Syndicate this blog using RSS'); ?>"
              href="<?php bloginfo('rss2_url'); ?>"><?php _e('Blog <abbr
              title="Really Simple Syndication">RSS</abbr> Feed'); ?></a></li>
            <li><a title="<?php _e('The latest comments to all posts in RSS');
              ?>" href="<?php bloginfo('comments_rss2_url'); ?>">
              <?php _e('Comments <abbr title="Really Simple Syndication">RSS
              </abbr> Feed'); ?></a></li>
            <?php wp_meta(); ?>
        </ul>
    </li>
    <?php endif; ?>
</ul>
<!-- end sidebar -->