<?php

if ( ! defined( 'ABSPATH' ) ) {
	// Exit if accessed directly.
	exit;
}

$show_info_icons = isset( $show_info_icons ) && ! empty( $show_info_icons ) ? $show_info_icons : 'no';
$date_link       = empty( get_the_title() ) && ! is_single() ? get_the_permalink() : get_month_link( get_the_time( 'Y' ), get_the_time( 'm' ) );
$classes         = '';

// This check is to prevent classes for Gutenberg block.
if ( is_single() || is_page() || is_archive() ) {
	$classes = 'published updated';
}
$date_day   = 'j';
$date_month = 'M';
?>
<div itemprop="dateCreated" class="qodef-e-info-item qodef-e-info-date entry-date <?php echo esc_attr( $classes ); ?>">
	<a itemprop="url" href="<?php echo esc_url( $date_link ); ?>">
		<?php echo esc_html( get_the_time( $date_day ) . ' ' . get_the_time( $date_month ) ); ?>
	</a>
</div>
