+
+if ($rowComment->comment_type == 'like') {
+ $template = 'post-like';
+} else {
+ //reply
+ $template = 'post-reply';
+ if (isset($comment->properties->content['html'])) {
+ $htmlContent = $comment->properties->content['html'];
+ } else {
+ $htmlContent = nl2br($comment->properties->content[0]);
+ }
+ $vars['htmlContent'] = $htmlContent;
+}
+
+if (isset($linkbackEndpoint) && $linkbackEndpoint) {
+ header('X-Pingback: ' . $linkbackEndpoint);
+ header('Link: <' . $linkbackEndpoint . '>; rel="webmention"');
+}
+
+render($template, $vars);