diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-12-18 11:16:51 +0100 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-12-18 11:16:51 +0100 |
commit | af39db4bc0c638380ccac651836777c5775d66e4 (patch) | |
tree | b23c3bbd70277b7ea705b781163145f59291845b /index.php | |
parent | 35a4e5cf48ba418fd9bce4b023a1f897823aafb8 (diff) |
Option to configure the header's link.
Use $config['frontpage']['header_link'] to give a link to be used
when the header is clicked. The default value is null and means that
no link will be used.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -97,7 +97,9 @@ final class LookingGlass { } private function render_header() { - print('<a href="." title="Home">'); + if ($this->frontpage['header_link'] != null) { + print('<a href="'.$this->frontpage['header_link'].'" title="Home">'); + } print('<div class="header_bar">'); if ($this->frontpage['show_title']) { print('<h1>'.htmlentities($this->frontpage['title']).'</h1><br />'); @@ -106,7 +108,9 @@ final class LookingGlass { print('<img src="'.$this->frontpage['image'].'" alt="Logo" />'); } print('</div>'); - print('</a>'); + if ($this->frontpage['header_link'] != null) { + print('</a>'); + } } private function render_content() { |