Better handling of empty slogan

This commit is contained in:
Joas Schilling 2016-07-15 08:45:55 +02:00
parent c04e7b13c3
commit e8d6621a24
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 13 additions and 0 deletions

View File

@ -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
*