summaryrefslogtreecommitdiffstats
path: root/common/custom/views/archive/sidebar.tpl.php
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2012-08-13 10:45:23 +0000
committerDamien Lallement <dams@mageia.org>2012-08-13 10:45:23 +0000
commitff32e499745367b816d10f25e63ff3328214c32f (patch)
tree238d19398f5951d69d32c8ed9a460f5193446981 /common/custom/views/archive/sidebar.tpl.php
parent5bed2fb79d7b554dd90d2eb58422cfa649aebe08 (diff)
downloadplanet-ff32e499745367b816d10f25e63ff3328214c32f.tar
planet-ff32e499745367b816d10f25e63ff3328214c32f.tar.gz
planet-ff32e499745367b816d10f25e63ff3328214c32f.tar.bz2
planet-ff32e499745367b816d10f25e63ff3328214c32f.tar.xz
planet-ff32e499745367b816d10f25e63ff3328214c32f.zip
- Import moonmoon
- Create repo per langs
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>