From 23cc69b816f5df465c7c9d0df5630d00abfaf6d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Wed, 26 Jun 2013 17:56:19 +0200 Subject: [PATCH] construct the foother in defaults.php so that we use always the same footer Conflicts: settings/templates/admin.php --- apps/files_sharing/templates/public.php | 5 ++--- core/templates/layout.guest.php | 7 ++----- lib/defaults.php | 24 +++++++++++++++++++++++- settings/templates/admin.php | 14 +++++++++----- settings/templates/personal.php | 14 ++++++++------ 5 files changed, 44 insertions(+), 20 deletions(-) diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 3a1c370b4c..c9d56e7ff8 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -87,8 +87,7 @@ diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 4173212dfa..ec73ad5456 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -43,10 +43,7 @@ + +

diff --git a/lib/defaults.php b/lib/defaults.php index 7dc6fbd0ad..9043c04e7b 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -71,4 +71,26 @@ class OC_Defaults { } } -} \ No newline at end of file + public static function getShortFooter() { + if (OC_Util::getEditionString() === '') { + $footer = "" .self::getEntity() . "". + ' – ' . self::getSlogan(); + } else { + $footer = "© 2013 ".self::getEntity()."". + " – " . self::getSlogan(); + } + + return $footer; + } + + public static function getLongFooter() { + if (OC_Util::getEditionString() === '') { + $footer = self::getShortFooter(); + } else { + $footer = "© 2013 ".self::getEntity()."". + "
" . self::getSlogan(); + } + return $footer; + } + +} diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 1ed3f6ef47..0eba6862e6 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -230,12 +230,16 @@ endfor;?> -