templates/front/actualite/detail.html.twig line 1
{% extends 'front_layout.html.twig' %}{% if actualite.seoParent is not null %}{% if actualite.seoParent.seo.metaTitre is not empty %}{% set titre = actualite.seoParent.seo.metaTitre %}{% else %}{% set titre = actualite.titre %}{% endif %}{% else %}{% set titre = actualite.titre %}{% endif %}{% block title %}{{ titre }}{% endblock %}{% block seo %}{{ render(path('app_global_seo_actualite', {'id': actualite.id })) }}{% endblock %}{% block body %}<main class="t-page"><header class="t-page__header" style="background-image: url('{{ asset('/uploads/medias/' ~ actualite.banniere.filepath)|imagine_filter('banner') }}');"><h1 class="t-page__mainTitle">{{ actualite.titre }}</h1></header><div class="t-page__wrap">{{ render(controller('App\\Controller\\WidgetController::breadcrumb', {'request': app.request})) }}{# <p>{{ actualite.pole.name }} / {{ actualite.categorie.titre }}</p> #}<div class="t-page__intro">{{ actualite.description | raw }}</div>{% for b in blocActu %}{% if b.blocDiaporama is not null %}{% include 'front/blocs/_diaporama.html.twig' with { 'bloc' : b.blocDiaporama } %}{% elseif b.BlocAccordeon is not null %}{% include 'front/blocs/_accordeon.html.twig' with { 'bloc' : b.BlocAccordeon } %}{% elseif b.blocColonne is not null %}{% include 'front/blocs/_colonne.html.twig' with { 'bloc' : b.blocColonne } %}{% elseif b.BlocTextImage is not null %}{% include 'front/blocs/_text_image.html.twig' with { 'bloc' : b.BlocTextImage } %}{% elseif b.blocVideo is not null %}{% include 'front/blocs/_video.html.twig' with { 'bloc' : b.blocVideo } %}{% endif %}{% endfor %}</div><section class="homeActus"><div class="homeActus__wrap"><div class="homeActus__row"><h2 class="homeActus__title">Les actus</h2><a class="homeActus__all" href="{{ path('app_actualite_list') }}">> Toutes les actus</a></div><div class="homeActus__slick">{% for actualite in actualites %}<div class="homeActus__slide"><a href="{{ path('app_actualite_detail', {'actualite': actualite.id}) }}">{% if actualite.banniere is not null %}<img class="homeActus__img" src="{{ asset('/uploads/medias/' ~ actualite.banniere.filepath)|imagine_filter('actualite') }}" alt="{{ actualite.titre }}">{% else %}<img class="homeActus__img" src="https://placehold.co/255/" alt="{{ actualite.titre }}">{% endif %}<div class="homeActus__txt">{{ actualite.titre }}</div></a></div>{% endfor %}</div></div></section></main>{% endblock %}