From 69e49c133c7c1e7443e2bb7c2de3e1e8a3980cca Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Wed, 4 Jun 2014 12:16:36 +0200 Subject: Provide a way to not display the title. --- config.php.example | 1 + index.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.php.example b/config.php.example index 2a9d364..00fab71 100644 --- a/config.php.example +++ b/config.php.example @@ -10,6 +10,7 @@ $config['contact']['mail'] = 'support@example.com'; $config['frontpage']['css'] = 'includes/style.css'; // Title of the page $config['frontpage']['title'] = 'Looking Glass'; +$config['frontpage']['show_title'] = true; // Logo to display $config['frontpage']['image'] = 'logo.png'; // Disclaimer to inform people using the looking glass diff --git a/index.php b/index.php index d9ab19f..3bcf81c 100644 --- a/index.php +++ b/index.php @@ -91,7 +91,10 @@ final class LookingGlass { private function render_header() { print '
'; - print '

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


'; + if (!isset($this->frontpage['show_title']) || + $this->frontpage['show_title']) { + print '

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


'; + } if (isset($this->frontpage['image'])) { print 'logo'; } -- cgit v1.2.3