<?php
$title = $args['title'];
$description = $args['description'] ?? null;
$parent_title = $args['parent_title'] ?? null;
$page_icon = $args['page_icon'] ?? null;
$published = $args['published'] ?? null;
$subtitle = $args['subtitle'] ?? null;
?>

<div class="heading-box heading-box--parcours-single ">

	<div class="heading-box--parcours-single__content">
		<?php if ($parent_title) : ?>
			<p class="heading-box__subtitle heading-box--parcours-single__type"><?php echo $parent_title ?></p>
		<?php endif; ?>
		<h1 class="heading-box__title heading-box--parcours-single__title"> <?php echo $title ?></h1>

		<?php
		get_template_part("template-components/post-infos-capsule", null, array(
			"postID" => get_the_ID(),
			"published" => $published
		));
		?>
	</div>
	<?php if ($page_icon) : ?>
		<img class="heading-box--parcours-single__page-icon" src="<?php echo $page_icon['url'] ?>" alt="">
	<?php endif; ?>
</div>