From: Tim Düsterhus Date: Fri, 10 Jul 2015 14:05:37 +0000 (+0200) Subject: Add emailTextHtml.tpl X-Git-Tag: 3.0.0_Beta_1~2173^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c52e0fdc60922a71e7b7757472ee8bb9cea3921;p=GitHub%2FWoltLab%2FWCF.git Add emailTextHtml.tpl --- 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'); + } +}