handling cta secondary

This commit is contained in:
Antoine M 2023-12-21 10:03:25 +01:00
parent 4ad56ee243
commit e8ab03ba87

View File

@ -1,9 +1,8 @@
<?php
$title = $args['title'];
$description = $args['description'];
$pageIcon = $args['pageIcon'] ?? null;
$ctaSecondary = $args['ctaSecondary'] ?? false;
?>
<div class="heading-box heading-box--classic ">
@ -12,4 +11,7 @@ $pageIcon = $args['pageIcon'] ?? null;
<?php endif; ?>
<h1 class="heading-box__subtitle heading-box--classic__subtitle"><?php echo $title ?></h1>
<p class="heading-box__description heading-box--classic__description"> <?php echo $description ?></p>
<?php if ($ctaSecondary) : ?>
<a class="cta cta--secondary cta--button cta--centered" href="<?php echo $ctaSecondary['url'] ?>" target="<?php echo $ctaSecondary['target'] ?>"><?php echo $ctaSecondary['title'] ?></a>
<?php endif; ?>
</div>