diff options
author | Pascal de Bruijn <pmjdebruijn@pcode.nl> | 2014-08-27 14:07:39 +0200 |
---|---|---|
committer | Pascal de Bruijn <pmjdebruijn@pcode.nl> | 2014-08-27 14:07:39 +0200 |
commit | 49da0a794317042e8598b0735119854950444a7f (patch) | |
tree | b87734accd0b7dfc5fe7949b13e7a08a76d17098 /lib/private/defaults.php | |
parent | c35d60f6d80dbb244b6223de3fdb894b0ef34d34 (diff) | |
download | nextcloud-server-49da0a794317042e8598b0735119854950444a7f.tar.gz nextcloud-server-49da0a794317042e8598b0735119854950444a7f.zip |
defaults: add customizable defaultiTunesAppId
Diffstat (limited to 'lib/private/defaults.php')
-rw-r--r-- | lib/private/defaults.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/defaults.php b/lib/private/defaults.php index dfd114cd2fe..17f278eeabf 100644 --- a/lib/private/defaults.php +++ b/lib/private/defaults.php @@ -19,6 +19,7 @@ class OC_Defaults { private $defaultBaseUrl; private $defaultSyncClientUrl; private $defaultiOSClientUrl; + private $defaultiTunesAppId; private $defaultAndroidClientUrl; private $defaultDocBaseUrl; private $defaultDocVersion; @@ -36,6 +37,7 @@ class OC_Defaults { $this->defaultBaseUrl = 'https://owncloud.org'; $this->defaultSyncClientUrl = 'https://owncloud.org/sync-clients/'; $this->defaultiOSClientUrl = 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8'; + $this->defaultiTunesAppId = '543672169'; $this->defaultAndroidClientUrl = 'https://play.google.com/store/apps/details?id=com.owncloud.android'; $this->defaultDocBaseUrl = 'http://doc.owncloud.org'; $this->defaultDocVersion = $version[0] . '.0'; // used to generate doc links @@ -95,6 +97,18 @@ class OC_Defaults { } /** + * Returns the AppId for the App Store for the iOS Client + * @return string AppId + */ + public function getiTunesAppId() { + if ($this->themeExist('getiTunesAppId')) { + return $this->theme->getiTunesAppId(); + } else { + return $this->defaultiTunesAppId; + } + } + + /** * Returns the URL to Google Play for the Android Client * @return string URL */ |