{% 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' %} {% else %} {% endif %}

{% if reactionType == 'all' %} {{ reaction.membername }} {% else %} {{ reaction.reactie.0.membername|raw }} {% endif %}

{{ showDate(reaction.tijdstip, true) }}

{% if reactionType == 'all' %}

{{ 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 %} {% endif %} {% if loggedin() %} {{ "LIKE_IT"|translate }} ({{ likes }}) {% endif %}

{% if reaction.itemid is defined and reaction.itemid is not empty %} {% endif %} {% if campaign is defined and campaign is not null %} {% endif %}
{% for comment in comments %}

{{ comment.membername }}

{{ showDate(comment.tijdstip, true) }}

{{ comment.value|striptags('')|raw }}

{% endfor %}
{% endfor %}