2020-06-11 21:58:59 +08:00
|
|
|
<#--
|
|
|
|
COMMENTS TEMPLATE
|
|
|
|
-->
|
|
|
|
<#macro comment target,type>
|
2021-07-23 20:19:27 +08:00
|
|
|
<#local
|
|
|
|
configs = '{
|
|
|
|
"autoLoad": ${settings.comment_auto_load?string("true", "false")},
|
|
|
|
"showUserAgent": ${settings.comment_show_user_agent?string("true", "false")},
|
|
|
|
"gravatarSource": "${settings.comment_gravatar_source!}",
|
|
|
|
"loadingStyle": "${settings.comment_loading_style!}",
|
|
|
|
"aWord": "${settings.comment_a_word!}",
|
|
|
|
"authorPopup": "${settings.comment_author_popup!}",
|
|
|
|
"emailPopup": "${settings.comment_email_popup!}",
|
|
|
|
"urlPopup": "${settings.comment_url_popup!}",
|
|
|
|
"notComment": "${settings.comment_not_comment!}"
|
|
|
|
}'
|
|
|
|
>
|
2021-01-01 23:52:06 +08:00
|
|
|
<#if (!target.disallowComment!false) && (!settings.keep_record_mode!false)>
|
2020-06-11 21:58:59 +08:00
|
|
|
<section id="comments" class="comments">
|
|
|
|
<div class="comments-main">
|
2020-12-05 13:30:29 +08:00
|
|
|
<h3 id="comments-list-title">
|
|
|
|
<span class="name i18n" data-iname="comment.name"></span>
|
|
|
|
<span class="noticom i18n" data-iname="comment.number" data-ivalue="${target.commentCount!0}"></span>
|
|
|
|
</h3>
|
2021-07-23 20:19:27 +08:00
|
|
|
<halo-comment id='${target.id?c}' type='${type}' configs='${configs}'/>
|
2020-06-11 21:58:59 +08:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</#if>
|
2020-05-31 19:04:57 +08:00
|
|
|
</#macro>
|