From 5b9f4cd4a98e8a61059b76eea7076bb744aa5f09 Mon Sep 17 00:00:00 2001 From: Fabiano Alencar Date: Fri, 2 Mar 2018 16:09:58 -0300 Subject: [PATCH] Initial comment list. --- src/functions.php | 3 +- src/functions/single-functions.php | 67 ++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 src/functions/single-functions.php diff --git a/src/functions.php b/src/functions.php index 01219fd..9ebc478 100644 --- a/src/functions.php +++ b/src/functions.php @@ -2,4 +2,5 @@ require get_template_directory() . '/functions/setup.php'; require get_template_directory() . '/functions/enqueues.php'; -require get_template_directory() . '/functions/pagination.php'; \ No newline at end of file +require get_template_directory() . '/functions/pagination.php'; +require get_template_directory() . '/functions/single-functions.php'; \ No newline at end of file diff --git a/src/functions/single-functions.php b/src/functions/single-functions.php new file mode 100644 index 0000000..3dae52e --- /dev/null +++ b/src/functions/single-functions.php @@ -0,0 +1,67 @@ +user_id; + $get_user = get_userdata($user_id); + ?> +
+ 'img-fluid rounded-circle mr-sm-3', ); ?> + +
+
+ '.$user->display_name.''; + } else { + comment_author_link(); + } + printf('

%s às %s.

', get_comment_date(), get_comment_time()); + ?> +
+ +

+ 'Responder chat_bubble_outline'), $comment); ?> +

+
+
+ +