Sindbad~EG File Manager

Current Path : /home/julesbu/www/dup-installer/wp-content/themes/Jules_Belamy/components/
Upload File :
Current File : /home/julesbu/www/dup-installer/wp-content/themes/Jules_Belamy/components/text-image.php

<?php
// Vérifie si $title est défini, sinon utilise une valeur par défaut
$surtitle = $surtitle ?? 'Sur-titre par défaut';
$title = $title ?? 'Titre par défaut';
$content = $content ?? 'Contenu par défaut';
$team_image = $team_image ?? '';
$items = $items ?? [];
$image = $image ?? '';
$cta = $cta ?? [
    'label' => 'CTA par défaut',
    'link' => '#',
    'with_icon' => false,
];

?>
<section class="text-image">
    <div class="container">
        <div class="text-image__container">
            <div class="text-image__subcontainer">
                <p class="subheading font-neutre600 font-semibold mb-12"><?= htmlspecialchars($surtitle); ?></p>
                <h2 class="text-image__title heading-2 mb-40"><?= $title; ?></h2>
                <p class="text-image__content body-2 font-neutre300 mb-24"><?= $content; ?></p>
                <?php if (!empty($team_image)): ?><img src="<?= $team_image; ?>" alt="team"
                        class="text-image__team mb-40"><?php endif; ?>
                <?php if (!empty($items)): ?>
                    <div class="text-image__items mb-40">
                        <?php foreach ($items as $item): ?>
                            <article class="text-image__item">
                                <p class="heading-4 text-purple500 mb-4 font-bold">
                                    <?= $item['highlight']; ?>
                                </p>
                                <p class="body-1 font-semibold">
                                    <?= $item['content']; ?>
                                </p>
                            </article>

                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                <a href="<?= $cta['link']; ?>"
                    class="text-image__cta cta-button <?= $cta['with_icon'] ? 'with-icon' : ''; ?>"><?= $cta['label']; ?>
                    <?php if ($cta['with_icon']): ?><svg xmlns="http://www.w3.org/2000/svg" width="24" height="25"
                            fill="none">
                            <path fill="currentColor"
                                d="M3.222 14.917c-.09-5.893 5.652-7.107 8.107-7.267-1.218.722-3.285 1.605-4.902 2.9-1.483 1.186-2.68 2.742-3.205 4.367Z" />
                            <path fill="currentColor"
                                d="M22.436 9.935V5.317c.344-.11.59-.42.59-.786 0-.458-.387-.829-.866-.829-.478 0-.866.371-.866.829 0 .352.23.654.553.774v4.587l-.007-.029c-1.122-4.352-5.072-7.568-9.775-7.568-4.702 0-8.662 3.223-9.778 7.584h-.17c-.904 0-1.637.702-1.637 1.566v2.724c0 .865.733 1.567 1.637 1.567h.053c.486 1.345 1.394 2.524 2.38 3.546 1.86 1.935 4.529 3.146 7.493 3.146.07 0 .14 0 .21-.003 3.563-.068 6.676-1.888 8.44-4.596l.018-.026c.42-.648.834-1.35 1.102-2.088l.132.005c.904 0 1.636-.701 1.636-1.566V11.43c0-.7-.481-1.294-1.145-1.494Zm-.708 5.77c-2.032 2.968-6.382 5.041-9.675 5.041-3.293 0-7.524-2.387-9.688-5.019l-.067-.306v-3.749c1.186-3.887 5.425-4.96 9.767-4.96 4.343 0 8.359 1.016 9.664 4.656l.118.819v2.924l-.12.594Z" />
                        </svg>

                    <?php endif; ?>
                </a>
                </a>
            </div>
            <div class="text-image__subcontainer">
                <img src="<?= $image; ?>" alt="team" class="text-image__image">
            </div>
        </div>
    </div>
</section>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists