From 86c3a969b8b2d949a1b8b26affd30cafe30bf73d Mon Sep 17 00:00:00 2001 From: Dag Date: Mon, 7 Nov 2022 18:36:52 +0100 Subject: [PATCH] feat: add admin telegram contact config (#3134) --- actions/FrontpageAction.php | 1 + config.default.ini.php | 3 +++ templates/frontpage.html.php | 16 ++++++++++++---- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/actions/FrontpageAction.php b/actions/FrontpageAction.php index 4b9d7cd3..f015062f 100644 --- a/actions/FrontpageAction.php +++ b/actions/FrontpageAction.php @@ -25,6 +25,7 @@ final class FrontpageAction implements ActionInterface return render(__DIR__ . '/../templates/frontpage.html.php', [ 'admin_email' => Configuration::getConfig('admin', 'email'), + 'admin_telegram' => Configuration::getConfig('admin', 'telegram'), 'bridges' => $body, 'active_bridges' => $activeBridges, 'total_bridges' => count($bridgeClassNames), diff --git a/config.default.ini.php b/config.default.ini.php index 668a1e22..776346a5 100644 --- a/config.default.ini.php +++ b/config.default.ini.php @@ -33,6 +33,9 @@ custom_timeout = false ; "" = Disabled (default) email = "" +; Advertise a contact Telegram url e.g. "https://t.me/elegantobjects" +telegram = "" + ; Show Donation information for bridges if available. ; This will display a 'Donate' link on the bridge view ; and a "Donate" button in the HTML view of the bridges feed. diff --git a/templates/frontpage.html.php b/templates/frontpage.html.php index 4560dc28..5daa63bd 100644 --- a/templates/frontpage.html.php +++ b/templates/frontpage.html.php @@ -53,10 +53,18 @@ +
+ - - You may email the administrator of this RSS-Bridge instance at - - +
+ Email: +
+ + +
+ Telegram: +
+ +