'comment_parent', 'id' => 'comment_ID'); /** * Start the list before the elements are added. * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of comment. * @param array $args Not use. */ public function start_lvl(&$output, $depth = 0, $args = array()) { $GLOBALS['comment_depth'] = $depth + 1; $output.=""; //only for help purpose } /** * End the list of items after the elements are added. * * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of comment. * @param array $args Not use. */ public function end_lvl(&$output, $depth = 0, $args = array()) { $GLOBALS['comment_depth'] = $depth + 1; $output.=""; //only for help purpose } /** * Traverse elements to create list from elements. * * This function is designed to enhance Walker::display_element() to * display children of higher nesting levels than selected inline on * the highest depth level displayed. This prevents them being orphaned * at the end of the comment list. * * @param object $element Data object. * @param array $children_elements List of elements to continue traversing. * @param int $max_depth Max depth to traverse. * @param int $depth Depth of current element. * @param array $args An array of arguments. * @param string $output Passed by reference. Used to append additional content. * @return null Null on failure with no changes to parameters. */ public function display_element($element, &$children_elements, $max_depth, $depth, $args, &$output) { if (!$element) return; $id_field = $this->db_fields['id']; $id = $element->$id_field; parent::display_element($element, $children_elements, $max_depth, $depth, $args, $output); // If we're at the max depth, and the current element still has children, loop over those and display them at this level // This is to prevent them being orphaned to the end of the list. if ($max_depth <= $depth + 1 && isset($children_elements[$id])) { foreach ($children_elements[$id] as $child) $this->display_element($child, $children_elements, $max_depth, $depth, $args, $output); unset($children_elements[$id]); } } /** * Start the element output. * * @param string $output Passed by reference. Used to append additional content. * @param object $comment Comment data object. * @param int $depth Depth of comment in reference to parents. * @param array $args An array of arguments. */ public function start_el(&$output, $comment, $depth = 0, $args = array(), $id = 0) { $depth++; $GLOBALS['comment_depth'] = $depth; $GLOBALS['comment'] = $comment; $output.=""; if (( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) && $args['short_ping']) { ob_start(); $this->ping($comment, $depth, $args); $output .= ob_get_clean(); } else { $output.="\n" . '
'; ob_start(); $this->comment($comment, $depth, $args); $output .= ob_get_clean(); } } /** * Ends the element output, if needed. * @param string $output Passed by reference. Used to append additional content. * @param object $comment The comment object. Default current comment. * @param int $depth Depth of comment. * @param array $args An array of arguments. */ public function end_el(&$output, $comment, $depth = 0, $args = array()) { $output.="\n
"; $output.="\n"; } /** * Output a pingback comment. * * @param object $comment The comment object. * @param int $depth Depth of comment. * @param array $args An array of arguments. */ protected function ping($comment, $depth, $args) { $tag = 'div'; ?> < id="comment-" >
', ''); ?>

%s '.__('says:','basico').''), get_comment_author_link()); ?>

comment_approved == '0') : ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>