{% for reaction in reactions %} {% if loop.index is odd %} {% if "DEFAULT_BLOG_ITEMS_PERPAGE"|translate is odd and currentPage is odd %} {% set commentAlternate = "even" %} {% else %} {% set commentAlternate = "odd" %} {% endif %} {% else %} {% if "DEFAULT_BLOG_ITEMS_PERPAGE"|translate is odd and currentPage is odd %} {% set commentAlternate = "odd" %} {% else %} {% set commentAlternate = "even" %} {% endif %} {% endif %} {% if reaction.user_session is defined %} {% set likes = getLikes(reaction.user_session) %} {% else %} 0 {% endif %} {# use an offset of the number of items per page for each page minus the first one #} {% if currentPage == 1 %} {% set counter = ("DEFAULT_BLOG_ITEMS_PERPAGE"|translate * (currentPage - 1)) + loop.index %} {% else %} {% set counter = ("DEFAULT_BLOG_REACTIONS_PERPAGE_LOADMORE"|translate * (currentPage - 1)) + loop.index %} {% endif %}
{% if reactionType == 'all' %} {{ reaction.membername }} {% else %} {{ reaction.reactie.0.membername|raw }} {% endif %}
{{ showDate(reaction.tijdstip, true) }}
{{ reaction.value|replace({ ('http://'): 'https://' })|raw }}
{% else %}{{ reaction.reactie.0.value|replace({ ('http://'): 'https://' })|raw }}
{% endif %}
{% set comments = reactionType == 'all' ? reaction.reacties.0.reacties : reaction.reactie.0.reacties %} {% if comments|length > 0 %} {{ "SHOW_ALL_COMMENTS"|translate }} ({% if reaction.reacties.0.reacties is defined %}{{ reaction.reacties.0.reacties|length }}{% else %}{{ reaction.reactie.0.reacties|length}}{% endif %} {% endif %} {% if loggedin() %} {{ "COMMENT"|translate }} {{ "LIKE_IT"|translate }} ({{ likes }}) {% endif %}
{{ comment.membername }}
{{ showDate(comment.tijdstip, true) }}
{{ comment.value|striptags('
')|raw }}