source: trunk/www.guidonia.net/wp/wp-content/themes/fusion/sidebar.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 15 years ago
File size: 4.0 KB
Line 
1<?php /* Fusion/digitalnature */
2 $options = get_option('fusion_options');
3?>
4<!-- sidebar -->
5<div id="sidebar">
6 <!-- sidebar 1st container -->
7 <div id="sidebar-wrap1">
8 <!-- sidebar 2nd container -->
9 <div id="sidebar-wrap2">
10 <ul id="sidelist">
11 <?php if(!$options['hidesearch']) { ?>
12 <li>
13 <?php get_search_form(); ?>
14 </li>
15 <?php } ?>
16 <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ) { ?>
17 <li class="infotext">
18 <?php /* If this is a 404 page */ if (is_404()) { ?>
19 <?php /* If this is a category archive */ } elseif (is_category()) { ?>
20 <p><?php printf(__('You are currently browsing the archives for the %s category.', 'fusion'), single_cat_title('',false)); ?></p>
21
22 <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
23 <p><?php printf(__('You are currently browsing the archives for %s','fusion'), get_the_time(__('l, F jS, Y','fusion'))); ?></p>
24
25 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
26 <p><?php printf(__('You are currently browsing the archives for %s','fusion'), get_the_time(__('F, Y','fusion'))); ?></p>
27
28 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
29 <p><?php printf(__('You are currently browsing the archives for the year %s','fusion'), get_the_time(__('Y','fusion'))); ?></p>
30
31 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
32 <p class="error"><?php printf(__('You have searched the archives for %s.','fusion'), '<strong>'.get_search_query().'</strong>'); ?></p>
33
34 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
35 <p><?php _e('You are currently browsing the archives.','fusion'); ?></p>
36 <?php } ?>
37 </li>
38 <?php }?>
39
40 <?php if(!$options['hidecategories']) { ?>
41 <li>
42 <!-- sidebar menu (categories) -->
43 <ul class="nav">
44 <?php if($options['nojquery']) {
45 echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2><span>$3</span></a>', wp_list_categories('show_count=0&echo=0&title_li='));
46 } else {
47 echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a> \(\<a ([^>]*) ([^>]*)>(.*?)\<\/a>\)@i', '<li $1><a$2><span>$3</span></a><a class="rss tip" $4></a>', wp_list_categories('show_count=0&echo=0&title_li=&feed=XML')); } ?>
48
49 <?php if (function_exists('xili_language_list')) { xili_language_list(); } ?>
50
51 </ul>
52 <!-- /sidebar menu -->
53 </li>
54 <?php } ?>
55
56
57 <?php /* Widgetized sidebar, if you have the plugin installed. */
58 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
59 <?php wp_list_bookmarks(); ?>
60 <li class="box-wrap" id="box-archives">
61 <div class="box">
62 <h2 class="title"><?php _e('Archives','fusion'); ?></h2>
63 <div class="inside">
64 <ul>
65 <?php wp_get_archives('type=monthly&show_post_count=1'); ?>
66 </ul>
67 </div>
68 </div>
69 </li>
70
71 <li class="box-wrap" id="box-meta">
72 <div class="box">
73 <h2 class="title"><?php _e('Meta','fusion'); ?></h2>
74 <div class="inside">
75 <ul>
76 <?php wp_register(); ?>
77 <li><?php wp_loginout(); ?></li>
78 <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>
79 <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
80 <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
81 <?php wp_meta(); ?>
82 </ul>
83 </div>
84 </div>
85 </li>
86 <?php endif; ?>
87 </ul>
88 </div>
89 <!-- /sidebar 2nd container -->
90 </div>
91 <!-- /sidebar 1st container -->
92</div>
93<!-- /sidebar -->
Note: See TracBrowser for help on using the repository browser.