summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-06-04 12:16:36 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-06-04 12:16:36 +0200
commit69e49c133c7c1e7443e2bb7c2de3e1e8a3980cca (patch)
treeca5bd60694b7f7184ac86859a349f1d583f6a15e /index.php
parent0572afd29a1ef117873935b9ca5e8f1a0676727b (diff)
Provide a way to not display the title.
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 4 insertions, 1 deletions
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 '<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" />';
}