8ccd8f900f03a23eafac5fb893a29ecc2ce1f470
[GitHub/WoltLab/woltlab.github.io.git] / snippets / tutorial / tutorial-series / part-3 / templates / person.tpl
1 {capture assign='pageTitle'}{$person} - {lang}wcf.person.list{/lang}{/capture}
2
3 {capture assign='contentTitle'}{$person}{/capture}
4
5 {include file='header'}
6
7 {if $person->enableComments}
8 {if $commentList|count || $commentCanAdd}
9 <section id="comments" class="section sectionContainerList">
10 <header class="sectionHeader">
11 <h2 class="sectionTitle">{lang}wcf.person.comments{/lang}{if $person->comments} <span class="badge">{#$person->comments}</span>{/if}</h2>
12 </header>
13
14 {include file='__commentJavaScript' commentContainerID='personCommentList'}
15
16 <div class="personComments">
17 <ul id="personCommentList" class="commentList containerList"
18 data-can-add="{if $commentCanAdd}true{else}false{/if}"
19 data-object-id="{@$person->personID}"
20 data-object-type-id="{@$commentObjectTypeID}"
21 data-comments="{if $person->comments}{@$commentList->countObjects()}{else}0{/if}"
22 data-last-comment-time="{@$lastCommentTime}"
23 >
24 {include file='commentListAddComment' wysiwygSelector='personCommentListAddComment'}
25 {include file='commentList'}
26 </ul>
27 </div>
28 </section>
29 {/if}
30 {/if}
31
32 <footer class="contentFooter">
33 {hascontent}
34 <nav class="contentFooterNavigation">
35 <ul>
36 {content}{event name='contentFooterNavigation'}{/content}
37 </ul>
38 </nav>
39 {/hascontent}
40 </footer>
41
42 {include file='footer'}