Skip to content
Snippets Groups Projects
Unverified Commit e8d6621a authored by Joas Schilling's avatar Joas Schilling
Browse files

Better handling of empty slogan

parent c04e7b13
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,10 @@ class Template extends \OC_Defaults { ...@@ -77,6 +77,10 @@ class Template extends \OC_Defaults {
return $this->config->getAppValue('theming', 'name', $this->name); return $this->config->getAppValue('theming', 'name', $this->name);
} }
public function getHTMLName() {
return $this->config->getAppValue('theming', 'name', $this->name);
}
public function getTitle() { public function getTitle() {
return $this->config->getAppValue('theming', 'name', $this->name); return $this->config->getAppValue('theming', 'name', $this->name);
} }
...@@ -93,6 +97,15 @@ class Template extends \OC_Defaults { ...@@ -93,6 +97,15 @@ class Template extends \OC_Defaults {
return $this->config->getAppValue('theming', 'slogan', $this->slogan); 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 * Color that is used for the header as well as for mail headers
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment