summaryrefslogtreecommitdiffstats
path: root/custom/views/default/top.tpl.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-15 16:41:25 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-15 16:41:25 +0100
commitfda57f3b7c52ea9747e8c132c4571772ab913752 (patch)
tree73e15148320882539b1ff9dd456f8bd02a9078db /custom/views/default/top.tpl.php
parentb9b9f483f54365ecb88572690f308a29d26da31c (diff)
downloadplanet-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/default/top.tpl.php')
-rw-r--r--custom/views/default/top.tpl.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/custom/views/default/top.tpl.php b/custom/views/default/top.tpl.php
index 6db425c..ed6e19c 100644
--- a/custom/views/default/top.tpl.php
+++ b/custom/views/default/top.tpl.php
@@ -1,3 +1,8 @@
- <div id="header">
- <h1 id="top"><a href="<?php echo $PlanetConfig->getUrl(); ?>"><?php echo $PlanetConfig->getName(); ?></a></h1>
- </div> \ No newline at end of file
+<header id="header">
+ <h1 id="top">
+ <a href="<?php echo $PlanetConfig->getUrl(); ?>"><?php echo $PlanetConfig->getName(); ?></a>
+ <?php if ($pageRole == 'archive') : ?>
+ &middot; <?=_g('All Headlines') ?>
+ <?php endif; ?>
+ </h1>
+</header> \ No newline at end of file