-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShareByEmail extension: config update #264
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c291bd7
show config information in extension config
math-GH 15a2d5e
i18n EN, DE, FR, TR
math-GH 4d49214
Improve readme
math-GH ec1ea8d
bump 0.2.3 -> 0.3.0
math-GH 01910de
Update README.md
math-GH 398a6cf
Update README.md
math-GH 828f46c
Whitespace
Alkarex 22ed85e
Fix attributes
Alkarex 5750088
Simplify with match
Alkarex 60c9b24
i18n fr
Alkarex 4a43f02
<code>mail()</code>
math-GH f6a2fc2
i18n: more fr
Alkarex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "Share By Email", | ||
"author": "Marien Fressinaud", | ||
"description": "Improve the sharing by email system.", | ||
"version": "0.2.3", | ||
"entrypoint": "ShareByEmail", | ||
"type": "user" | ||
"name": "Share By Email", | ||
"author": "Marien Fressinaud", | ||
"description": "Improve the sharing by email system.", | ||
"version": "0.3.0", | ||
"entrypoint": "ShareByEmail", | ||
"type": "user" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,75 +3,75 @@ | |
/** @var ShareByEmail\mailers\View $this */ | ||
?> | ||
<div class="post"> | ||
<h1><?= _t('shareByEmail.share.title') ?></h1> | ||
<h1><?= _t('shareByEmail.share.title') ?></h1> | ||
|
||
<p> | ||
<?= _t('shareByEmail.share.intro', isset($this->entry) ? $this->entry->title() : '') ?> | ||
</p> | ||
<p> | ||
<?= _t('shareByEmail.share.intro', isset($this->entry) ? $this->entry->title() : '') ?> | ||
</p> | ||
|
||
<form class="sbe-form-share" method="POST"> | ||
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> | ||
<form class="sbe-form-share" method="POST"> | ||
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> | ||
|
||
<div class="form-group"> | ||
<label class="group-name" for="to"> | ||
<?= _t('shareByEmail.share.form.to') ?> | ||
</label> | ||
<div class="form-group"> | ||
<label class="group-name" for="to"> | ||
<?= _t('shareByEmail.share.form.to') ?> | ||
</label> | ||
|
||
<div class="group-controls"> | ||
<input | ||
type="email" | ||
name="to" | ||
id="to" | ||
class="long" | ||
placeholder="[email protected]" | ||
required | ||
autofocus | ||
value="<?= $this->to ?>" | ||
/> | ||
</div> | ||
</div> | ||
<div class="group-controls"> | ||
<input | ||
type="email" | ||
name="to" | ||
id="to" | ||
class="long" | ||
placeholder="[email protected]" | ||
required="required" | ||
autofocus="autofocus" | ||
value="<?= $this->to ?>" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="group-name" for="subject"> | ||
<?= _t('shareByEmail.share.form.subject') ?> | ||
</label> | ||
<div class="form-group"> | ||
<label class="group-name" for="subject"> | ||
<?= _t('shareByEmail.share.form.subject') ?> | ||
</label> | ||
|
||
<div class="group-controls"> | ||
<input | ||
type="text" | ||
name="subject" | ||
id="subject" | ||
class="long" | ||
required | ||
value="<?= $this->subject ?>" | ||
/> | ||
</div> | ||
</div> | ||
<div class="group-controls"> | ||
<input | ||
type="text" | ||
name="subject" | ||
id="subject" | ||
class="long" | ||
required="required" | ||
value="<?= $this->subject ?>" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="group-name" for="content"> | ||
<?= _t('shareByEmail.share.form.content') ?> | ||
</label> | ||
<div class="form-group"> | ||
<label class="group-name" for="content"> | ||
<?= _t('shareByEmail.share.form.content') ?> | ||
</label> | ||
|
||
<div class="group-controls"> | ||
<textarea | ||
name="content" | ||
id="content" | ||
required | ||
><?= $this->content ?></textarea> | ||
</div> | ||
</div> | ||
<div class="group-controls"> | ||
<textarea | ||
name="content" | ||
id="content" | ||
required="required" | ||
><?= $this->content ?></textarea> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group form-actions"> | ||
<div class="group-controls"> | ||
<button type="submit" class="btn btn-important"> | ||
<?= _t('shareByEmail.share.form.send') ?> | ||
</button> | ||
<div class="form-group form-actions"> | ||
<div class="group-controls"> | ||
<button type="submit" class="btn btn-important"> | ||
<?= _t('shareByEmail.share.form.send') ?> | ||
</button> | ||
|
||
<a class="btn" href="<?= _url('index', 'index') ?>"> | ||
<?= _t('shareByEmail.share.form.cancel') ?> | ||
</a> | ||
</div> | ||
</div> | ||
</form> | ||
<a class="btn" href="<?= _url('index', 'index') ?>"> | ||
<?= _t('shareByEmail.share.form.cancel') ?> | ||
</a> | ||
</div> | ||
</div> | ||
</form> | ||
</div> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was that? 😮
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @marienfressinaud