]> source.dussan.org Git - nextcloud-server.git/commitdiff
construct the foother in defaults.php so that we use always the same footer
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 26 Jun 2013 15:56:19 +0000 (17:56 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 1 Jul 2013 08:46:00 +0000 (10:46 +0200)
Conflicts:

settings/templates/admin.php

apps/files_sharing/templates/public.php
core/templates/layout.guest.php
lib/defaults.php
settings/templates/admin.php
settings/templates/personal.php

index 3a1c370b4c0d7ca8340334b209a906d4512421eb..c9d56e7ff851133480a899333a67d4b86e947167 100644 (file)
@@ -87,8 +87,7 @@
        <?php endif; ?>
 </div>
 <footer>
-       <p class="info"><a href="<?php p(OC_Defaults::getBaseUrl()); ?>"><?php p(OC_Defaults::getEntity()) ?></a>
-               <?php OC_Util::getEditionString() === '' ? print_unescaped(' &ndash; ') : print_unescaped('<br/>'); ?>
-               <?php p(OC_Defaults::getSlogan()); ?>
+       <p class="info">
+               <?php print_unescaped(OC_Defaults::getLongFooter()); ?>
        </p>
 </footer>
index 4173212dfa3d6cc5ac4c4d1c806571f5b992c927..ec73ad5456caef38c16b5d28765dc106881ee6cd 100644 (file)
                </div>
                <footer>
                        <p class="info">
-                               <?php OC_Util::getEditionString() === '' ? '' : p('© 2013 '); ?>
-                               <a href="<?php p(OC_Defaults::getBaseUrl())?>">
-                                       <?php  p(OC_Defaults::getEntity()); ?></a>
-                               <?php OC_Util::getEditionString() === '' ? print_unescaped(' &ndash; ') : print_unescaped('<br/>'); ?>
-                       <?php p(OC_Defaults::getSlogan()); ?></p></footer>
+                               <?php print_unescaped(OC_Defaults::getLongFooter()); ?>
+                       </p></footer>
        </body>
 </html>
index 7dc6fbd0ada1964847843a57ac7e148a37103d4a..9043c04e7b60f27c76f1195d25f8789bc6f5c80a 100644 (file)
@@ -71,4 +71,26 @@ class OC_Defaults {
                }
        }
 
-}
\ No newline at end of file
+       public static function getShortFooter() {
+               if (OC_Util::getEditionString() === '') {
+                       $footer = "<a href=\"". self::getBaseUrl() . "\" target=\"_blank\">" .self::getEntity() . "</a>".
+                               ' – ' . self::getSlogan();
+               } else {
+                       $footer = "© 2013 <a href=\"".self::getBaseUrl()."\" target=\"_blank\">".self::getEntity()."</a>".
+                               " – " . self::getSlogan();
+               }
+
+               return $footer;
+       }
+
+       public static function getLongFooter() {
+               if (OC_Util::getEditionString() === '') {
+                       $footer = self::getShortFooter();
+               } else {
+                       $footer = "© 2013 <a href=\"".self::getBaseUrl()."\" target=\"_blank\">".self::getEntity()."</a>".
+                               "<br/>" . self::getSlogan();
+               }
+               return $footer;
+       }
+
+}
index 1ed3f6ef47fffbd5b900af9e889286a19e4e5d0b..0eba6862e6b28e060d0d128f3817ae09725d6224 100644 (file)
@@ -230,12 +230,16 @@ endfor;?>
 
 </fieldset>
 
-<fieldset class="personalblock credits-footer">
-<?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/>
+       <strong><?php p(OC_Defaults::getName()); ?></strong> <?php p(OC_Util::getVersionString()); ?>
+       (<?php print_unescaped(OC_Updater::ShowUpdatingHint()); ?>)<br/>
+<?php if (OC_Util::getEditionString() === ''): ?>
        <?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 else: ?>
-    <p>© 2013 <a href="<?php p(OC_Defaults::getBaseUrl()); ?>" target="_blank"><?php p(OC_Defaults::getEntity()); ?></a> – <?php p(OC_Defaults::getSlogan()); ?></p>
 <?php endif; ?>
 </fieldset>
+<fieldset class="personalblock credits-footer">
+<p>
+       <?php print_unescaped(OC_Defaults::getShortFooter()); ?>
+</p>
+</fieldset>
index a9457399d5dc8004fb76c52a3837b0115b410699..5d0bb77c78e8516e48b07324eb3ec9523b561115 100644 (file)
@@ -111,13 +111,15 @@ if($_['passwordChangeSupported']) {
        print_unescaped($form);
 };?>
 
-<fieldset class="personalblock credits-footer">
-<?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 />
+       <strong><?php p(OC_Defaults::getName()); ?></strong> <?php p(OC_Util::getVersionString()); ?><br/>
+<?php if (OC_Util::getEditionString() === ''): ?>
        <?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 else: ?>
-    <p>© 2013 <a href="<?php p(OC_Defaults::getBaseUrl()); ?>" target="_blank"><?php p(OC_Defaults::getEntity()); ?></a> – <?php p(OC_Defaults::getSlogan()); ?></p>
 <?php endif; ?>
 </fieldset>
+<fieldset class="personalblock credits-footer">
+<p>
+       <?php print_unescaped(OC_Defaults::getShortFooter()); ?>
+</p>
+</fieldset>