{% for currentNewsIndex,news in newsFeedData %} {# {% if loop.index > 6 %}#} {% if app.request.get('_route') == "homepage" and currentNewsIndex % 6 == 0 %} {% set boxIndex = (currentNewsIndex / 6) %} {% if newsBoxes[boxIndex] is defined %}
{{ newsBoxes[boxIndex]|raw }}
{% endif %} {% endif %} {# {{currentNewsIndex}} #} {# {{ loop.index }} #}
{% if news.isvideo %}{% endif %}
{% if not news.isProgramNews() %}
{% if category is defined %} {% if not category.getEvergreen() %} {% endif %} {% else %} {% endif %} {% if chiledCartegories is defined %} {% if chiledCartegories is not empty %}
{{ news.categoryName }}
{% else %} {% endif %} {% else %}
{% if news.categoryName == 'International Celebrities'%}مشاهير عالمية{% else %}{% if news.categoryName != 'الأبراج: هكذا تتفق وهكذا تفترق' %}{{ news.categoryName }}{% endif %}{% endif %}
{% endif %}
{% endif %}

{{ news.title|raw }}

{% if (show_hits is defined and show_hits) or (is_protected is defined and is_protected) %} hits:{{ news.hits }} {% endif %}
{% if loop.index is divisible by(6) %} {% set index = loop.index / 6 %}
{{ ads is not null ? ads.printAd('desktop', 'newsfeed',index)|raw : '' }}
{% endif %} {% if ads is defined %} {% if loop.index == 2 and app.request.get('page') == 0 %} {% set index = (loop.index / 2) %}
{{ ads is not null ? ads.printAd('mobile', 'newsfeed-multiple',index)|raw : '' }}
{% endif %} {% if loop.index is divisible by(6) %} {% set index = (loop.index / 6) + 1 %}
{{ ads is not null ? ads.printAd('mobile', 'newsfeed-multiple',index)|raw : '' }}
{% endif %} {% endif %} {% endfor %}