summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-06-12 15:44:11 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-06-12 15:44:11 +0200
commite1e798c623c9a9b26a4e369e5448c9ac3fe1b9fc (patch)
tree9eaa282e00ff1252aa172f8a02953ab8a437c595 /settings/templates
parentb29e01d5cf4b1d149373e4b70e83510d7e7cd50f (diff)
downloadnextcloud-server-e1e798c623c9a9b26a4e369e5448c9ac3fe1b9fc.tar.gz
nextcloud-server-e1e798c623c9a9b26a4e369e5448c9ac3fe1b9fc.zip
make footer and urls aware of ownCloud editions
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/admin.php7
-rw-r--r--settings/templates/personal.php9
2 files changed, 12 insertions, 4 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 28254b7aa18..a74849a2ecc 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -230,10 +230,15 @@ 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()); ?><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 f0002c505c8..75aab157605 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; ?>