Merge remote-tracking branch 'refs/remotes/origin/3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / email_dailyNotification.tpl
1 {assign var='maximum' value=7}
2 {if $notifications|count == $maximum + 1}{assign var='maximum' value=$maximum + 1}{/if}
3 {assign var='remaining' value=$notifications|count}
4 {assign var='remaining' value=$remaining-$maximum}
5 {if $mimeType === 'text/plain'}
6 {capture assign='content'}
7 {lang}wcf.user.notification.mail.daily.plaintext.intro{/lang}
8
9 ---------------
10
11 {implode from=$notifications|array_slice:0:$maximum item='notification' glue="\n---------------\n\n"}
12 {assign var='event' value=$notification[event]}
13 {assign var='notificationContent' value=$notification[notificationContent]}
14 {assign var='notificationType' value=$notification[notificationType]}
15 {if $notificationContent|is_array}{include file=$notificationContent[template] application=$notificationContent[application] variables=$notificationContent[variables]}{*
16 *}{else}{@$notificationContent}{/if}
17 {/implode}
18
19 ---------------
20 {lang}wcf.user.notification.mail.daily.plaintext.outro{/lang}
21 {/capture}
22 {include file='email_plaintext'}
23 {else}
24 {capture assign='content'}
25 {lang}wcf.user.notification.mail.daily.html.intro{/lang}
26
27 {foreach from=$notifications|array_slice:0:$maximum item='notification'}
28 {assign var='event' value=$notification[event]}
29 {assign var='notificationContent' value=$notification[notificationContent]}
30 {assign var='notificationType' value=$notification[notificationType]}
31 <div class="largeMarginTop">
32 {if $notificationContent|is_array}
33 {include file=$notificationContent[template] application=$notificationContent[application] variables=$notificationContent[variables]}
34 {else}
35 {@$notificationContent}
36 {/if}
37 </div>
38 {/foreach}
39
40 {lang}wcf.user.notification.mail.daily.html.outro{/lang}
41 {/capture}
42 {include file='email_html'}
43 {/if}