diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 12:16:36 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 12:16:36 +0200 |
commit | 69e49c133c7c1e7443e2bb7c2de3e1e8a3980cca (patch) | |
tree | ca5bd60694b7f7184ac86859a349f1d583f6a15e | |
parent | 0572afd29a1ef117873935b9ca5e8f1a0676727b (diff) |
Provide a way to not display the title.
-rw-r--r-- | config.php.example | 1 | ||||
-rw-r--r-- | index.php | 5 |
2 files changed, 5 insertions, 1 deletions
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 @@ -91,7 +91,10 @@ final class LookingGlass { private function render_header() { print '<div class="header_bar">'; - print '<h1>'.htmlentities($this->frontpage['title']).'</h1><br />'; + if (!isset($this->frontpage['show_title']) || + $this->frontpage['show_title']) { + print '<h1>'.htmlentities($this->frontpage['title']).'</h1><br />'; + } if (isset($this->frontpage['image'])) { print '<img src="'.$this->frontpage['image'].'" alt="logo" />'; } |