|
|
|
@ -48,6 +48,7 @@ class OC_Defaults {
|
|
|
|
|
private $defaultiOSClientUrl;
|
|
|
|
|
private $defaultiTunesAppId;
|
|
|
|
|
private $defaultAndroidClientUrl;
|
|
|
|
|
private $defaultFDroidClientUrl;
|
|
|
|
|
private $defaultDocBaseUrl;
|
|
|
|
|
private $defaultDocVersion;
|
|
|
|
|
private $defaultSlogan;
|
|
|
|
@ -66,6 +67,7 @@ class OC_Defaults {
|
|
|
|
|
$this->defaultiOSClientUrl = $config->getSystemValue('customclient_ios', 'https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8');
|
|
|
|
|
$this->defaultiTunesAppId = $config->getSystemValue('customclient_ios_appid', '1125420102');
|
|
|
|
|
$this->defaultAndroidClientUrl = $config->getSystemValue('customclient_android', 'https://play.google.com/store/apps/details?id=com.nextcloud.client');
|
|
|
|
|
$this->defaultFDroidClientUrl = $config->getSystemValue('customclient_fdroid', 'https://f-droid.org/packages/com.nextcloud.client/');
|
|
|
|
|
$this->defaultDocBaseUrl = 'https://docs.nextcloud.com';
|
|
|
|
|
$this->defaultDocVersion = \OC_Util::getVersion()[0]; // used to generate doc links
|
|
|
|
|
$this->defaultColorPrimary = '#0082c9';
|
|
|
|
@ -154,6 +156,18 @@ class OC_Defaults {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the URL to Google Play for the Android Client
|
|
|
|
|
* @return string URL
|
|
|
|
|
*/
|
|
|
|
|
public function getFDroidClientUrl() {
|
|
|
|
|
if ($this->themeExist('getFDroidClientUrl')) {
|
|
|
|
|
return $this->theme->getFDroidClientUrl();
|
|
|
|
|
} else {
|
|
|
|
|
return $this->defaultFDroidClientUrl;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the documentation URL
|
|
|
|
|
* @return string URL
|
|
|
|
|