<?php
/**
 * The template to display entry date.
 *
 * This template can be overridden by copying it to
 * your-child-theme/views/entry/date.php.
 *
 * @param array $args
 *
 * @package MadeByAura\Prime
 * @author  MadeByAura.com
 */

namespace MadeByAura\Prime;

use MadeByAura\Prime\Helpers\Markup;

defined( 'ABSPATH' ) || die();

// Merge incoming `$args` with defaults.
$args = array_replace_recursive(
	[
		'class' => '',
	],
	$args,
);

// Set CSS classes.
$classes[] = $args['class'];
$classes[] = 'aura-entry-date';
?>

<div class="<?php Markup::echo_classes( $classes ); ?>">
	<?php the_time( get_option( 'date_format' ) ); ?>
</div>
