summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-02-09 16:01:52 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-02-09 16:01:52 +0100
commit4172ba48d4c2ffc34c2020b256aca333de692c23 (patch)
treea4e0fa80ddea573debbbc4fd55653ebb93fa431b /settings/templates
parentb432ea29c9d99a386077c738d6e29d4bc093c15f (diff)
downloadnextcloud-server-4172ba48d4c2ffc34c2020b256aca333de692c23.tar.gz
nextcloud-server-4172ba48d4c2ffc34c2020b256aca333de692c23.zip
Deduplicate template code and do not translate the links
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/admin.php6
-rw-r--r--settings/templates/personal.php4
-rw-r--r--settings/templates/settings.development.notice.php19
3 files changed, 21 insertions, 8 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 55887b0df46..d3cf1dc972a 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -515,11 +515,7 @@ if ($_['suggestedOverwriteCliUrl']) {
<div class="section">
<h2><?php p($l->t('Version'));?></h2>
<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?>
-<?php if (OC_Util::getEditionString() === ''): ?>
- <p>
- <?php print_unescaped($l->t('Developed by the <a href="https://owncloud.org/contact" target="_blank" rel="noreferrer">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank" rel="noreferrer">source code</a> is licensed under the <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noreferrer"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
- </p>
-<?php endif; ?>
+ <?php include('settings.development.notice.php'); ?>
</div>
<div class="section credits-footer">
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index d6bc1d2bb5c..b98156a7c5b 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -286,9 +286,7 @@ if($_['passwordChangeSupported']) {
<div class="section">
<h2><?php p($l->t('Version'));?></h2>
<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?><br />
-<?php if (OC_Util::getEditionString() === ''): ?>
- <?php print_unescaped($l->t('Developed by the <a href="https://owncloud.org/contact" target="_blank" rel="noreferrer">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank" rel="noreferrer">source code</a> is licensed under the <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noreferrer"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
-<?php endif; ?>
+ <?php include('settings.development.notice.php'); ?>
</div>
<div class="section credits-footer">
diff --git a/settings/templates/settings.development.notice.php b/settings/templates/settings.development.notice.php
new file mode 100644
index 00000000000..c88c90f6b6b
--- /dev/null
+++ b/settings/templates/settings.development.notice.php
@@ -0,0 +1,19 @@
+<?php if (OC_Util::getEditionString() === ''): ?>
+ <p>
+ <?php print_unescaped(str_replace(
+ [
+ '{communityopen}',
+ '{githubopen}',
+ '{licenseopen}',
+ '{linkclose}',
+ ],
+ [
+ '<a href="https://owncloud.org/contact" target="_blank" rel="noreferrer">',
+ '<a href="https://github.com/owncloud" target="_blank" rel="noreferrer">',
+ '<a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noreferrer">',
+ '</a>',
+ ],
+ $l->t('Developed by the {communityopen}ownCloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}<abbr title="Affero General Public License">AGPL</abbr>{linkclose}.')
+ )); ?>
+ </p>
+<?php endif; ?>