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

	$short_description = get_post_meta( get_the_ID(), 'short_description', true );
	$categories        = get_the_category();
?>
<header class="g-c12cb87f" data-section-layout="4236ac739b8" data-section-config="a07c88cb213">
	<?php get_template_part( 'templates/breadcrumbs' ); ?>
	<div class="g-b24e2866" data-bs-unit="90fb31e36" data-block-state="success" data-test-unit="d2f6fac2a532">
		<div class="g-aa3d2c89" id="elem-62c7bf0ae058fca1">
			<div class="g-9927d60e" data-test-disabled="d519f93a" data-section-state="inactive" data-element-config="f1c4fe42" data-bs-goal="3acefbfa65f" data-bs-track="1f59c2b6a04">
				<?php if ( $categories ) : ?>
					<div class="g-3c8c2a2c g-aea53723" id="elem-655d793798443f17">
						<?php foreach ( $categories as $category ) : ?>
							<?php $icon = get_term_meta( $category->term_id, 'icon', true ); ?>
							<a
								href="<?php echo esc_url( get_tag_link( $category->term_id ) ); ?>"
								class="g-49767e89"
							>
								<?php if ( ! empty( $icon ) ) : ?>
									<span class="g-9ab551c3">
										<?php echo esc_html( $icon ); ?>
									</span>
								<?php endif; ?>
								<span class="g-f7f354fc">
									<?php echo esc_html( $category->name ); ?>
								</span>
							</a>
						<?php endforeach; ?>
					</div>
				<?php endif; ?>
				<h1 class="g-a505d9c8 g-5e158376" id="elem-665bd7b5f6efc285">
					<?php the_title(); ?>
				</h1>
				<?php if ( ! empty( $short_description ) ) : ?>
					<div class="g-a9082f3f g-60324157 g-69390e68" data-mui-dimension="b5e117c1" data-analytics-variant="text" data-analytics-ride="7955a3cc4e" data-widget-layout="f50ac1">
						<?php echo esc_html( $short_description ); ?>
					</div>
				<?php endif; ?>
				<div class="g-efae20f8 g-aea53723 g-60324157" id="elem-cf23c21e7024d15d">
					<time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>">
						<?php echo esc_html( get_the_date() ); ?>
					</time>
				</div>
			</div>
			<div class="g-d6f1b943" data-module-mode="view" data-bs-variant="text">
				<?php if ( has_post_thumbnail() ) : ?>
					<div class="g-52cd99d3" id="elem-ae1af65925281d39">
						<figure class="g-5bbf1cf1 g-e449d824 g-69a995e2 g-ba95522d">
							<?php the_post_thumbnail( 'large', [ 'loading' => 'eager' ] ); ?>
						</figure>
					</div>
				<?php endif; ?>
			</div>
		</div>
	</div>
</header>