diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-26 17:56:19 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-01 10:46:00 +0200 |
commit | 23cc69b816f5df465c7c9d0df5630d00abfaf6d0 (patch) | |
tree | 4e094a7b3b637719ed73a557285308af76d6d1a4 /lib/defaults.php | |
parent | b19033b3533ce4726763aac6247aa156eb0a87d6 (diff) | |
download | nextcloud-server-23cc69b816f5df465c7c9d0df5630d00abfaf6d0.tar.gz nextcloud-server-23cc69b816f5df465c7c9d0df5630d00abfaf6d0.zip |
construct the foother in defaults.php so that we use always the same footer
Conflicts:
settings/templates/admin.php
Diffstat (limited to 'lib/defaults.php')
-rw-r--r-- | lib/defaults.php | 24 |
1 files changed, 23 insertions, 1 deletions
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 = "<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; + } + +} |