diff options
author | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-15 16:41:25 +0100 |
---|---|---|
committer | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-15 16:41:25 +0100 |
commit | fda57f3b7c52ea9747e8c132c4571772ab913752 (patch) | |
tree | 73e15148320882539b1ff9dd456f8bd02a9078db /custom/views/archive/sidebar.tpl.php | |
parent | b9b9f483f54365ecb88572690f308a29d26da31c (diff) | |
download | planet-fda57f3b7c52ea9747e8c132c4571772ab913752.tar planet-fda57f3b7c52ea9747e8c132c4571772ab913752.tar.gz planet-fda57f3b7c52ea9747e8c132c4571772ab913752.tar.bz2 planet-fda57f3b7c52ea9747e8c132c4571772ab913752.tar.xz planet-fda57f3b7c52ea9747e8c132c4571772ab913752.zip |
Refactor main controller and templates
Templates for the public part:
- archive/default views are merged into a single set
- becomes HTML5
Controller code is reorganized for clarity.
Compiled template caching is also fixed and activated when config cache
value is > 0.
Caching is also given new default larger values.
Diffstat (limited to 'custom/views/archive/sidebar.tpl.php')
-rwxr-xr-x | custom/views/archive/sidebar.tpl.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/custom/views/archive/sidebar.tpl.php b/custom/views/archive/sidebar.tpl.php deleted file mode 100755 index 7a5d080..0000000 --- a/custom/views/archive/sidebar.tpl.php +++ /dev/null @@ -1,34 +0,0 @@ -<?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" /> <?=_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" /> <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> |