From 1ed002b703c25eb4c68fab84f3bd70b649d65803 Mon Sep 17 00:00:00 2001 From: Dan Untenzu Date: Tue, 17 Jan 2017 15:13:13 +0100 Subject: [PATCH] [FEATURE] Enable a custom website title Enable the administrator to set a custom title for his installation of Jirafeau, eg. "John Doe Filecenter". --- lib/config.original.php | 4 ++++ lib/template/header.php | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/config.original.php b/lib/config.original.php index cd39bb3..2cc93e7 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -51,6 +51,10 @@ $cfg['organisation'] = 'ACME'; */ $cfg['contactperson'] = ''; +/* Give the installation a title, eg. 'Datahub' or 'John Doe Filehost' + */ +$cfg['title'] = ''; + /* Propose a preview link if file type is previewable */ $cfg['preview'] = true; diff --git a/lib/template/header.php b/lib/template/header.php index 5a365b9..59d145d 100644 --- a/lib/template/header.php +++ b/lib/template/header.php @@ -46,11 +46,16 @@ else } ?> - <?php echo t('Jirafeau, your web file repository'); ?> + <?php echo (true === empty($cfg['title']))? t('Jirafeau, your web file repository') : $cfg['title']; ?> +
-

+

+ + + +

-- 2.34.1