@php global $chirkashi; if(!isset($text_block) && empty($text_block)) { $text_block = get_field('text_block', $post->ID); } $borders = array(); @endphp @if(empty($text_block['hide_block']))
!empty($text_block['bg']) && $text_block['bg'] == 1, $custom_class ?? '', $addclass ?? '', ])>
@if(!empty($text_block['title']) || !empty($text_block['subtitle']['text']))

@if(!empty($text_block['title'])) {{ $text_block['title'] }} @endif @if(!empty($text_block['subtitle']['text'])) $text_block['subtitle']['cursive'] ])> {{ $text_block['subtitle']['text'] }} @endif

@endif @if(!empty($text_block['list'])) @foreach($text_block['list'] as $l)
$l['swap_position'] == 1, 'textblock__container_row' => $l['in_row'] == 1, 'textblock__container_floated' => $l['floated'] == 1, 'textblock__container_ac' => $l['align_center'] == 1 ])> @if(!empty($l['image']) || !empty($l['video']))
@if(!empty($l['video']))
{{ $l['video'] }}
@endif @if(!empty($l['image'])) @foreach($l['image'] as $i)
@php $borders['desktop'] = $l['borders_desktop']; $borders['mobile'] = $l['borders_mobile']; @endphp @include('front.partials.borders', [ 'borders' => $borders ]) {{ !empty($l['title']) ? $l['title'] : $text_block['title'] }}
@endforeach @endif @if(!empty($l['image_description']))
{{ $l['image_description'] }}
@endif @if(!empty($l['button']['url']) && ($l["button"]["title"] == "Nous Rejoindre" || (!empty($custom_class) ? $custom_class : null) == "notre-politique")) > {{ $l['button']['title'] }} @endif
@endif
@if(!empty($l['title']))

{{ $l['title'] }}

@endif @if(!empty($l['text']))
$l['quote'] == 1 ])> @if($l['quote'] == 1) {{ strip_tags($l['text']) }} @else {{ $l['text'] }} @endif
@endif @if(!empty($l['quote_author']) && $l['quote'] == 1)
{{ $l['quote_author'] }}
@endif @if(!empty($l['button']['url']) && $l["button"]["title"] != "Nous Rejoindre" && (!empty($custom_class) ? $custom_class : null) != "notre-politique") {{ $l['button']['title'] }} @endif
@endforeach @endif
@endif