Make WordPress Core


Ignore:
Timestamp:
01/04/2005 05:20:06 AM (22 years ago)
Author:
rboren
Message:

Make Kubrick the new default. The old default is available as the Classic theme.

File:
1 edited

Legend:

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

    r2032 r2040  
     1        <div id="sidebar">
     2                <ul>
     3                       
     4                        <li>
     5                                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
     6                        </li>
    17
    2 <!-- begin sidebar -->
    3 <div id="menu">
     8                        <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
     9                        <li><h2><?php _e('Author'); ?></h2>
     10                        <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
     11                        </li>
     12                        -->
    413
    5 <ul>
    6         <?php wp_list_pages(); ?>
    7         <?php get_links_list(); ?>
    8  <li id="categories"><?php _e('Categories:'); ?>
    9         <ul>
    10         <?php wp_list_cats(); ?>
    11         </ul>
    12  </li>
    13  <li id="search">
    14    <label for="s"><?php _e('Search:'); ?></label>       
    15    <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    16         <div>
    17                 <input type="text" name="s" id="s" size="15" /><br />
    18                 <input type="submit" name="submit" value="<?php _e('Search'); ?>" />
     14                        <li>
     15                        <?php /* If this is a category archive */ if (is_category()) { ?>                               
     16                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
     17                        for the '<?php echo single_cat_title(); ?>' category.</p>
     18                       
     19                        <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
     20                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
     21                        for the day <?php the_time('l, F jS, Y'); ?>.</p>
     22                       
     23                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
     24                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
     25                        for <?php the_time('F, Y'); ?>.</p>
     26
     27      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
     28                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
     29                        for the year <?php the_time('Y'); ?>.</p>
     30                       
     31                 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
     32                        <p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
     33                        for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
     34
     35                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
     36                        <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
     37
     38                        <?php } ?>
     39                        </li>
     40                       
     41               
     42               
     43                       
     44                        <!-- The Calendar is disabled per default. Uncomment if you want to use it.
     45                        <li><h2><?php _e('Calendar'); ?></h2>
     46                                <?php get_calendar(); ?>
     47                        </li>
     48                        -->
     49
     50                        <li><h2><?php _e('Archives'); ?></h2>
     51                                <ul>
     52                                <?php wp_get_archives('type=monthly'); ?>
     53                                </ul>
     54                        </li>
     55
     56                        <li><h2><?php _e('Categories'); ?></h2>
     57                                <ul>
     58                                <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
     59                                </ul>
     60                        </li>
     61
     62                        <?php /* If this is the frontpage */ if (is_home()) { ?>                               
     63                                <li><h2><?php _e('Links'); ?></h2>
     64                                        <ul>
     65                                                <?php get_links('-1', '<li>', '</li>', '<br />'); ?>
     66                                        </ul>
     67                                </li>
     68                               
     69                                <li><h2><?php _e('Meta'); ?></h2>
     70                                <ul>
     71                                        <li><?php wp_register(); ?></li>
     72                                        <li><?php wp_loginout(); ?></li>
     73                                        <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
     74                                        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
     75                                        <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WordPress</abbr></a></li>
     76                                        <?php wp_meta(); ?>
     77                                </ul>
     78                                </li>
     79                        <?php } ?>
     80                       
     81                </ul>
    1982        </div>
    20         </form>
    21  </li>
    22  <li id="archives"><?php _e('Archives:'); ?>
    23         <ul>
    24          <?php wp_get_archives('type=monthly'); ?>
    25         </ul>
    26  </li>
    27  <li id="meta"><?php _e('Meta:'); ?>
    28         <ul>
    29                 <li><?php wp_register(); ?></li>
    30                 <li><?php wp_loginout(); ?></li>
    31                 <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    32                 <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    33                 <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
    34                 <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    35                 <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
    36                 <?php wp_meta(); ?>
    37         </ul>
    38  </li>
    3983
    40 </ul>
    41 
    42 </div>
    43 <!-- end sidebar -->
Note: See TracChangeset for help on using the changeset viewer.