sidebar.php
B0e8f3a3c94a3419d5d333f48377cbc3?s=35

Getting started: You can edit the contents of a line by clicking on it. When moving the mouse over a line a box with additional actions such as adding comments appears. »
1
sidebar.php
EditColor
2

EditColor
3
 <div id="sidebar">
EditColor
4
  <ul>
EditColor
5
   <?php  /* Widgetized sidebar, if you have the plugin installed. */支持中文
EditColor
6
     if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>//remove some words
EditColor
7
   <li>
EditColor
8
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
EditColor
9
   </li>
EditColor
10

EditColor
11
   <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
EditColor
12
   <li><h2><?php _e('Author', 'kubrick'); ?></h2>
EditColor
13
   <p>A little something about you, the author. Nothing lengthy, just an overview.</p>//add more
EditColor
14
   </li>
EditColor
15
   -->
EditColor
16

EditColor
17
   <?php if ( is_404() || is_category() || is_day() || is_month() ||
EditColor
18
      is_year() || is_search() || is_paged() ) {
EditColor
19
   ?> <li>
EditColor
20

EditColor
21
   <?php /* If this is a 404 page */ if (is_404()) { ?>
EditColor
22
   <?php /* If this is a category archive */ } elseif (is_category()) { ?>
EditColor
23
   <p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p>
EditColor
24

EditColor
25
   <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
EditColor
26
   <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>
EditColor
27

EditColor
28
   <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
EditColor
29
   <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
EditColor
30

EditColor
31
   <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
EditColor
32
   <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
EditColor
33

EditColor
34
   <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
EditColor
35
   <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>
EditColor
36

EditColor
37
   <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
EditColor
38
   <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
EditColor
39

EditColor
40
   <?php } ?>
EditColor
PublishedRss
Lines: 72
Created: about 1 year ago by hugowg
Last edited: about 1 year ago