| 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 |
<?php if ( !empty($attributes['icon']) ) { |
| 14 |
?> |
| 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 |
} ?> |
| 22 |
<a href="<?php echo esc_url( get_comments_link() ); ?>"><?php |
| 23 |
if ( get_comments_number() ) { |
| 24 |
//translators: %d is a comments count |
| 25 |
echo esc_html( sprintf( _n( '%d Comment', '%d Comments', get_comments_number(), 'getwid' ), get_comments_number() ) ); |
| 26 |
} else { |
| 27 |
echo esc_html__( 'No comments', 'getwid' ); |
| 28 |
} |
| 29 |
?></a> |
| 30 |
</div><?php if (isset($attributes['blockDivider']) && $attributes['blockDivider'] != ''){ ?><span class='getwid-post-meta-divider'><?php echo esc_attr($attributes['blockDivider']); ?></span><?php } ?> |
| 31 |
|