# getwid/2.1.2/includes/templates/template-parts/post-date.php

Getwid – Gutenberg Blocks, version 2.1.2. 26 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.1.2/code/includes/templates/template-parts/post-date.php
- Raw: https://pluginprobe.com/plugins/getwid/2.1.2/raw/includes/templates/template-parts/post-date.php
- Modified: 2024-10-25T10:23:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/getwid/2.1.2/code/includes/templates/template-parts/post-date.php#L10-L20`.

```php
<?php

//extract styles & classes
extract($extra_attr);

$icon_classes = array(
		$attributes['icon'],
		!empty($icon_class) ? $icon_class : ''
);
?>

<div class="<?php echo esc_attr( $wrapper_class ); ?>" <?php if ( !empty($wrapper_style) ) { ?> style="<?php echo esc_attr($wrapper_style); ?>" <?php } ?>>
    <time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php
		if ( !empty($attributes['icon']) ) { ?>
			<i class="<?php echo esc_attr( implode(' ', $icon_classes) );?>"
			<?php if ( ! empty( $attributes['customIconColor'] ) ) { ?>
				style="<?php echo esc_attr($icon_style); ?>"
			<?php } ?>
			></i>
		<?php } ?>
		<a href="<?php echo esc_url( get_day_link( $archive_year, $archive_month, $archive_day) ); ?>"><?php
			echo esc_html( get_the_date( '' ) );
    	?></a>
	</time>
</div><?php if (isset($attributes['blockDivider']) && $attributes['blockDivider'] != ''){ ?><span class='getwid-post-meta-divider'><?php echo esc_attr($attributes['blockDivider']); ?></span><?php } ?>

```
