summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-15 08:45:55 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-15 08:49:16 +0200
commite8d6621a2485196c66d0743df3072da3b9e9c36b (patch)
treeec2801e636ed7b78adac5edee5f2da06159e3c59 /apps/theming
parentc04e7b13c342ee9c1d57cf117f6bb14a157d6b4e (diff)
downloadnextcloud-server-e8d6621a2485196c66d0743df3072da3b9e9c36b.tar.gz
nextcloud-server-e8d6621a2485196c66d0743df3072da3b9e9c36b.zip
Better handling of empty slogan
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/template.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/theming/lib/template.php b/apps/theming/lib/template.php
index a09a854ca69..436dfe86a03 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 = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
+ ' rel="noreferrer">' .$this->getEntity() . '</a>'.
+ ($slogan !== '' ? ' – ' . $slogan : '');
+
+ return $footer;
+ }
+
/**
* Color that is used for the header as well as for mail headers
*