screen->get_prefix(); $has_website_field = get_theme_mod( $prefix . '_has_comments_website', 'yes' ); $fields['author'] = '

'; // Email input $fields['email'] = '

'; $website_field_output = ''; if ($has_website_field === 'yes') { $website_field_output = '

'; } $fields['url'] = $website_field_output; $fields['cookies'] = ''; return $fields; } ); /** * Comment view. * * @param object $comment comment instance. * @param array $args comment display args. * @param int $depth current depth of the comments. */ if (! function_exists('blocksy_custom_comment_template')) { function blocksy_custom_comment_template($comment, $args, $depth) { $is_by_author = get_the_author_meta( 'email' ) === $comment->comment_author_email; $has_avatar = ( 0 !== $args['avatar_size'] && get_comment_type($comment) === 'comment' && get_option('show_avatars', 1) ); $class = ''; if ($has_avatar) { $class = 'ct-has-avatar'; } if ($is_by_author) { $class .= ' ct-author-comment'; } ?>
  • >
    $args['avatar_size']] ), [ 'tag_name' => 'figure', 'img_atts' => [ 'width' => intval($args['avatar_size']), 'height' => intval($args['avatar_size']), 'alt' => $comment->comment_author ], ] ); } ?>

    comment_approved ) : ?>