summaryrefslogtreecommitdiffstats
path: root/common/custom/views/default/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/default/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/default/sidebar.tpl.php')
-rwxr-xr-xcommon/custom/views/default/sidebar.tpl.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/custom/views/default/sidebar.tpl.php b/common/custom/views/default/sidebar.tpl.php
new file mode 100755
index 0000000..830f3c6
--- /dev/null
+++ b/common/custom/views/default/sidebar.tpl.php
@@ -0,0 +1,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>