NeilCrosby / theme-the-code-train

WordPress Theme I use for TheCodeTrain.co.uk

This URL has Read+Write access

theme-the-code-train / sidebar.php
100644 44 lines (38 sloc) 1.081 kb
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
<div class="yui-b" id="sidebar">
<h1><?php bloginfo('name'); ?> Meta-Info</h1>
<ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
 
<?php
 
    $widget_setup = array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2>',
        'after_title' => '</h2>',
        );
    $options = $widget_setup;
 
$options['before_widget'] = sprintf($widget_setup['before_widget'], '', 'tct_widget_rss');
    tct_widget_rss($options);
$options['before_widget'] = sprintf($widget_setup['before_widget'], '', 'tct_widget_search');
    tct_widget_search($options);
 
    ?>
 
<li>
<h2>Pages:</h2>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
</li>
<li>
<h2>Categories:</h2>
<ul>
<?php wp_list_categories('title_li='); ?>
</ul>
</li>
<li>
<h2>Archives:</h2>
<ul>
<?php wp_get_archives('title_li='); ?>
</ul>
</li>
 
<?php endif; ?>
</ul>
</div>