diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-12 17:44:11 +0400 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-06-13 18:37:14 +0400 |
commit | ae2615e74de3b197aeca052b1251784dd752208b (patch) | |
tree | 0754721a16cb1ffbd445579e9698c609486fd204 /settings | |
parent | 939bc3e71c1cb4db8bb127031c2b064c5341b545 (diff) |
make footer and urls aware of ownCloud editions
Diffstat (limited to 'settings')
-rw-r--r-- | settings/personal.php | 2 | ||||
-rw-r--r-- | settings/templates/admin.php | 7 | ||||
-rw-r--r-- | settings/templates/personal.php | 9 |
3 files changed, 13 insertions, 5 deletions
diff --git a/settings/personal.php b/settings/personal.php index 9bbc66c9b7f..d6c84b5bbc3 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -51,7 +51,7 @@ array_unshift($languages, $userLang); //links to clients $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'), 'ios' => OC_Config::getValue('customclient_ios', 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8') ); diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 992d75e481f..0aba0c746a2 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -225,11 +225,16 @@ endfor;?> </fieldset> - +<?php if (OC_Util::getEditionString() === ''): ?> <fieldset class="personalblock"> <legend><strong><?php p($l->t('Version'));?></strong></legend> <strong>ownCloud</strong> <?php p(OC_Util::getVersionString()); ?> <?php p(OC_Util::getEditionString()); ?> (<?php print_unescaped(OC_Updater::ShowUpdatingHint()); ?>)<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>.')); ?> </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; ?> diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 4a046973307..161a482b915 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -106,12 +106,15 @@ if($_['passwordChangeSupported']) { print_unescaped($form); };?> - +<?php if (OC_Util::getEditionString() === ''): ?> <fieldset class="personalblock"> <legend><strong><?php p($l->t('Version'));?></strong></legend> <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>.')); ?> </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; ?> |