From 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 7 Jan 2020 13:06:14 +0100 Subject: Added wordpress --- .../class-twentynineteen-walker-comment.php | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 srcs/wordpress/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php (limited to 'srcs/wordpress/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php') diff --git a/srcs/wordpress/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php b/srcs/wordpress/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php new file mode 100644 index 0000000..cded91d --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php @@ -0,0 +1,128 @@ + + < id="comment-" has_children ? 'parent' : '', $comment ); ?>> +
+
+
+ ', $comment_author_url ); + echo $avatar; + } + } + + /* + * Using the `check` icon instead of `check_circle`, since we can't add a + * fill color to the inner check shape when in circle form. + */ + if ( twentynineteen_is_comment_by_post_author( $comment ) ) { + printf( '', twentynineteen_get_icon_svg( 'check', 24 ) ); + } + + printf( + wp_kses( + /* translators: %s: Comment author link. */ + __( '%s says:', 'twentynineteen' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), + '' . $comment_author . '' + ); + + if ( ! empty( $comment_author_url ) ) { + echo ''; + } + ?> +
+ + + + + + comment_approved ) : ?> +

+ + +
+ +
+ +
+ +
+ + 'div-comment', + 'depth' => $depth, + 'max_depth' => $args['max_depth'], + 'before' => '
', + 'after' => '
', + ) + ) + ); + ?> +