# getwid/3.0.2/includes/templates/template-parts/post-comments.php

Getwid – Gutenberg Blocks, version 3.0.2. 31 lines.

- Page: https://pluginprobe.com/plugins/getwid/3.0.2/code/includes/templates/template-parts/post-comments.php
- Raw: https://pluginprobe.com/plugins/getwid/3.0.2/raw/includes/templates/template-parts/post-comments.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/3.0.2/code/includes/templates/template-parts/post-comments.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 } ?>>
    <?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_comments_link() ); ?>"><?php
        if ( get_comments_number() ) {
            //translators: %d is a comments count
			echo esc_html( sprintf( _n( '%d Comment', '%d Comments', get_comments_number(), 'getwid' ), get_comments_number() ) );
        } else {
            echo esc_html__( 'No comments', 'getwid' );
        }
    ?></a>
</div><?php if (isset($attributes['blockDivider']) && $attributes['blockDivider'] != ''){ ?><span class='getwid-post-meta-divider'><?php echo esc_attr($attributes['blockDivider']); ?></span><?php } ?>

```
