From af39db4bc0c638380ccac651836777c5775d66e4 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Thu, 18 Dec 2014 11:16:51 +0100 Subject: 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. --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 767cc71..679f6f1 100644 --- a/index.php +++ b/index.php @@ -97,7 +97,9 @@ final class LookingGlass { } private function render_header() { - print(''); + if ($this->frontpage['header_link'] != null) { + print(''); + } print('
'); if ($this->frontpage['show_title']) { print('

'.htmlentities($this->frontpage['title']).'


'); @@ -106,7 +108,9 @@ final class LookingGlass { print('Logo'); } print('
'); - print('
'); + if ($this->frontpage['header_link'] != null) { + print(''); + } } private function render_content() { -- cgit v1.2.3