ShareByEmail extension: config update (#264)
* show config information in extension config * i18n EN, DE, FR, TR * Improve readme * bump 0.2.3 -> 0.3.0 * Update README.md * Update README.md * Whitespace * Fix attributes * Simplify with match * i18n fr * <code>mail()</code> * i18n: more fr --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
parent
a0164b51a1
commit
fb8cde2574
8 changed files with 120 additions and 68 deletions
17
xExtension-ShareByEmail/configure.phtml
Normal file
17
xExtension-ShareByEmail/configure.phtml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
?>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="group-name" for="words_list">
|
||||
<?= _t('shareByEmail.share.manage.mailer') ?>
|
||||
</label>
|
||||
<div class="group-controls">
|
||||
<?= match (FreshRSS_Context::systemConf()->mailer) {
|
||||
'mail' => _t('shareByEmail.share.manage.mail'),
|
||||
'smtp' => _t('shareByEmail.share.manage.smtp', FreshRSS_Context::systemConf()->smtp['from']),
|
||||
default => _t('shareByEmail.share.manage.error')
|
||||
} ?>
|
||||
<p class="help"><?= _i('help') ?> <?= _t('shareByEmail.share.manage.help') ?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue