diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-19 08:22:45 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-07-19 10:57:25 +0200 |
commit | 235f4d614a3bb64968923c86792c23ce8a9a8f5f (patch) | |
tree | 0e859aba8b9f993aa9c59e73d5943b0f1e248156 /apps/theming | |
parent | fad8b275f1997b56b93fc75e40499484f07d799f (diff) | |
download | nextcloud-server-235f4d614a3bb64968923c86792c23ce8a9a8f5f.tar.gz nextcloud-server-235f4d614a3bb64968923c86792c23ce8a9a8f5f.zip |
Allow overwriting of IOS theming values
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 2b3be1e6413..7f30a48ff8b 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -51,6 +51,10 @@ class ThemingDefaults extends \OC_Defaults { private $color; /** @var Util */ private $util; + /** @var string */ + private $iTunesAppId; + /** @var string */ + private $iOSClientUrl; /** * ThemingDefaults constructor. @@ -82,6 +86,8 @@ class ThemingDefaults extends \OC_Defaults { $this->url = parent::getBaseUrl(); $this->slogan = parent::getSlogan(); $this->color = parent::getColorPrimary(); + $this->iTunesAppId = parent::getiTunesAppId(); + $this->iOSClientUrl = parent::getiOSClientUrl(); } public function getName() { @@ -180,6 +186,20 @@ class ThemingDefaults extends \OC_Defaults { return $this->urlGenerator->linkToRoute('theming.Theming.getLoginBackground') . '?v=' . $cacheBusterCounter; } + /** + * @return string + */ + public function getiTunesAppId() { + return $this->config->getAppValue('theming', 'iTunesAppId', $this->iTunesAppId); + } + + /** + * @return string + */ + public function getiOSClientUrl() { + return $this->config->getAppValue('theming', 'iOSClientUrl', $this->iOSClientUrl); + } + /** * @return array scss variables to overwrite @@ -290,5 +310,4 @@ class ThemingDefaults extends \OC_Defaults { return $returnValue; } - } |