/
sidebar.php
executable file
·62 lines (45 loc) · 1.27 KB
/
sidebar.php
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
<div id="sidebar">
<?php or_above_sidebar(); ?>
<?php if ( is_active_sidebar( 'sidebar-top' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-top' ); ?>
<?php else : ?>
<div class="widget">
<h3><?php _e('Search'); ?></h3>
<?php get_search_form(); ?>
</div>
<div class="widget">
<h3><?php _e('Pages'); ?></h3>
<ul>
<?php wp_list_pages('title_li=' ); ?>
</ul>
</div>
<div class="widget">
<h3><?php _e('Archives'); ?></h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
<div class="widget">
<h3><?php _e('Categories'); ?></h3>
<ul>
<?php wp_list_categories('show_count=1&title_li='); ?>
</ul>
</div>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<div class="widget">
<?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3>'); ?>
</div>
<div class="widget">
<h3><?php _e('Meta'); ?></h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</div>
<?php } ?>
<?php endif; ?>
<?php or_between_sidebar(); ?>
<?php dynamic_sidebar( 'sidebar-bottom' ); ?>
<?php or_below_sidebar(); ?>
</div>