' . "\n"; } /** * End the list of items after the elements are added. * * @see Walker_Comment::end_lvl() * * @param string $output * Passed by reference. Used to append additional content. * @param int $depth * Depth of comment. * @param array $args * Will only append content if style argument value is 'ol' or 'ul'. */ public function end_lvl(&$output, $depth = 0, $args = array()) { $GLOBALS['comment_depth'] = $depth + 1; // TODO should it not be -1??? $output .= '' . "\n"; } /** * Output a single comment. * * @see wp_list_comments() * * @param object $comment * Comment to display. * @param int $depth * Depth of comment. * @param array $args * An array of arguments. */ protected function comment($comment, $depth, $args) { $this->html5_comment($comment, $depth, $args); } /** * Output a comment in the HTML5 format. * * @see wp_list_comments() * * @param object $comment * Comment to display. * @param int $depth * Depth of comment. * @param array $args * An array of arguments. */ protected function html5_comment($comment, $depth, $args) { ?>