{% extends 'front/' ~ websiteTemplate ~ '/base.html.twig' %} {% trans_default_domain 'front_ec_international' %} {% import 'core/src-macro.html.twig' as resources %} {% set i18n = news|i18n %} {% set category = news.category %} {% set i18nCategory = category ? category|i18n : category %} {% set layout = category.layout is defined ? category.layout : null %} {% set hasLayout = category.layout is defined and category.layout and not news.customLayout %} {% set templateRepo = hasLayout and layout.zones|length > 0 ? 'layout' : 'view' %} {% set template = layout and layout.slug and layout.zones|length > 0 ? 'front/' ~ websiteTemplate ~ '/actions/newscast/newscast/' ~ templateRepo ~ '/' ~ layout.slug ~ '.html.twig' : null %} {% set template = (template)|fileExist ? template : 'front/' ~ websiteTemplate ~ '/actions/newscast/newscast/' ~ templateRepo ~ '/default.html.twig' %} {% if i18n %} {% set title = i18n.title %} {% 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 i18nVideo = i18n.video %} {% set haveMainMedia = news|haveMainMedia %} {% set i18nMainMedia = haveMainMedia ? news|mainMedia : category|i18nMedia %} {% set medias = news|i18nMedias %} {% set link = i18n|i18nLink %} {% set linkAlignment = link and link.alignment ? link.alignment : 'text-left' %} {% set linkStyle = link.style ? link.style : 'btn btn-primary' %} {% endif %} {% block microData %} {% if website.seoConfiguration.microData and i18n %} {% include 'front/' ~ websiteTemplate ~ '/actions/newscast/newscast/microdata.html.twig' with { 'seo': seo, 'news': news, 'haveMainMedia': haveMainMedia, 'i18nMainMedia': i18nMainMedia } only %} {% endif %} {% endblock %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('front-' ~ websiteTemplate ~ '-news', null, webpack, true) }} {% endblock %} {% block javascripts %} {{ parent() }} {{ resources.encore_entry_js_files('front-' ~ websiteTemplate ~ '-news', webpack, 'Page news', true) }} {% endblock %} {% block body %} {% if i18n %}