This commit is contained in:
AlxMedia 2022-12-12 18:57:10 +01:00
parent c9323ca4a0
commit 76c468ba78
4 changed files with 7 additions and 4 deletions

View file

@ -11,8 +11,8 @@
<span class="stripe-comments-avatar"><?php echo get_avatar($comment->comment_author_email,$size='96'); ?></span>
<?php $str=explode(' ',get_comment_excerpt($comment->comment_ID)); $comment_excerpt=implode(' ',array_slice($str,0,11)); if(count($str) > 11 && substr($comment_excerpt,-1)!='.') $comment_excerpt.='...' ?>
<span class="stripe-comments-inner">
<strong class="stripe-comments-title"><?php echo esc_attr( $comment->comment_author ); ?>:</strong>
<i class="stripe-comments-excerpt"><?php echo esc_attr( $comment_excerpt ); ?></i>
<strong class="stripe-comments-title"><?php echo esc_html( $comment->comment_author ); ?>:</strong>
<i class="stripe-comments-excerpt"><?php echo esc_html( $comment_excerpt ); ?></i>
</span>
</a>
</li>

View file

@ -27,7 +27,7 @@
<?php elseif ( is_author() ): ?>
<?php $author = get_userdata( get_query_var('author') );?>
<h1><i class="far fa-user"></i><?php esc_html_e('Author:','magaziner'); ?> <span><?php echo esc_attr( $author->display_name );?></span></h1>
<h1><i class="far fa-user"></i><?php esc_html_e('Author:','magaziner'); ?> <span><?php echo esc_html( $author->display_name );?></span></h1>
<?php elseif ( is_category() ): ?>
<h1><i class="far fa-folder"></i><?php esc_html_e('Category:','magaziner'); ?> <span><?php echo single_cat_title('', false); ?></span></h1>