| 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 |
<div class="<?php echo esc_attr( $wrapper_class ); ?>" <?php if ( ! empty( $wrapper_style ) ) { ?> style="<?php echo esc_attr($wrapper_style);?>"<?php } ?>> |
| 12 |
<?php if ( !empty( $attributes['icon'] ) ) { |
| 13 |
?> |
| 14 |
<i class="<?php echo esc_attr( implode(' ', $icon_classes) ); ?>" |
| 15 |
<?php if ( ! empty( $attributes['customIconColor'] ) ) { ?> |
| 16 |
style="<?php echo esc_attr( $icon_style ); ?>" |
| 17 |
<?php } ?> |
| 18 |
></i> |
| 19 |
<?php |
| 20 |
} ?> |
| 21 |
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"> |
| 22 |
<?php echo esc_html( get_the_author() ); ?> |
| 23 |
</a> |
| 24 |
</div><?php if (isset($attributes['blockDivider']) && $attributes['blockDivider'] != ''){ ?><span class='getwid-post-meta-divider'><?php echo esc_attr($attributes['blockDivider']); ?></span><?php } |
| 25 |
|