make footer and urls aware of ownCloud editions
This commit is contained in:
parent
b29e01d5cf
commit
e1e798c623
|
@ -5,11 +5,13 @@ class OC_Defaults {
|
||||||
private static $communityEntity = "ownCloud";
|
private static $communityEntity = "ownCloud";
|
||||||
private static $communityName = "ownCloud";
|
private static $communityName = "ownCloud";
|
||||||
private static $communityBaseUrl = "http://owncloud.org";
|
private static $communityBaseUrl = "http://owncloud.org";
|
||||||
|
private static $communitySyncClientUrl = " http://owncloud.org/sync-clients/";
|
||||||
private static $communitySlogan = "web services under your control";
|
private static $communitySlogan = "web services under your control";
|
||||||
|
|
||||||
private static $enterpriseEntity = "ownCloud Inc.";
|
private static $enterpriseEntity = "ownCloud Inc.";
|
||||||
private static $enterpriseName = "ownCloud Enterprise Edition";
|
private static $enterpriseName = "ownCloud Enterprise Edition";
|
||||||
private static $enterpriseBaseUrl = "https://owncloud.com";
|
private static $enterpriseBaseUrl = "https://owncloud.com";
|
||||||
|
private static $enterpiseSyncClientUrl = "https://owncloud.com/products/desktop-clients";
|
||||||
private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!";
|
private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!";
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,6 +23,14 @@ class OC_Defaults {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getSyncClientUrl() {
|
||||||
|
if (OC_Util::getEditionString() === '') {
|
||||||
|
return self::$communitySyncClientUrl;
|
||||||
|
} else {
|
||||||
|
return self::$enterpiseSyncClientUrl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static function getName() {
|
public static function getName() {
|
||||||
if (OC_Util::getEditionString() === '') {
|
if (OC_Util::getEditionString() === '') {
|
||||||
return self::$communityName;
|
return self::$communityName;
|
||||||
|
|
|
@ -60,7 +60,7 @@ usort( $languages, function ($a, $b) {
|
||||||
|
|
||||||
//links to clients
|
//links to clients
|
||||||
$clients = array(
|
$clients = array(
|
||||||
'desktop' => OC_Config::getValue('customclient_desktop', 'http://owncloud.org/sync-clients/'),
|
'desktop' => OC_Config::getValue('customclient_desktop', OC_Defaults::getSyncClientUrl()),
|
||||||
'android' => OC_Config::getValue('customclient_android', 'https://play.google.com/store/apps/details?id=com.owncloud.android'),
|
'android' => OC_Config::getValue('customclient_android', 'https://play.google.com/store/apps/details?id=com.owncloud.android'),
|
||||||
'ios' => OC_Config::getValue('customclient_ios', 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8')
|
'ios' => OC_Config::getValue('customclient_ios', 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8')
|
||||||
);
|
);
|
||||||
|
|
|
@ -230,10 +230,15 @@ endfor;?>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<?php if (OC_Util::getEditionString() === ''): ?>
|
||||||
<fieldset class="personalblock">
|
<fieldset class="personalblock">
|
||||||
<legend><strong><?php p($l->t('Version'));?></strong></legend>
|
<legend><strong><?php p($l->t('Version'));?></strong></legend>
|
||||||
<strong>ownCloud</strong> <?php p(OC_Util::getVersionString()); ?> <?php p(OC_Util::getEditionString()); ?><br/>
|
<strong>ownCloud</strong> <?php p(OC_Util::getVersionString()); ?> <?php p(OC_Util::getEditionString()); ?><br/>
|
||||||
<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
|
<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<?php else: ?>
|
||||||
|
<fieldset class="personalblock credits-footer">
|
||||||
|
<p>© 2013 <a href="<?php p(OC_Defaults::getBaseUrl()); ?>" target="_blank"><?php p(OC_Defaults::getEntity()); ?></a> – <?php p(OC_Defaults::getSlogan()); ?></p>
|
||||||
|
</fieldset>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
|
@ -106,12 +106,15 @@ if($_['passwordChangeSupported']) {
|
||||||
print_unescaped($form);
|
print_unescaped($form);
|
||||||
};?>
|
};?>
|
||||||
|
|
||||||
|
<?php if (OC_Util::getEditionString() === ''): ?>
|
||||||
<fieldset class="personalblock">
|
<fieldset class="personalblock">
|
||||||
<legend><strong><?php p($l->t('Version'));?></strong></legend>
|
<legend><strong><?php p($l->t('Version'));?></strong></legend>
|
||||||
<strong>ownCloud</strong> <?php p(OC_Util::getVersionString()); ?>
|
<strong>ownCloud</strong> <?php p(OC_Util::getVersionString()); ?>
|
||||||
<?php p(OC_Util::getEditionString()); ?> <br />
|
<?php p(OC_Util::getEditionString()); ?> <br />
|
||||||
<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
|
<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<?php else: ?>
|
||||||
|
<fieldset class="personalblock credits-footer">
|
||||||
|
<p>© 2013 <a href="<?php p(OC_Defaults::getBaseUrl()); ?>" target="_blank"><?php p(OC_Defaults::getEntity()); ?></a> – <?php p(OC_Defaults::getSlogan()); ?></p>
|
||||||
|
</fieldset>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
Loading…
Reference in New Issue