summaryrefslogtreecommitdiffstats
path: root/common/custom/views/archive/sidebar.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'common/custom/views/archive/sidebar.tpl.php')
-rwxr-xr-xcommon/custom/views/archive/sidebar.tpl.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/custom/views/archive/sidebar.tpl.php b/common/custom/views/archive/sidebar.tpl.php
new file mode 100755
index 0000000..e21f377
--- /dev/null
+++ b/common/custom/views/archive/sidebar.tpl.php
@@ -0,0 +1,34 @@
+<?php
+$all_people = &$Planet->getPeople();
+usort($all_people, array('PlanetFeed', 'compare'));
+?>
+<div id="sidebar">
+ <div id="sidebar-people">
+ <h2><?=_g('People')?> (<?php echo 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="<?=_g('Feed')?>" 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>
+ <a href="custom/people.opml"><img src="custom/img/opml.png" alt="<?=_g('Feed')?>" height="12" width="12" />&nbsp;<?=_g('All feeds in OPML format')?></a>
+ </p>
+ </div>
+
+ <div>
+ <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>
+ <h2><?=_g('Archives')?></h2>
+ <ul>
+ <li><a href="?type=archive"><?=_g('See all headlines')?></a></li>
+ </ul>
+ </div>
+</div>