Commit 1703da78 authored by Tino Goratsch's avatar Tino Goratsch

refactored the email layout of the system module to leverage all supported...

refactored the email layout of the system module to leverage all supported features of the Mailer()-class
parent 75d69ca0
{extends file="asset:System/layout.email.tpl"}
{block EMAIL_HEAD}
<title>{$mail.title}</title>
{/block}
{block EMAIL_CONTENT}
{$mail.body}
{if !empty($mail.signature)}
<hr>
{$mail.signature}
{/if}
{/block}
{extends file="asset:System/layout.email.tpl"}
{block EMAIL_HEAD}
<title>{$mail.title}</title>
{/block}
{block EMAIL_CONTENT_BEFORE}
<p class="text-center">
<a href="{$mail.url_web_view}">{lang t="newsletter|use_web_view"}</a>
</p>
{/block}
{block EMAIL_CONTENT}
<h1>{$mail.title}</h1>
{$mail.body}
{if !empty($mail.signature)}
<hr>
{$mail.signature}
{/if}
{$smarty.block.parent}
{/block}
......@@ -65,6 +65,5 @@
<item key="unsubscribe">Austragen</item>
<item key="unsubscribe_error">Beim Löschen des Newsletterkontos ist ein Fehler aufgetreten.</item>
<item key="unsubscribe_success">Das Newsletterkonto wurde erfolgreich gelöscht.</item>
<item key="use_web_view">Wird der Newsletter nicht korrekt dargestellt? Hier klicken um Ihn im Browser zu öffnen.</item>
</keys>
</language>
......@@ -65,6 +65,5 @@
<item key="unsubscribe">Unsubscribe</item>
<item key="unsubscribe_error">While deleting the newsletter account an error has occurred.</item>
<item key="unsubscribe_success">The newsletter account has been successfully deleted.</item>
<item key="use_web_view">Having problems displaying this newsletter? Click here to open it in your Browser.</item>
</keys>
</language>
<html>
<head>
{block EMAIL_HEAD}{/block}
<title>{$mail.title}</title>
<meta name="viewport" content="width=device-width"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="text/html; charset={$mail.charset}">
<meta name=”x-apple-disable-message-reformatting”>
{block EMAIL_HEAD}{/block}
{block EMAIL_STYLESHEET}
<style type="text/css">
html, body {
......@@ -60,12 +61,24 @@
{/block}
</head>
<body>
{block EMAIL_CONTENT_BEFORE}{/block}
{block EMAIL_CONTENT_BEFORE}
{if !empty($mail.url_web_view)}
<p class="text-center">
<a href="{$mail.url_web_view}">{lang t="newsletter|use_web_view"}</a>
</p>
{/if}
{/block}
<center>
<table class="email-content-wrapper">
<tr>
<td>
{block EMAIL_CONTENT}{/block}
{block EMAIL_CONTENT}
{$mail.body}
{if !empty($mail.signature)}
<hr>
{$mail.signature}
{/if}
{/block}
</td>
</tr>
</table>
......
......@@ -310,6 +310,7 @@
<item key="uninstall_module">Modul deinstallieren</item>
<item key="unmark_all">Markierung aufheben</item>
<item key="upload_error">Die Datei %s konnte leider nicht verschoben werden.</item>
<item key="use_web_view">Wird die E-Mail nicht korrekt dargestellt? Hier klicken um diese im Browser zu öffnen.</item>
<item key="version">Version</item>
<item key="website">Website</item>
<item key="window_blank">Neues Fenster (_blank)</item>
......
......@@ -310,6 +310,7 @@
<item key="uninstall_module">Uninstall module</item>
<item key="unmark_all">Unmark all</item>
<item key="upload_error">While moving the file %s an error has occurred.</item>
<item key="use_web_view">Having problems displaying this e-mail? Click here to open it in your Browser.</item>
<item key="version">Version</item>
<item key="website">Website</item>
<item key="window_blank">New window (_blank)</item>
......
{extends file="asset:System/layout.email.tpl"}
{block EMAIL_HEAD}
<title>{$mail.title}</title>
{/block}
{block EMAIL_CONTENT}
{$mail.body}
{/block}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment