{% set dataState = {totalItems: totalItems, offset: offset, itemsLoadNumber: itemsLoadNumber}|json_encode %}
{# INICIAL DA PĂGINA #}
{% if init is defined and init %}
<input id="answers-fetch" class="answers-fetch" type="hidden" value="{{ dataState }}">
{# SCROLL LOAD #}
{% else %}
{{ dataState|raw }}##
{% endif %}
{% if answers is not empty %}
{% for answer in answers %}
{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: answer, layout: 'answer' } %}
{# MODAL -- OHTERS LIKES #}
{#{% embed "website/includes/modal.html.twig" with {'id': 'modalOthersLikesAnswer', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% include 'website/includes/modal-others-likes.html.twig' with { forumItem: answer, layout: 'answer' } %}
{% endblock %}
{% endembed %}#}
{% endfor %}
{% endif %}