mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 15:19:55 +03:00
feat: add admin telegram contact config (#3134)
This commit is contained in:
parent
2ef98b299f
commit
86c3a969b8
3 changed files with 16 additions and 4 deletions
|
@ -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),
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -53,10 +53,18 @@
|
|||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<br>
|
||||
|
||||
<?php if ($admin_email): ?>
|
||||
<span>
|
||||
You may email the administrator of this RSS-Bridge instance at
|
||||
<a href="mailto:<?= e($admin_email) ?>"><?= e($admin_email) ?></a>
|
||||
</span>
|
||||
<div>
|
||||
Email: <a href="mailto:<?= e($admin_email) ?>"><?= e($admin_email) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($admin_telegram): ?>
|
||||
<div>
|
||||
Telegram: <a href="<?= e($admin_telegram) ?>"><?= e($admin_telegram) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
|
|
Loading…
Add table
Reference in a new issue