~sinzui/+junk/essence-wp

« back to all changes in this revision

Viewing changes to themes/samsara/sidebar.php

  • Committer: Curtis Hovey
  • Date: 2013-02-10 18:59:15 UTC
  • Revision ID: sinzui.is@verizon.net-20130210185915-1rw2uckbmtxw2k5w
RemovedĀ oldĀ theme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
    global $section; ?>
3
 
 
4
 
<?php if (is_home()) : ?>
5
 
    <h2>About the Site</h2>
6
 
 
7
 
    <ul>
8
 
        <li><?php bloginfo('description'); ?></li>
9
 
    </ul>
10
 
<?php endif; ?>
11
 
 
12
 
<a href="http://www.ubuntu.com/"><img
13
 
    src="http://www.ubuntu.com/countdown/banner3.png"
14
 
    border="0" width="180" height="150"
15
 
    alt="The next version of Ubuntu is coming soon"/></a>
16
 
 
17
 
 
18
 
<h2>Categories</h2>
19
 
 
20
 
<ul>
21
 
    <?php wp_list_cats('sort_column=name&optioncount=1&hide_empty=0'); ?>
22
 
</ul>
23
 
 
24
 
 
25
 
<?php if (is_category()) : ?>
26
 
    <h2>RSS Feeds</h2>
27
 
 
28
 
    <ul>
29
 
        <li>
30
 
            <a title="RSS2 Feed for Posts" href="<?php link_to_feed() ?>"><img
31
 
                src="<?php get_theme_path(); ?>/img/xml.gif"
32
 
                alt="RSS Feed"
33
 
                title="RSS Feed for the category <?php echo $TheCat;?>"
34
 
                style="vertical-align:middle;" /></a>
35
 
            <a title="RSS2 Feed for Posts" href="<?php link_to_feed()
36
 
                ?>">RSS Posts</a>
37
 
        </li>
38
 
    </ul>
39
 
<?php endif; ?>
40
 
 
41
 
<?php if (is_category() || is_page()) : ?>
42
 
    <h2>Pages</h2>
43
 
 
44
 
    <ul>
45
 
        <?php wp_list_pages(
46
 
            'title_li=&child_of=' . get_section_page($section)) ?>
47
 
    </ul>
48
 
<?php endif; ?>
49
 
 
50
 
<?php if (is_category() || is_home()) : ?>
51
 
 
52
 
<?php endif; ?>
53
 
 
54
 
<?php if (is_category()) : ?>
55
 
    <h2>Links</h2>
56
 
 
57
 
    <ul>
58
 
        <?php get_links(
59
 
            get_section_category($section), '<li>', '</li>', '<br />',
60
 
            false, 'name', false); ?>
61
 
    </ul>
62
 
<?php endif; ?>
63
 
 
64
 
 
65
 
<?php if (is_home()) : ?>
66
 
    <h2>Meta</h2>
67
 
 
68
 
    <ul>
69
 
        <?php wp_register(); ?>
70
 
        <li><?php wp_loginout(); ?></li>
71
 
        <?php wp_meta(); ?>
72
 
    </ul>
73
 
<?php endif ?>
74