From 3e3ed0784a8355c1a42ff8a32bb38b6d53473b7c Mon Sep 17 00:00:00 2001 From: =?utf8?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 --- apps/files_sharing/templates/public.php | 5 ++--- core/templates/layout.guest.php | 7 ++----- lib/defaults.php | 24 +++++++++++++++++++++++- settings/templates/admin.php | 13 ++++++++----- settings/templates/personal.php | 14 ++++++++------ 5 files changed, 43 insertions(+), 20 deletions(-) diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 6f82650102c..d8f1adf02ec 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -40,8 +40,7 @@ diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 4173212dfa3..ec73ad5456c 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 7dc6fbd0ada..9043c04e7b6 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 f319df37519..ba6b52a7aef 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -225,13 +225,16 @@ endfor;?> -