fix: 🐛 display content on banner component - from 617342e6

This commit is contained in:
Noah Lancien 2026-09-17 15:46:15 +02:00
parent c850a242fc
commit e8c93167eb
6 changed files with 12 additions and 5 deletions

View file

@ -20,8 +20,10 @@
@endif
<h1 class="my-3">{{ $staticPageModel->title }}</h1>
</div>
@if (isset($staticPageModel->content))
<p>{!! clean($staticPageModel->content) !!}</p>
@if (isset($content) && !empty($content))
<p>{!! clean($content) !!}</p>
@else
<p>{!! clean($staticPageModel->subtitle) !!}</p>
@endif
</hgroup>
</div>

View file

@ -55,6 +55,7 @@
'picto_alt' => __($staticPageModel->picture_alt),
'picto_title' => __($staticPageModel->picture_title),
'picto_baner' => $staticPageModel->data['picto_banner'],
'content' => $staticPageModel->content
])
{{-- PARAGRAPH WITH PICTURE --}}
@if ($section_2_model->visibility)

View file

@ -65,6 +65,7 @@
'picto_alt' => __($staticPageModel->picture_alt),
'picto_title' => __($staticPageModel->picture_title),
'picto_baner' => $staticPageModel->data['picto_banner'],
'content' => $staticPageModel->content
])
{{-- TAB-TEXTS --}}
@php

View file

@ -34,6 +34,7 @@
'picto_alt' => __($staticPageModel->picture_alt),
'picto_title' => __($staticPageModel->picture_title),
'picto_baner' => $staticPageModel->data['picto_banner'],
'content' => $staticPageModel->content
])
{{-- PARAGRAPH WITH PICTURE --}}
@if ($section_2_model->visibility)

View file

@ -65,6 +65,7 @@
'picto_alt' => __($staticPageModel->picture_alt),
'picto_title' => __($staticPageModel->picture_title),
'picto_baner' => $staticPageModel->data['picto_banner'],
'content' => $staticPageModel->content
])
{{-- PARAGRAPH WITH PICTURE --}}
@if ($section_2_model->visibility)

View file

@ -3,7 +3,7 @@
$badge = new stdClass();
$badge->label = str("engagement n°{$commitmentId}")->upper();
$badge->color = '#006633';
$section_2_model = $staticPageModel->sections[0];
$section_2 = $section_2_model->data;
$section_2_pictos = $section_2_model->pictos;
@ -17,7 +17,7 @@
$section_4 = $section_4_model->data;
$section_4_pictos = $section_4_model->pictos;
$reduction_4 = $section_4_model->blocks[0]->data;
@endphp
@ -37,6 +37,7 @@
'picto_alt' => __($staticPageModel->picture_alt),
'picto_title' => __($staticPageModel->picture_title),
'picto_baner' => $staticPageModel->data['picto_banner'],
'content' => $staticPageModel->content
])
{{-- PARAGRAPH WITH VISUAL AND COMPLEX ITEMS --}}
@ -108,7 +109,7 @@
'collection' => $section_4_pictos,
])
@endif
{{-- OTHER COMMITMENTS --}}
@include('fo.partials.commitments.other-commitments', [
'number' => $commitmentId,