{% trans_default_domain 'front_ec_international' %} {% set i18n = entity|i18n %} {% if i18n %} {% set title = i18n.title %} {% set subTitle = i18n.subTitle %} {% set titleForce = i18n.titleForce ? i18n.titleForce : 2 %} {% set titleAlignment = i18n.titleAlignment ? i18n.titleAlignment : 'text-left' %} {% set intro = i18n.introduction %} {% set introAlignment = i18n.introductionAlignment ? i18n.introductionAlignment : 'text-left' %} {% set body = i18n.body %} {% set bodyAlignment = i18n.bodyAlignment ? i18n.bodyAlignment : 'text-left' %} {% set mediaRelation = entity|mainMedia %} {% set haveMedia = mediaRelation.media.filename is defined and mediaRelation.media.filename %} {% set displayPlaceHolder = true %} {% set mediaConfig = mediaRelation|thumbConfiguration(thumbConfiguration, true) %} {% if url.code %}
{% include 'core/webmaster-edit.html.twig' with { 'title': "Éditer l'actualité"|trans([], 'front_webmaster'), 'role': 'ROLE_NEWSCAST', 'path': path('admin_newscast_edit', {'website': website.id, 'newscast': entity.id}) } only %} {% if haveMedia or displayPlaceHolder %} {{ mediaRelation|thumb(mediaConfig, {'colSize': 4}) }} {% endif %}
{% if title|striptags|length > 0 %}
{{ title|unescape|raw }}
{% endif %} {% if subTitle|striptags|length > 0 %} {{ subTitle|raw }} {% endif %} {% if hasListing and not hideDate or not hasListing and not entity.category.hideDate %}
{% set format = formatDate ? formatDate : entity.category.formatDate %} {{ entity.publicationStart|localizeddate("medium", "none", app.request.locale, null, "EEEE d LLLL yyyy")|capitalize }}
{% endif %} {% if hasListing and displayCategory or not hasListing and entity.category.displayCategory %} {% set i18nCategory = entity.category|i18n %} {% if i18nCategory and i18nCategory.title %} {% set titleCategory = i18n.title %} {{ i18nCategory.title|unescape|raw }} {% endif %} {% endif %} {% if intro|striptags|length > 0 %}

{{ intro|striptags|truncate(150) }}

{% endif %} {% if intro|striptags|length == 0 and body|striptags|length > 0 %}

{{ body|striptags|truncate(150) }}

{% endif %}
{% endif %} {% endif %}