From 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 7 Jan 2020 13:06:14 +0100 Subject: Added wordpress --- srcs/wordpress/wp-admin/edit-form-comment.php | 235 ++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 srcs/wordpress/wp-admin/edit-form-comment.php (limited to 'srcs/wordpress/wp-admin/edit-form-comment.php') diff --git a/srcs/wordpress/wp-admin/edit-form-comment.php b/srcs/wordpress/wp-admin/edit-form-comment.php new file mode 100644 index 0000000..b0b1363 --- /dev/null +++ b/srcs/wordpress/wp-admin/edit-form-comment.php @@ -0,0 +1,235 @@ + +
+comment_ID ); ?> +
+

+ +
+ + + + +
+
+comment_post_ID > 0 ) : + $comment_link = get_comment_link( $comment ); + ?> +
+ +
+ +
+
+

+
+ + + + + + + + + + + + + + + + + +
+
+
+ +
+' . __( 'Comment' ) . ''; + $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); + wp_editor( + $comment->comment_content, + 'content', + array( + 'media_buttons' => false, + 'tinymce' => false, + 'quicktags' => $quicktags_settings, + ) + ); + wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); + ?> +
+
+ +
+
+

+
+
+
+ +
+ +
+ +
+
+ +
+ +
+comment_date ) ), + /* translators: Publish box time format, see https://secure.php.net/date */ + date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) +); +?> + +' . $submitted . '' ); +?> + + +
+ + +
+
+ +comment_post_ID; +if ( current_user_can( 'edit_post', $post_id ) ) { + $post_link = ""; + $post_link .= esc_html( get_the_title( $post_id ) ) . ''; +} else { + $post_link = esc_html( get_the_title( $post_id ) ); +} +?> + +
+ ' . $post_link . '' + ); + ?> +
+ +comment_parent ) : + $parent = get_comment( $comment->comment_parent ); + if ( $parent ) : + $parent_link = esc_url( get_comment_link( $parent ) ); + $name = get_comment_author( $parent ); + ?> +
+ ' . $name . '' + ); + ?> +
+ + + + +
+
+
+ +
+
+comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to Trash' ) ) . "\n"; ?> +
+
+ +
+
+
+
+
+
+
+ +
+ +
+ + + + + + + +
+
+
+
+ + + +