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

	$short_description = get_post_meta( get_the_ID(), 'short_description', true );
	$categories        = get_the_category();
?>
<header class="g-7f97e235" data-bs-selector="33d433cd" data-section-animation="none" data-test-ride="cbe4a26da">
	<div class="g-fdc4b4e9" id="elem-46f3106f29a296f7">
		<?php get_template_part( 'templates/breadcrumbs' ); ?>
		<div class="g-b8b3f5d5" data-element-state="error" data-component-config="021a87d">
			<?php if ( $categories ) : ?>
				<div class="g-44c7737d g-cfded025" id="elem-d25fcf2d3970aa76">
					<?php foreach ( $categories as $key => $category ) : ?>
						<?php $icon = get_term_meta( $category->term_id, 'icon', true ); ?>
						<?php if ( $key !== 0 ) : ?>
							<span>/</span>
						<?php endif; ?>
						<a
							href="<?php echo esc_url( get_tag_link( $category->term_id ) ); ?>"
							class="g-cc464401"
						>
							<span class="g-f5f57808">
								<?php echo esc_html( $category->name ); ?>
							</span>
						</a>
					<?php endforeach; ?>
				</div>
			<?php endif; ?>
			<div class="g-5ee530c0 g-cfded025 g-8332efe3" data-analytics-event="conversion" data-mui-mock="8190b5c">
				<time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>">
					<?php echo esc_html( get_the_date() ); ?>
				</time>
			</div>
		</div>
		<div class="g-af723f3b" id="elem-e19b0dc6123a0874">
			<h1 class="g-c849e39d g-e073ab23" data-module-action="expand" data-bs-label="594113c88773">
				<?php the_title(); ?>
			</h1>
			<?php if ( ! empty( $short_description ) ) : ?>
				<div class="g-efcd356c g-8332efe3 g-175a508b" id="elem-b3a52651bf85b810">
					<?php echo esc_html( $short_description ); ?>
				</div>
			<?php endif; ?>
			<?php if ( has_post_thumbnail() ) : ?>
				<div class="g-bebc458b" data-mui-pause="4f8bfcd2" data-mui-action="toggle">
					<figure class="g-4b68b70b g-b6b01772 g-877c55e2 g-d1475547">
						<?php the_post_thumbnail( 'large', [ 'loading' => 'eager' ] ); ?>
					</figure>
				</div>
			<?php endif; ?>
		</div>
	</div>
</header>