PluginProbe
Getwid – Gutenberg Blocks / 2.1.2
Getwid – Gutenberg Blocks v2.1.2
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-comments.php

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

31 lines 1.1 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 <?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