Allow overwriting of IOS theming values

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-07-19 08:22:45 +02:00
parent 0ee83ac56b
commit e2298e0a71
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 20 additions and 1 deletions

View File

@ -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;
}
}