diff options
author | Björn Schießle <bjoern@schiessle.org> | 2016-07-18 15:59:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 15:59:47 +0200 |
commit | ea470f877760c72b1e8b865ba600d5bd483027c0 (patch) | |
tree | 3b4c4fa327d8e6521c782e6e45f1d73eb95d70ec /apps/theming/lib | |
parent | 68735c188c0f9777f932f55b1c290039c9d6e433 (diff) | |
parent | ec6f6969789ca2f455c0d2fd04557337c782176b (diff) | |
download | nextcloud-server-ea470f877760c72b1e8b865ba600d5bd483027c0.tar.gz nextcloud-server-ea470f877760c72b1e8b865ba600d5bd483027c0.zip |
Merge pull request #405 from nextcloud/theming-fixes
Theming fixes
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/template.php | 13 |
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 * |