PluginProbe
Getwid – Gutenberg Blocks / 2.0.14
Getwid – Gutenberg Blocks v2.0.14
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-author.php

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

25 lines 923 B
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 <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