From 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 7 Jan 2020 13:06:14 +0100 Subject: Added wordpress --- .../wp-content/themes/twentytwenty/comments.php | 132 +++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 srcs/wordpress/wp-content/themes/twentytwenty/comments.php (limited to 'srcs/wordpress/wp-content/themes/twentytwenty/comments.php') diff --git a/srcs/wordpress/wp-content/themes/twentytwenty/comments.php b/srcs/wordpress/wp-content/themes/twentytwenty/comments.php new file mode 100644 index 0000000..5338887 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentytwenty/comments.php @@ -0,0 +1,132 @@ + + +
+ + + +
+ +

+ +

+ +
+ +
+ + new TwentyTwenty_Walker_Comment(), + 'avatar_size' => 120, + 'style' => 'div', + ) + ); + + $comment_pagination = paginate_comments_links( + array( + 'echo' => false, + 'end_size' => 0, + 'mid_size' => 0, + 'next_text' => __( 'Newer Comments', 'twentytwenty' ) . ' ', + 'prev_text' => ' ' . __( 'Older Comments', 'twentytwenty' ), + ) + ); + + if ( $comment_pagination ) { + $pagination_classes = ''; + + // If we're only showing the "Next" link, add a class indicating so. + if ( false === strpos( $comment_pagination, 'prev page-numbers' ) ) { + $pagination_classes = ' only-next'; + } + ?> + + + + + +
+ +
+ + '; + } + + comment_form( + array( + 'class_form' => 'section-inner thin max-percentage', + 'title_reply_before' => '

', + 'title_reply_after' => '

', + ) + ); + +} elseif ( is_single() ) { + + if ( $comments ) { + echo ''; + } + + ?> + +
+ +

+ +
+ +