<?php
$title = $args['title'];
$subtitle = $args['subtitle'];
$pageIcon = $args['pageIcon'] ?? null;
$ctaSecondary = $args['ctaSecondary'] ?? false;

?>

<div class="heading-box heading-box--parcours-parent">
	<?php if ($pageIcon) : ?>
		<img class="heading-box--parcours-parent__page-icon" src="<?php echo $pageIcon['url']  ?>" alt="" />
	<?php endif; ?>
	<p class="heading-box__subtitle heading-box--parcours-parent__subtitle"><?php echo $subtitle  ?></p>
	<h1 class="heading-box__description heading-box--parcours-parent__title"> <?php echo $title ?></h1>
	<?php if ($ctaSecondary) : ?>
		<a class="cta cta--secondary cta--button cta--centered <?php echo $ctaSecondary['custom-class'] ?>" href="<?php echo $ctaSecondary['url'] ?>" target="<?php echo $ctaSecondary['target'] ?>"><?php echo $ctaSecondary['title'] ?></a>
	<?php endif; ?>
</div>