<?php

$sec=
$currentSection
?? [];

$conf=
$conference
?? [];

$title=
$sec['title']
??
$sec['title_en']
??
$sec['title_ar']
??
'About';

$content=
$sec['content']
??
$sec['content_en']
??
$sec['content_ar']
??
'';

$subtitle=
$sec['subtitle']
??
$sec['subtitle_en']
??
$sec['subtitle_ar']
??
'';

$btn=
$sec['button_text']
??
$sec['button_label']
??
'';

$link=
$sec['button_url']
??
'#';

$img=
$sec['image']
??
$sec['image_path']
??
$sec['cover_image']
??
'';

?>

<section
class="
container
py-5
">

<div
class="
card
border-0
shadow-lg
overflow-hidden
rounded-5
">

<div class="card-body p-0">

<div class="row g-0">

<?php if(!empty($img)): ?>

<div
class="
col-lg-5
">

<img
src="/easychair/uploads/section_images/<?= pcb_h($img) ?>"
style="
width:100%;
height:100%;
object-fit:cover;
min-height:420px;
">

</div>

<?php endif; ?>

<div
class="
<?= !empty($img)
?'col-lg-7'
:'col-lg-12'
?>
p-5
">

<?php if(!empty($subtitle)): ?>

<div
class="
text-uppercase
fw-bold
text-primary
mb-3
">

<?= pcb_h($subtitle) ?>

</div>

<?php endif; ?>


<h2
class="
fw-bold
display-5
mb-4
">

<?= pcb_h($title) ?>

</h2>


<div
style="
font-size:1.08rem;
line-height:2;
"
>

<?= nl2br(
pcb_h(
$content
)
) ?>

</div>


<?php if(!empty($btn)): ?>

<div class="mt-4">

<a
href="<?= pcb_h($link) ?>"
class="
btn
btn-primary
btn-lg
rounded-pill
px-5
">

<?= pcb_h($btn) ?>

</a>

</div>

<?php endif; ?>


<?php if(
!empty(
$sec['created_at']
)
): ?>

<div
class="
mt-4
text-muted
small
">

Published:
<?= pcb_h(
$sec['created_at']
) ?>

</div>

<?php endif; ?>

</div>

</div>

</div>

</div>

</section>

