marketplace_comment.twig (2056B)
1 {% if comments %} 2 {% for comment in comments %} 3 <div id="comment{{ comment.extension_comment_id }}" class="media"> 4 <div class="media-left"><img src="{{ comment.image }}" alt="{{ comment.member }}" title="{{ comment.member }}" class="media-object" /></div> 5 <div class="media-body"> 6 <p class="media-heading">{{ comment.member }} <span>{{ comment.date_added }}</span></p> 7 <p>{{ comment.comment }}</p> 8 <div class="reply"> 9 <div> {% if comment.reply %} 10 11 {% for reply in comment.reply %} 12 <div class="media"> 13 <div class="media-left"><img src="{{ reply.image }}" alt="{{ reply.member }}" title="{{ reply.member }}" class="media-object" /></div> 14 <div class="media-body"> 15 <p class="media-heading">{{ reply.member }} <span>{{ reply.date_added }}</span></p> 16 <p>{{ reply.comment }}</p> 17 </div> 18 </div> 19 {% endfor %} 20 21 {% if comment.next %} 22 <div class="text-center"><a href="{{ comment.next }}" class="btn btn-block">see more replies...</a></div> 23 {% endif %} 24 25 {% endif %} <a href="{{ comment.refresh }}" class="reply-refresh hide">refresh</a> </div> 26 </div> 27 <p class="text-right"> 28 <button type="button" class="btn btn-link btn-xs">{{ button_reply }}</button> 29 </p> 30 <div class="reply-input-box" style="display: none;"> 31 <div class="media"> 32 <div class="media-body"> 33 <div class="form-group"> 34 <label for="input-comment{{ comment.extension_comment_id }}">Leave your comment</label> 35 <textarea name="comment" placeholder="Write your comment here..." id="input-comment{{ comment.extension_comment_id }}" class="form-control"></textarea> 36 </div> 37 <div class="text-right"><a href="{{ comment.add }}" class="btn btn-primary btn-sm">Comment</a></div> 38 </div> 39 </div> 40 </div> 41 </div> 42 </div> 43 </div> 44 {% endfor %} <br /> 45 <div class="text-center">{{ pagination }}</div> 46 {% endif %}