From 7c52e0fdc60922a71e7b7757472ee8bb9cea3921 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 10 Jul 2015 16:05:37 +0200 Subject: [PATCH] Add emailTextHtml.tpl --- com.woltlab.wcf/templates/emailTextHtml.tpl | 22 +++++++++++++ .../email/mime/HtmlTextMimePart.class.php | 32 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 com.woltlab.wcf/templates/emailTextHtml.tpl create mode 100644 wcfsetup/install/files/lib/system/email/mime/HtmlTextMimePart.class.php diff --git a/com.woltlab.wcf/templates/emailTextHtml.tpl b/com.woltlab.wcf/templates/emailTextHtml.tpl new file mode 100644 index 0000000000..4cec0b422c --- /dev/null +++ b/com.woltlab.wcf/templates/emailTextHtml.tpl @@ -0,0 +1,22 @@ + + +
+ +{if $__wcf->getStyleHandler()->getStyle()->getPageLogo()}{/if} +{event name='headerLogo'} + +
+
{$content}
+{hascontent} +
+--
+{content} +{@MAIL_SIGNATURE|language} +{if $mailbox|is_a:'wcf\system\email\UserMailbox'} +{if MAIL_SIGNATURE|language}

{/if} +This email was sent to you, because you registered on the {$mailbox->getUser()->registrationDate|plainTime} at {@PAGE_TITLE|language}.{/if} {* TODO: language item *} +{/content} +
+{/hascontent} + + diff --git a/wcfsetup/install/files/lib/system/email/mime/HtmlTextMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/HtmlTextMimePart.class.php new file mode 100644 index 0000000000..6b22c032c7 --- /dev/null +++ b/wcfsetup/install/files/lib/system/email/mime/HtmlTextMimePart.class.php @@ -0,0 +1,32 @@ + + * @package com.woltlab.wcf + * @subpackage system.email.mime + * @category Community Framework + */ +class HtmlTextMimePart extends AbstractRecipientAwareTextMimePart { + /** + * template to use for this email + * @var string + */ + protected $template = 'emailTextHtml'; + + /** + * Creates a new HtmlTextMimePart. + * + * @param string $content Content of this text part. + */ + public function __construct($content) { + parent::__construct($content, 'text/html'); + } +} -- 2.20.1