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

<div class="heading-box heading-box--news ">

	<div class="heading-box--news__content">
		<?php if ($news_type) : ?>
			<p class="heading-box__subtitle heading-box--news__type"><?php echo $news_type[0]->name ?></p>
		<?php endif; ?>
		<h1 class="heading-box__title heading-box--news__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 ($thumbnail) echo $thumbnail ?>

	<!-- <img class="news-heading-box__thumbnail" src="<?php echo $thumbnail ?>" alt=""> -->
</div>