div class sidebar php Widgetized sidebar if you have the plugin instal

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<div class="sidebar">
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2><?php _e('Author', 'laschool'); ?></h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p><?php printf(__('You are currently browsing the archives for the %s category.', 'laschool'), single_cat_title('', false)); ?></p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'laschool'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'laschool'))); ?></p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'laschool'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'laschool'))); ?></p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'laschool'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'laschool'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
<?php } ?>
<?php }?>
<h2 class="first"><?php _e('Страницы', 'laschool'); ?></h2>
<ul>
<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
</ul>
<h2><?php _e('Поиск', 'laschool'); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php /* If this is the frontpage */ if ( !is_page() ) { ?>
<?php /* Plugin installed? */ if (function_exists('get_flickrRSS')) : ?>
<h2><?php _e('Photostream', 'laschool'); ?></h2>
<ul class="photostream">
<?php get_flickrRSS(); ?>
</ul>
<?php endif; ?>
<h2><?php _e('Категории', 'laschool'); ?></h2>
<ul>
<?php wp_list_categories('show_count=1&title_li='); ?>
</ul>
<?php } ?>
<?php /* If this is archives page */ if ( is_page('archives') ) { ?>
<h2><?php _e('Categories', 'laschool'); ?></h2>
<ul>
<?php wp_list_categories('show_count=1&title_li='); ?>
</ul>
<?php } ?>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<h2><?php _e('Ссылки', 'laschool'); ?></h2>
<ul>
<?php wp_list_bookmarks('categorize=0&title_li='); ?>
</ul>
<?php } ?>
<?php endif; ?>
</div>