feat: ✨ update our brands page with dynamic pages
This commit is contained in:
parent
2df26fb856
commit
d2921535de
3 changed files with 16 additions and 48 deletions
|
|
@ -21,19 +21,27 @@
|
|||
<div class="brand__wrapper wrapper">
|
||||
<div class="brand__container">
|
||||
<div class="brand__info">
|
||||
<a class="brand__logo" target="_blank" rel="noreferer noopener" title="{{ $item['string_brand_logo_title'] }}"
|
||||
href="{{ $item['url_brand_logo_url'] }}">
|
||||
<img src="{{ asset($item['image_brand_logo']) }}" alt="{{ $item['string_brand_logo_alt'] }}">
|
||||
</a>
|
||||
@foreach ($item['list_logo'] as $logo)
|
||||
<a class="brand__logo" target="_blank" rel="noreferer noopener" title="{{ $logo['string_brand_logo_title'] }}"
|
||||
href="{{ $logo['url_brand_logo_url'] }}">
|
||||
<img src="{{ asset($logo['image_brand_logo']) }}" alt="{{ $logo['string_brand_logo_alt'] }}">
|
||||
</a>
|
||||
@endforeach
|
||||
<h3 class="brand__title subtitle">{!! $item['string_brand_title'] !!}</h3>
|
||||
<div class="brand__text description">
|
||||
{!! $item['wysiwyg_brand_content'] !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="brand__media">
|
||||
{{-- @if (!empty($item['video']))
|
||||
<x-front.sections.video :video='$item['video']' />
|
||||
@endif --}}
|
||||
@if (!empty($item['youtubeid_brand_youtube']) || !empty($item['vimeoid_brand_vimeo']))
|
||||
@php
|
||||
$video = [
|
||||
'type_video' => !empty($item['youtubeid_brand_youtube']) ? 'youtube' : 'vimeo',
|
||||
'video' => !empty($item['youtubeid_brand_youtube']) ? $item['youtubeid_brand_youtube'] : $item['vimeoid_brand_vimeo']
|
||||
];
|
||||
@endphp
|
||||
<x-front.sections.video :video='$video' />
|
||||
@endif
|
||||
@if (!empty($item['list_brand_links']))
|
||||
@foreach ($item['list_brand_links'] as $link)
|
||||
<a class="brand__link" href="{{ $link['url_brand_links_url'] }}" target="_blank"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="{{ isset($class) ? $class : 'brand__video'}}">
|
||||
<div class="{{ isset($secondaryClass) ? $secondaryClass : 'brand__video-btn'}} play-button"></div>
|
||||
@php
|
||||
$videoUrl = strpos($video['video'], 'https') === 0 ? $video['video'] : ($video['type_video'] === 'youtube' ? 'https://www.youtube.com/embed/' : 'https://player.vimeo.com/video/') . $video['video'];
|
||||
$videoUrl = ($video['type_video'] === 'youtube' ? 'https://www.youtube.com/embed/' : 'https://player.vimeo.com/video/') . $video['video'];
|
||||
@endphp
|
||||
|
||||
<div class="video-inlaid h-100" type="{{ $video['type_video'] }}" href="{{ $videoUrl }}">
|
||||
|
|
|
|||
|
|
@ -3,46 +3,6 @@
|
|||
@section('description', $dynamicPageModel->content['string_description_seo'])
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
$hero = [
|
||||
[
|
||||
'title' => 'NOS MARQUES ET NOS PRODUITS',
|
||||
'subtitle' => '',
|
||||
'text' => nl2br(
|
||||
__(
|
||||
'
|
||||
Nos marques sont le reflet de nos engagements quotidiens, lesquels visent à vous proposer des produits alliant le plaisir de la table à l\'exigence du bien manger. :br
|
||||
Nos marques sont l\'expression de notre diversité. Chacune, qu\'elle soit patrimoniale ou plus moderne, locale ou internationale, offre une réponse unique et adaptée aux multiples envies et besoins de nos consommateurs. :br
|
||||
Découvrez la richesse de nos marques pour la France et le reste du monde. :br
|
||||
',
|
||||
[
|
||||
'br' => '<br>',
|
||||
],
|
||||
),
|
||||
),
|
||||
'button' => '',
|
||||
'video_?' => true,
|
||||
'video_file' => asset('/assets/uploads/2023/06/Publicité-marque-LDC.mp4'),
|
||||
'image' => '',
|
||||
'image_borders' => [
|
||||
'desktop' => [
|
||||
'left' => true,
|
||||
'right' => true,
|
||||
'top' => true,
|
||||
'bottom' => true,
|
||||
],
|
||||
'mobile' => [
|
||||
'left' => false,
|
||||
'right' => false,
|
||||
'top' => false,
|
||||
'bottom' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
@endphp
|
||||
<x-front.hero :hero="$hero" />
|
||||
|
||||
{{-- L'ENSEMBLE DE NOS MARQUES --}}
|
||||
<div class="textblock fw fw-container no-bottom-padding">
|
||||
@foreach ($dynamicPageModel->content['list_discover_our_brands'] as $list)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue