]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow overwriting of IOS theming values
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 19 Jul 2017 06:22:45 +0000 (08:22 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 19 Jul 2017 08:57:25 +0000 (10:57 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/theming/lib/ThemingDefaults.php

index 2b3be1e64132056c09adb874907f9ba70b76b363..7f30a48ff8bc7230eac1a41d23c23c6d008dda58 100644 (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;
        }
-
 }