From e8d6621a2485196c66d0743df3072da3b9e9c36b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 15 Jul 2016 08:45:55 +0200 Subject: [PATCH] Better handling of empty slogan --- apps/theming/lib/template.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apps/theming/lib/template.php b/apps/theming/lib/template.php index a09a854ca6..436dfe86a0 100644 --- a/apps/theming/lib/template.php +++ b/apps/theming/lib/template.php @@ -77,6 +77,10 @@ class Template extends \OC_Defaults { return $this->config->getAppValue('theming', 'name', $this->name); } + public function getHTMLName() { + return $this->config->getAppValue('theming', 'name', $this->name); + } + public function getTitle() { return $this->config->getAppValue('theming', 'name', $this->name); } @@ -93,6 +97,15 @@ class Template extends \OC_Defaults { return $this->config->getAppValue('theming', 'slogan', $this->slogan); } + public function getShortFooter() { + $slogan = $this->getSlogan(); + $footer = '' .$this->getEntity() . ''. + ($slogan !== '' ? ' – ' . $slogan : ''); + + return $footer; + } + /** * Color that is used for the header as well as for mail headers *