|
8 | 8 | </div> |
9 | 9 | {else} |
10 | 10 | <div class="commentList__item jsComment{if $__wcf->getUserProfileHandler()->isIgnoredUser($comment->userID, 2)} ignoredUserContent{/if}" |
11 | | - data-comment-id="{@$comment->commentID}" |
12 | | - {@$__wcf->getReactionHandler()->getDataAttributes('com.woltlab.wcf.comment', $comment->commentID)} |
| 11 | + data-comment-id="{$comment->commentID}" |
| 12 | + {unsafe:$__wcf->getReactionHandler()->getDataAttributes('com.woltlab.wcf.comment', $comment->commentID)} |
13 | 13 | data-can-edit="{if $comment->isEditable()}true{else}false{/if}" data-can-delete="{if $comment->isDeletable()}true{else}false{/if}" |
14 | | - data-responses="{@$comment->responses}" data-last-response-time="{if $ignoreLastResponseTime|empty}{@$comment->getLastResponseTime()}{else}1{/if}" data-is-disabled="{@$comment->isDisabled}" |
15 | | - data-last-response-id="{if $ignoreLastResponseTime|empty}{@$comment->getLastResponseID()}{else}0{/if}" |
| 14 | + data-responses="{$comment->responses}" data-last-response-time="{if $ignoreLastResponseTime|empty}{$comment->getLastResponseTime()}{else}1{/if}" data-is-disabled="{$comment->isDisabled}" |
| 15 | + data-last-response-id="{if $ignoreLastResponseTime|empty}{$comment->getLastResponseID()}{else}0{/if}" |
16 | 16 | > |
17 | | - <woltlab-core-comment class="comment" comment-id="{@$comment->commentID}" itemprop="comment" itemscope itemtype="http://schema.org/Comment"> |
| 17 | + <woltlab-core-comment class="comment" comment-id="{$comment->commentID}" itemprop="comment" itemscope itemtype="http://schema.org/Comment"> |
18 | 18 | <div class="comment__header"> |
19 | 19 | <div class="comment__avatar"> |
20 | 20 | {user object=$comment->getUserProfile() type='avatar32' ariaHidden='true' tabindex='-1'} |
21 | 21 | </div> |
22 | 22 | <div class="comment__author" itemprop="author" itemscope itemtype="http://schema.org/Person"> |
23 | 23 | {if $comment->userID} |
24 | | - <a href="{$comment->getUserProfile()->getLink()}" class="comment__author__link userLink" data-object-id="{@$comment->userID}" itemprop="url"> |
25 | | - <span itemprop="name">{@$comment->getUserProfile()->getFormattedUsername()}</span> |
| 24 | + <a href="{$comment->getUserProfile()->getLink()}" class="comment__author__link userLink" data-object-id="{$comment->userID}" itemprop="url"> |
| 25 | + <span itemprop="name">{unsafe:$comment->getUserProfile()->getFormattedUsername()}</span> |
26 | 26 | </a> |
27 | 27 | {else} |
28 | 28 | <span itemprop="name">{$comment->username}</span> |
29 | 29 | {/if} |
30 | 30 | </div> |
31 | 31 | <div class="comment__date"> |
32 | | - <meta itemprop="datePublished" content="{@$comment->time|date:'c'}"> |
33 | | - <a href="{$comment->getLink()}" class="comment__permalink">{@$comment->time|time}</a> |
| 32 | + <meta itemprop="datePublished" content="{time type='custom' time=$comment->time format='c'}"> |
| 33 | + <a href="{$comment->getLink()}" class="comment__permalink">{time time=$comment->time}</a> |
34 | 34 | </div> |
35 | 35 | <div class="comment__status"> |
36 | 36 | {if $comment->isDisabled} |
|
44 | 44 | {event name='commentStatus'} |
45 | 45 | </div> |
46 | 46 | {hascontent} |
47 | | - <div class="comment__menu dropdown" id="commentOptions{@$comment->commentID}"> |
| 47 | + <div class="comment__menu dropdown" id="commentOptions{$comment->commentID}"> |
48 | 48 | <button type="button" class="dropdownToggle" aria-label="{lang}wcf.global.button.more{/lang}">{icon name='ellipsis-vertical'}</button> |
49 | 49 |
|
50 | 50 | <ul class="dropdownMenu"> |
|
95 | 95 | {event name='commentBeforeMessage'} |
96 | 96 |
|
97 | 97 | <div class="comment__message"> |
98 | | - <div class="htmlContent userMessage" itemprop="text">{@$comment->getFormattedMessage()}</div> |
| 98 | + <div class="htmlContent userMessage" itemprop="text">{unsafe:$comment->getFormattedMessage()}</div> |
99 | 99 | </div> |
100 | 100 |
|
101 | 101 | {event name='commentAfterMessage'} |
|
140 | 140 |
|
141 | 141 | {if !$ignoreLastResponseTime|empty || $comment|count} |
142 | 142 | <div class="comment__responses"> |
143 | | - <div class="commentResponseList" data-responses="{if $commentCanModerate}{@$comment->unfilteredResponses}{else}{@$comment->responses}{/if}"> |
| 143 | + <div class="commentResponseList" data-responses="{if $commentCanModerate}{$comment->unfilteredResponses}{else}{$comment->responses}{/if}"> |
144 | 144 | {if $ignoreLastResponseTime|empty}{include file='commentResponseList' responseList=$comment}{/if} |
145 | 145 | </div> |
146 | 146 | </div> |
|
0 commit comments