summaryrefslogtreecommitdiffstats
path: root/common/custom/views/default/sidebar.tpl.php
blob: 830f3c6ef6ab4045e6575fe43bc625d753900c1c (plain)
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
<?php
$all_people = &$Planet->getPeople();
usort($all_people, array('PlanetFeed', 'compare'));
?>
<div id="sidebar" class="aside">
    <div id="sidebar-people" class="section">
        <h2><?php echo _g('People') . ' (' . count($all_people) . ')'?></h2>
        <ul>
            <?php foreach ($all_people as $person) : ?>
            <li>
                <a href="<?php echo htmlspecialchars($person->getFeed(), ENT_QUOTES, 'UTF-8'); ?>" title="<?=_g('Feed')?>"><img src="postload.php?url=<?php echo urlencode(htmlspecialchars($person->getFeed(), ENT_QUOTES, 'UTF-8')); ?>" alt="" height="12" width="12" /></a>
                <a href="<?php echo $person->getWebsite(); ?>" title="<?=_g('Website')?>"><?php echo htmlspecialchars($person->getName(), ENT_QUOTES, 'UTF-8'); ?></a>
            </li>
            <?php endforeach; ?>
        </ul>
        <p>
        <img src="custom/img/opml.png" alt="<?=_g('Feed')?>" height="12" width="12" /> <a href="custom/people.opml"><?=_g('All feeds in OPML format')?></a>
        </p>
    </div>

    <div class="section">
        <h2><?=_g('Syndicate')?></h2>
        <ul>
            <li><img src="custom/img/feed.png" alt="<?=_g('Feed')?>" height="12" width="12" />&nbsp;<a href="atom.php"><?=_g('Feed (ATOM)')?></a></li>
        </ul>
    </div>

    <div class="section">
        <h2><?=_g('Archives')?></h2>
        <ul>
            <li><a href="?type=archive"><?=_g('See all headlines')?></a></li>
        </ul>
    </div>
</div>