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