diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-03-06 13:35:06 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-03-06 13:35:06 +0100 |
commit | 84cf40ed82417f56586c46317b1280065c7091a6 (patch) | |
tree | 2f774fd12de4763b9f2a0f29a7199d2a3b05f14e /lib/private/defaults.php | |
parent | a687498547448d6ff11eccc0acddcf0647873ce8 (diff) | |
parent | 1785c0c9b9fcdc6e9a8e58f13f45e5b53364882a (diff) | |
download | nextcloud-server-84cf40ed82417f56586c46317b1280065c7091a6.tar.gz nextcloud-server-84cf40ed82417f56586c46317b1280065c7091a6.zip |
merge master into webdav-injection
Diffstat (limited to 'lib/private/defaults.php')
-rw-r--r-- | lib/private/defaults.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/private/defaults.php b/lib/private/defaults.php index 0b97497baa1..79be211b82f 100644 --- a/lib/private/defaults.php +++ b/lib/private/defaults.php @@ -21,6 +21,7 @@ class OC_Defaults { private $defaultDocBaseUrl; private $defaultSlogan; private $defaultLogoClaim; + private $defaultMailHeaderColor; function __construct() { $this->l = OC_L10N::get('core'); @@ -33,6 +34,7 @@ class OC_Defaults { $this->defaultDocBaseUrl = "http://doc.owncloud.org"; $this->defaultSlogan = $this->l->t("web services under your control"); $this->defaultLogoClaim = ""; + $this->defaultMailHeaderColor = "#1d2d44"; /* header color of mail notifications */ if (class_exists("OC_Theme")) { $this->theme = new OC_Theme(); @@ -174,4 +176,23 @@ class OC_Defaults { return $footer; } + public function buildDocLinkToKey($key) { + if ($this->themeExist('buildDocLinkToKey')) { + return $this->theme->buildDocLinkToKey($key); + } + return $this->getDocBaseUrl() . '/server/6.0/go.php?to=' . $key; + } + + /** + * Returns mail header color + * @return mail header color + */ + public function getMailHeaderColor() { + if ($this->themeExist('getMailHeaderColor')) { + return $this->theme->getMailHeaderColor(); + } else { + return $this->defaultMailHeaderColor; + } + } + } |