PluginProbe
Getwid – Gutenberg Blocks / 1.8.7
Getwid – Gutenberg Blocks v1.8.7
3.0.2 3.0.1 3.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 trunk 1.8.7 1.9.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
getwid / includes / templates / template-parts / post-date.php

post-date.php in Getwid – Gutenberg Blocks 1.8.7, at includes/templates/template-parts/post-date.php

26 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 //extract styles & classes
4 extract($extra_attr);
5
6 $icon_classes = array(
7 $attributes['icon'],
8 !empty($icon_class) ? $icon_class : ''
9 );
10 ?>
11
12 <div class="<?php echo esc_attr( $wrapper_class ); ?>" <?php if ( !empty($wrapper_style) ) { ?> style="<?php echo esc_attr($wrapper_style); ?>" <?php } ?>>
13 <time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php
14 if ( !empty($attributes['icon']) ) { ?>
15 <i class="<?php echo esc_attr( implode(' ', $icon_classes) );?>"
16 <?php if ( ! empty( $attributes['customIconColor'] ) ) { ?>
17 style="<?php echo esc_attr($icon_style); ?>"
18 <?php } ?>
19 ></i>
20 <?php } ?>
21 <a href="<?php echo esc_url( get_day_link( $archive_year, $archive_month, $archive_day) ); ?>"><?php
22 echo esc_html( get_the_date( '' ) );
23 ?></a>
24 </time>
25 </div><?php if (isset($attributes['blockDivider']) && $attributes['blockDivider'] != ''){ ?><span class='getwid-post-meta-divider'><?php echo esc_attr($attributes['blockDivider']); ?></span><?php } ?>
26