Commit | Line | Data |
---|---|---|
7c12ba94 TD |
1 | {assign var='count' value=$event->getAuthors()|count}{assign var='guestTimesTriggered' value=$event->getNotification()->guestTimesTriggered}{assign var='authors' value=$event->getAuthors()|array_values} |
2 | {if $mimeType === 'text/plain'} | |
3 | {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture} | |
7bddbb51 | 4 | {lang}{$notificationContent[variables][languageItemPrefix]}.comment.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} {* this line ends with a space *} |
7c12ba94 | 5 | |
2595087d | 6 | {@$event->getUserNotificationObject()->getMailText($mimeType)}{/if} {* this line ends with a space *} |
7c12ba94 TD |
7 | {else} |
8 | {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.html{/lang}{/capture} | |
9 | {lang}{$notificationContent[variables][languageItemPrefix]}.comment.mail.html{/lang} | |
10 | {assign var='user' value=$event->getAuthor()} | |
11 | {assign var='comment' value=$event->getUserNotificationObject()} | |
12 | ||
541bbe3a TD |
13 | {if $notificationType == 'instant'}{assign var='avatarSize' value=48} |
14 | {else}{assign var='avatarSize' value=32}{/if} | |
7c12ba94 TD |
15 | {capture assign='commentContent'} |
16 | <table cellpadding="0" cellspacing="0" border="0"> | |
17 | <tr> | |
c8a69deb | 18 | <td><a href="{link controller='User' object=$user isHtmlEmail=true}{/link}" title="{$comment->username}">{@$user->getAvatar()->getSafeImageTag($avatarSize)}</a></td> |
7c12ba94 TD |
19 | <td class="boxContent"> |
20 | <div class="containerHeadline"> | |
21 | <h3> | |
22 | {if $comment->userID} | |
d13cae5b | 23 | <a href="{link controller='User' object=$user isHtmlEmail=true}{/link}">{$comment->username}</a> |
7c12ba94 TD |
24 | {else} |
25 | {$comment->username} | |
26 | {/if} | |
27 | · | |
28 | <small>{$comment->time|plainTime}</small> | |
29 | </h3> | |
30 | </div> | |
31 | <div> | |
2595087d | 32 | {@$comment->getMailText($mimeType)} |
7c12ba94 TD |
33 | </div> |
34 | </td> | |
35 | </tr> | |
36 | </table> | |
37 | {/capture} | |
38 | {include file='email_paddingHelper' block=true class='box'|concat:$avatarSize content=$commentContent sandbox=true} | |
39 | {/if} |