Fix typo
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / templates / email_notification_conversationMessage.tpl
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}
4 {lang}wcf.user.notification.conversation.message.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered}
5
6 {@$event->getUserNotificationObject()->getMailText($mimeType)}{/if} {* this line ends with a space *}
7 {else}
8 {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.html{/lang}{/capture}
9 {lang}wcf.user.notification.conversation.message.mail.html{/lang}
10 {assign var='user' value=$event->getAuthor()}
11 {assign var='message' value=$event->getUserNotificationObject()}
12 {assign var='conversation' value=$message->getConversation()}
13
14 {if $notificationType == 'instant'}{assign var='avatarSize' value=48}
15 {else}{assign var='avatarSize' value=32}{/if}
16 {capture assign='messageContent'}
17 <table cellpadding="0" cellspacing="0" border="0">
18 <tr>
19 <td><a href="{link controller='User' object=$user isHtmlEmail=true}{/link}" title="{$message->username}">{@$user->getAvatar()->getSafeImageTag($avatarSize)}</a></td>
20 <td class="boxContent">
21 <div class="containerHeadline">
22 <h3>
23 {if $message->userID}
24 <a href="{link controller='User' object=$user isHtmlEmail=true}{/link}">{$message->username}</a>
25 {else}
26 {$message->username}
27 {/if}
28 &#xb7;
29 <a href="{$message->getLink()}"><small>{time time=$message->time type='plainTime'}</small></a>
30 </h3>
31 </div>
32 <div>
33 {@$message->getMailText($mimeType)}
34 </div>
35 </td>
36 </tr>
37 </table>
38 {/capture}
39 {include file='email_paddingHelper' block=true class='box'|concat:$avatarSize content=$messageContent sandbox=true}
40 {/if}