fix 🐛 : display content
This commit is contained in:
parent
96a05e8d51
commit
de585fc44d
4 changed files with 15 additions and 21 deletions
|
|
@ -1,8 +1,8 @@
|
|||
@props(['title' => '', 'subtitle' => '', 'image' => '', 'title_img' => '', 'alt_img' => ''])
|
||||
@props(['staticPageModel'])
|
||||
|
||||
@php
|
||||
$translatedTitle = __($title);
|
||||
$translatedSubtitle = __($subtitle);
|
||||
$translatedTitle = __($staticPageModel->title);
|
||||
$translatedSubtitle = __($staticPageModel->content);
|
||||
@endphp
|
||||
{{-- FIXME --}}
|
||||
{{-- Image banner to centered --}}
|
||||
|
|
@ -14,30 +14,29 @@
|
|||
<hgroup>
|
||||
@if (isset($badge) && !empty($badge))
|
||||
<div class="f-bourton-base mt-4 w-fit px-2 py-1 text-white" style="background-color:{{ $badge->color }}">
|
||||
{!! clean($badge->label) !!}
|
||||
{{ $badge->label }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="d-flex align-items-center">
|
||||
@if (isset($badge) && !empty($picto))
|
||||
<img class="img-fluid my-3 me-2" id="header-banner-picto" src="{{ $picto }}" title="{!! clean($picto->picto_title) !!}"
|
||||
<img class="img-fluid my-3 me-2" id="header-banner-picto" src="{{ $picto }}" title="{{ $picto->picto_title }}"
|
||||
alt="{{ $picto_alt }}">
|
||||
@endif
|
||||
<h1 class="my-3">{!! clean($title) !!}</h1>
|
||||
<h1 class="my-3">{{ $staticPageModel->title }}</h1>
|
||||
</div>
|
||||
<p>{!! clean($subtitle) !!}
|
||||
</p>
|
||||
<p>{!! clean($staticPageModel->content) !!}</p>
|
||||
</hgroup>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-none d-xl-block col-6 col-xxl-4">
|
||||
<div class="header-image-wrapper breeding-header-translate-right">
|
||||
<img class="img-fluid" src="{{ asset($image) }}"
|
||||
title="{!! clean($title_img) !!}" alt="{!! clean($alt_img) !!}">
|
||||
<img class="img-fluid" src="{{ asset($staticPageModel->picture) }}"
|
||||
title="{{ $staticPageModel->picture_title }}" alt="{{ $staticPageModel->picture_alt }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-8 position-relative z-1 mx-auto mt-4">
|
||||
<div class="d-xl-none header-image-wrapper">
|
||||
<img class="img-fluid" src="{{ asset($image) }}"
|
||||
title="{!! clean($title_img) !!}" alt="{!! clean($alt_img) !!}">
|
||||
<img class="img-fluid" src="{{ asset($staticPageModel->picture) }}"
|
||||
title="{{ $staticPageModel->picture_title }}" alt="{{ $staticPageModel->picture_alt }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,10 +5,7 @@
|
|||
@section('bg-offset', true)
|
||||
|
||||
@section('content')
|
||||
<x-fo.breeding.section.header-section title="{{ $staticPageModel->title }}"
|
||||
subtitle="{{ strip_tags($staticPageModel->content) }}" :image="$staticPageModel->picture"
|
||||
alt_img="{{ $staticPageModel->picture_alt }}" title_img="{{ $staticPageModel->picture_title }}"
|
||||
/>
|
||||
<x-fo.breeding.section.header-section :staticPageModel="$staticPageModel"/>
|
||||
<section class="position-relative line-border-large py-4" id="les-elevages">
|
||||
<div class="position-absolute h-100 w-100 top-0 z-0">
|
||||
<div class="bg-green-wood h-100 w-100"></div>
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@
|
|||
@section('bg-offset', true)
|
||||
|
||||
@section('content')
|
||||
<x-fo.breeding.section.header-section title="{{ __($staticPageModel->title) }}" :image="$staticPageModel->picture"
|
||||
alt_img="{{ $staticPageModel->picture_alt }}" title_img="{{ $staticPageModel->picture_title }}" />
|
||||
<x-fo.breeding.section.header-section :staticPageModel="$staticPageModel" />
|
||||
<section class="position-relative line-border-large" id="oui-c-est-bon">
|
||||
<div class="position-absolute h-100 w-100 top-0 z-0">
|
||||
<div class="bg-green-wood h-100 w-100" id="demarche-bg"></div>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
@section('bg-offset', true)
|
||||
|
||||
@section('content')
|
||||
<x-fo.breeding.section.header-section title="{{ __($staticPageModel->title) }}" :image="$staticPageModel->picture"
|
||||
alt_img="{{ $staticPageModel->picture_alt }}" title_img="{{ $staticPageModel->picture_title }}" />
|
||||
<x-fo.breeding.section.header-section :staticPageModel="$staticPageModel" />
|
||||
<section id="sortant-a-l-exterieur">
|
||||
<x-fo.breeding.section.sortant-a-l-exterieur.cahier-des-charges-section :staticPageModel="$staticPageModel" :onglets="$categoryApproachModels"
|
||||
:sections="$sectionApproachModels" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue