-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: Homogeneize and improve the look of the emails
- Loading branch information
1 parent
dc89cf6
commit 7c9447d
Showing
15 changed files
with
149 additions
and
113 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace App\utils; | ||
|
||
// This file contains translations that are placed in files that POEdit isn't | ||
// able to parse. By listing them manually in this file, POEdit detects them, | ||
// even if this file is never used in the application. | ||
|
||
// See src/views/_layouts/emails/default.txt | ||
$t = _('This email has been sent by %s (%s)'); |
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,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> | ||
</head> | ||
|
||
<body style="font-size: 18px; line-height: 1.3; margin: 0; color: #100f18; font-family: Lucida, Arial, sans-serif; background-color: #efeff8;"> | ||
<div style="margin: 30px; text-align: center;"> | ||
<img src="cid:<?= $logo_cid ?>" alt="<?= get_app_configuration('brand') ?>" width="200" height="40" style="height: auto; max-width: 200px;"> | ||
</div> | ||
|
||
<div style="max-width: 525px; margin: 20px auto; padding: 30px; background-color: #fff; border-radius: 5px;"> | ||
<p> | ||
<?= _f('Hello %s,', $username) ?> | ||
</p> | ||
|
||
<?= $this->safe('content') ?> | ||
|
||
<p> | ||
<?= _('Best regards,') ?> | ||
</p> | ||
|
||
<p> | ||
<?= _f('The %s robot', get_app_configuration('brand')) ?> | ||
</p> | ||
</div> | ||
|
||
<p style="text-align: center; color: #4f4e5e; font-size: 14px;"> | ||
<?= _f('This email has been sent by <a href="%s" style="color: #4f4e5e;">%s</a>.', url_full('home'), get_app_configuration('brand')) ?> | ||
</p> | ||
</body> | ||
</html> |
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,12 @@ | ||
<?= _f('Hello %s,', $username) ?> | ||
|
||
<?= $content ?> | ||
|
||
|
||
<?= _('Best regards,') ?> | ||
|
||
<?= _f('The %s robot', get_app_configuration('brand')) ?> | ||
|
||
|
||
-- | ||
<?= _f('This email has been sent by %s (%s)', get_app_configuration('brand'), url_full('home')) ?> |
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,11 +1,8 @@ | ||
<p> | ||
<?= _('Hello,') ?> | ||
</p> | ||
<?php $this->layout('emails/default.phtml', [ | ||
'username' => $username, | ||
'logo_cid' => $logo_cid, | ||
]) ?> | ||
|
||
<p> | ||
<?= _f('Your message named “%s” has been sent. Someone will reply to you as soon as possible!', $subject) ?> | ||
</p> | ||
|
||
<p> | ||
<?= _f('Transactionally yours, the %s bot', get_app_configuration('brand')) ?> | ||
</p> |
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,7 +1,5 @@ | ||
<?= _('Hello,') ?> | ||
|
||
<?php $this->layout('emails/default.txt', [ | ||
'username' => $username, | ||
]) ?> | ||
|
||
<?= _f('Your message named “%s” has been sent. Someone will reply to you as soon as possible!', $subject) ?> | ||
|
||
|
||
<?= _f('Transactionally yours, the %s bot', get_app_configuration('brand')) ?> |
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,14 +1,11 @@ | ||
<p> | ||
<?= _f('Welcome %s,', $username) ?> | ||
</p> | ||
<?php $this->layout('emails/default.phtml', [ | ||
'username' => $username, | ||
'logo_cid' => $logo_cid, | ||
]) ?> | ||
|
||
<p> | ||
<?= _f('Thank you for your inscription on %s. To finish, you’ll have to confirm your email address. You just have to click on the following link, and you should be all good then:', url_full('home')) ?></br /> | ||
<a href="<?= url_full('account validation', ['t' => $token]) ?>"> | ||
<?= url_full('account validation', ['t' => $token]) ?> | ||
</a> | ||
</p> | ||
|
||
<p> | ||
<?= _('Have a nice day!') ?> | ||
</p> |
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,10 +1,8 @@ | ||
<?= _f('Welcome %s,', $username) ?> | ||
|
||
<?php $this->layout('emails/default.txt', [ | ||
'username' => $username, | ||
]) ?> | ||
|
||
<?= _f('Thank you for your inscription on %s. To finish, you’ll have to confirm your email address. You just have to click on the following link, and you should be all good then:', url_full('home')) ?> | ||
|
||
|
||
<?= url_full('account validation', ['t' => $token]) ?> | ||
|
||
|
||
<?= _('Have a nice day!') ?> |
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
Oops, something went wrong.