PHP Cross Reference of WordPress Subversion HEAD |
| [ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] |
[Summary view] [Print] [Text view]
1 <div id="sidebar"> 2 <ul> 3 <?php /* Widgetized sidebar, if you have the plugin installed. */ 4 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> 5 <li> 6 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 7 </li> 8 9 <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. 10 <li><h2>Author</h2> 11 <p>A little something about you, the author. Nothing lengthy, just an overview.</p> 12 </li> 13 --> 14 15 <?php if ( is_404() || is_category() || is_day() || is_month() || 16 is_year() || is_search() || is_paged() ) { 17 ?> <li> 18 19 <?php /* If this is a 404 page */ if (is_404()) { ?> 20 <?php /* If this is a category archive */ } elseif (is_category()) { ?> 21 <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> 22 23 <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> 24 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 25 for the day <?php the_time('l, F jS, Y'); ?>.</p> 26 27 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 28 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 29 for <?php the_time('F, Y'); ?>.</p> 30 31 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 32 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 33 for the year <?php the_time('Y'); ?>.</p> 34 35 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 36 <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 37 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> 38 39 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 40 <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p> 41 42 <?php } ?> 43 44 </li> <?php }?> 45 46 <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> 47 48 <li><h2>Archives</h2> 49 <ul> 50 <?php wp_get_archives('type=monthly'); ?> 51 </ul> 52 </li> 53 54 <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> 55 56 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 57 <?php wp_list_bookmarks(); ?> 58 59 <li><h2>Meta</h2> 60 <ul> 61 <?php wp_register(); ?> 62 <li><?php wp_loginout(); ?></li> 63 <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> 64 <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> 65 <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li> 66 <?php wp_meta(); ?> 67 </ul> 68 </li> 69 <?php } ?> 70 71 <?php endif; ?> 72 </ul> 73 </div> 74
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs | Cross-referenced by PHPXref 0.6 and RedAlt |