2016-09-15 13:18:14 +00:00
|
|
|
{% if grav.twig.enable_comments_plugin %}
|
2017-05-11 17:42:43 +00:00
|
|
|
{% set scope = scope ?: 'data.' %}
|
2015-10-07 18:18:44 +00:00
|
|
|
|
2017-10-19 16:53:40 +00:00
|
|
|
{% include 'partials/comments.form.html.twig' %}
|
2015-10-13 21:39:13 +00:00
|
|
|
|
2015-10-15 16:04:02 +00:00
|
|
|
{% if grav.twig.comments|length %}
|
2015-10-07 14:23:32 +00:00
|
|
|
|
2015-10-15 16:04:02 +00:00
|
|
|
<h3>{{'PLUGIN_COMMENTS.COMMENTS'|t}}</h3>
|
2017-10-20 13:08:26 +00:00
|
|
|
<a class="comment-add-new" href="#">{{'PLUGIN_COMMENTS.ADD_NEW'|t}}</a>
|
2017-10-19 16:53:40 +00:00
|
|
|
<div class="row comments">
|
2015-10-15 16:04:02 +00:00
|
|
|
{% for comment in grav.twig.comments|array_reverse %}
|
2017-10-19 17:40:02 +00:00
|
|
|
<div class="comment comment-level-{{comment.level|e}}" data-Id="{{comment.id}}" >
|
|
|
|
<div class="comment-left">
|
2017-10-19 16:53:40 +00:00
|
|
|
<a href="#">
|
2017-10-19 17:40:02 +00:00
|
|
|
<img class="comment-object" src="https://www.gravatar.com/avatar/{{comment.email|trim|lower|md5}}?d=identicon" alt="user icon">
|
2017-10-19 16:53:40 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2017-10-19 17:40:02 +00:00
|
|
|
<div class="comment-body">
|
|
|
|
<div class="comment-heading">
|
|
|
|
<div class="comment-title"><h4>{{comment.title}}</h4></div>
|
2017-10-20 13:08:26 +00:00
|
|
|
<div class="comment-reply"><a class="comment-add-reply" href="#">{{'PLUGIN_COMMENTS.ADD_REPLY'|t}}</a></div>
|
2017-10-19 17:40:02 +00:00
|
|
|
<div class="comment-meta">{{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author}}</div>
|
2017-10-19 16:53:40 +00:00
|
|
|
</div>
|
2017-10-19 17:40:02 +00:00
|
|
|
<div class="comment-text" >
|
2017-10-19 16:53:40 +00:00
|
|
|
{{comment.text}}
|
|
|
|
</div>
|
|
|
|
{{nested}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-15 16:04:02 +00:00
|
|
|
{% endfor %}
|
2017-10-19 16:53:40 +00:00
|
|
|
</div>
|
|
|
|
|
2015-10-15 16:04:02 +00:00
|
|
|
{% endif %}
|
2015-11-13 17:46:28 +00:00
|
|
|
{% endif %}
|
2017-10-19 16:53:40 +00:00
|
|
|
|
|
|
|
|