mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02:00
Extract System emails from enotify
- Removed every SYSTEM_EMAIL occurrence in enotify - Introduced a "SystemMailBuilder" for build system emails - Replaced every SYSTEM_EMAIL usage in the classes with calling this builder - Added tests for this new Builder - Split the email templates between "base" template for email and concrete usages for different use cases
This commit is contained in:
parent
74490d6594
commit
3291728059
18 changed files with 647 additions and 118 deletions
22
view/templates/email/html.tpl
Normal file
22
view/templates/email/html.tpl
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>{{$banner}}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<table style="border:1px solid #ccc">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;">
|
||||
<img style="width:32px;height:32px; float:left;" src='{{$siteurl}}/images/friendica-32.png'>
|
||||
<div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">{{$product}}</div>
|
||||
<div style="clear: both;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{$htmlversion nofilter}}
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
3
view/templates/email/system/html.tpl
Normal file
3
view/templates/email/system/html.tpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
<tr><td style="padding-right:22px;">{{$htmlversion nofilter}}</td></tr>
|
||||
<tr><td></td><td>{{$thanks}}</td></tr>
|
||||
<tr><td></td><td>{{$site_admin}}</td></tr>
|
7
view/templates/email/system/text.tpl
Normal file
7
view/templates/email/system/text.tpl
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
{{$preamble nofilter}}
|
||||
|
||||
{{$textversion nofilter}}
|
||||
|
||||
{{$thanks nofilter}}
|
||||
{{$site_admin nofilter}}
|
Loading…
Add table
Add a link
Reference in a new issue