<?php
	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	$short_description = get_post_meta( get_the_ID(), 'short_description', true );
	$categories        = get_the_category();
?>
<header class="g-1fa92c2c" data-widget-trigger="418e44519db" data-widget-variant="text" data-bs-variant="outlined" data-mui-mock="157481c3520" data-element-variant="filled">
	<?php if ( has_post_thumbnail() ) : ?>
		<div class="g-65d1d770" id="elem-532991c3ec6d4a44">
			<figure class="g-ffb9be1b g-e1b31ca9">
				<?php the_post_thumbnail( 'large', [ 'loading' => 'eager' ] ); ?>
			</figure>
		</div>
	<?php endif; ?>
	<?php get_template_part( 'templates/breadcrumbs' ); ?>
	<div class="g-957a8097 g-af90031d g-69753963" data-module-theme="auto" data-block-status="published" data-analytics-toggle="popover" data-component-priority="medium" data-mui-elevation="bbbbc2">
		<div class="g-b905e21f g-be32d470" id="elem-50bb68689d3407b5">
			<?php if ( $categories ) : ?>
				<div class="g-fd24b342 g-99fc6ecc" data-module-position="left" data-bs-keyboard="febaa108ba4" data-analytics-ride="607dee9dd16">
					<?php foreach ( $categories as $key => $category ) : ?>
						<?php $icon = get_term_meta( $category->term_id, 'icon', true ); ?>
						<?php if ( $key !== 0 ) : ?>
							<span class="g-93cd0e83"></span>
						<?php endif; ?>
						<a
							href="<?php echo esc_url( get_tag_link( $category->term_id ) ); ?>"
							class="g-0a59db78"
						>
							<span class="g-d63f26b7">
								<?php echo esc_html( $category->name ); ?>
							</span>
						</a>
					<?php endforeach; ?>
				</div>
			<?php endif; ?>
			<h1 class="g-f6c9f637 g-2ec69fc9" id="elem-74e8e8e3d23ef5de">
				<?php the_title(); ?>
			</h1>
			<?php if ( ! empty( $short_description ) ) : ?>
				<div class="g-1740885a g-69753963 g-b52f6856" data-section-group="2fc66645d4" data-mui-target="b45375a82752" data-widget-priority="medium" data-section-theme="light" data-bs-interval="2cd9196b88dc">
					<?php echo esc_html( $short_description ); ?>
				</div>
			<?php endif; ?>
			<div class="g-0f50156f g-99fc6ecc g-69753963" id="elem-6ebcbc8234df2959">
				<time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>">
					<?php echo esc_html( get_the_date() ); ?>
				</time>
			</div>
		</div>
	</div>
</header>