diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 00950802fec..24706b77b19 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -12,7 +12,7 @@
-
+
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 69a181735ca..51470fb07fa 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -16,7 +16,7 @@
-
+
diff --git a/lib/private/defaults.php b/lib/private/defaults.php
index 3996cc081ed..cc6c819f03f 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
@@ -94,6 +96,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