Projects : mp-wp : mp-wp_svg-screenshots-and-errorreporting-r2

mp-wp/wp-content/themes/default/sidebar.php

Dir - Raw

1<?php
2/**
3 * @package WordPress
4 * @subpackage Default_Theme
5 */
6?>
7 <div id="sidebar">
8 <ul>
9 <?php /* Widgetized sidebar, if you have the plugin installed. */
10 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
11 <li>
12 <?php get_search_form(); ?>
13 </li>
14
15 <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
16 <li><h2>Author</h2>
17 <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
18 </li>
19 -->
20
21 <?php if ( is_404() || is_category() || is_day() || is_month() ||
22 is_year() || is_search() || is_paged() ) {
23 ?> <li>
24
25 <?php /* If this is a 404 page */ if (is_404()) { ?>
26 <?php /* If this is a category archive */ } elseif (is_category()) { ?>
27 <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
28
29 <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
30 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
31 for the day <?php the_time('l, F jS, Y'); ?>.</p>
32
33 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
34 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
35 for <?php the_time('F, Y'); ?>.</p>
36
37 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
38 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
39 for the year <?php the_time('Y'); ?>.</p>
40
41 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
42 <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
43 for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
44
45 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
46 <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
47
48 <?php } ?>
49
50 </li> <?php }?>
51
52 <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
53
54 <li><h2>Archives</h2>
55 <ul>
56 <?php wp_get_archives('type=monthly'); ?>
57 </ul>
58 </li>
59
60 <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
61
62 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
63 <?php wp_list_bookmarks(); ?>
64
65 <li><h2>Meta</h2>
66 <ul>
67 <?php wp_register(); ?>
68 <li><?php wp_loginout(); ?></li>
69 <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
70 <?php wp_meta(); ?>
71 </ul>
72 </li>
73 <?php } ?>
74
75 <?php endif; ?>
76 </ul>
77 </div>
78