diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-11 16:38:07 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-11 16:38:07 +0200 |
commit | aacca494c504d97be4ba0eb93289604b392d946f (patch) | |
tree | ee06a764dcfaaf057087654fa39e77d5e547995f /lib/defaults.php | |
parent | c5f2ea9a9511e78d724bb1c90748f894bb8b57af (diff) | |
download | nextcloud-server-aacca494c504d97be4ba0eb93289604b392d946f.tar.gz nextcloud-server-aacca494c504d97be4ba0eb93289604b392d946f.zip |
introduce shortname themable string and split from title, use for image alt text
Diffstat (limited to 'lib/defaults.php')
-rw-r--r-- | lib/defaults.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/defaults.php b/lib/defaults.php index 196bb5cf14d..10813a3e8d8 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -16,6 +16,7 @@ class OC_Defaults { private $defaultEntity; private $defaultName; + private $defaultTitle; private $defaultBaseUrl; private $defaultSyncClientUrl; private $defaultDocBaseUrl; @@ -25,8 +26,9 @@ class OC_Defaults { function __construct() { $l = OC_L10N::get('core'); - $this->defaultEntity = "ownCloud"; - $this->defaultName = "ownCloud"; + $this->defaultEntity = "ownCloud"; /* e.g. company name, used for footers and copyright notices */ + $this->defaultName = "ownCloud"; /* short name, used when referring to the software */ + $this->defaultTitle = "ownCloud"; /* can be a longer name, for titles */ $this->defaultBaseUrl = "http://owncloud.org"; $this->defaultSyncClientUrl = " http://owncloud.org/sync-clients/"; $this->defaultDocBaseUrl = "http://doc.owncloud.org"; @@ -69,6 +71,14 @@ class OC_Defaults { } } + public function getTitle() { + if ($this->themeExist('getTitle')) { + return $this->theme->getTitle(); + } else { + return $this->defaultTitle; + } + } + public function getName() { if ($this->themeExist('getName')) { return $this->theme->getName(); |