-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
42 lines (32 loc) · 1.04 KB
/
functions.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
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
function widget_helia_categories() {
?>
<li id="categories" class="minibox catwidget">
<h3>Categories</h3>
<ul><?php wp_list_categories('show_count=0&title_li='); ?></ul>
</li>
<?php }
function widget_helia_archives() {
?>
<li id="archives" class="minibox widget">
<h3>Archives</h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php }
if ( function_exists('register_sidebar_widget'))
register_sidebar_widget(__('Archives'), 'widget_helia_archives');
register_sidebar_widget(__('Categories'), 'widget_helia_categories');
?>
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(_('Recent Posts'), 'widget_recentposts');
register_sidebar_widget(_('My Latest Twit'), 'widget_mylatesttwit');
?>