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.
Example: max_depth = 2, with 5 levels of nested content. 1 1.1 1.1.1 1.1.1.1 1.1.1.1.1 1.1.2 1.1.2.1 2 2.2
void
display_element
( $element, &$children_elements, $max_depth, [ $depth = 0], $args, &$output)
-
$element
-
&$children_elements
-
$max_depth
-
$depth
-
$args
-
&$output
Redefinition of:
- Walker::display_element()
- Traverse elements to create list from elements.
void
end_el
( &$output, object $comment, [int $depth = 0], [array $args = array()], string $output)
-
string
$output: Passed by reference. Used to append additional content.
-
object
$comment
-
int
$depth: Depth of comment.
-
array
$args
-
&$output
Redefinition of:
- Walker::end_el()
- Ends the element output, if needed.
void
end_lvl
( &$output, [int $depth = 0], [array $args = array()], string $output)
-
string
$output: Passed by reference. Used to append additional content.
-
int
$depth: Depth of comment.
-
array
$args: Will only append content if style argument value is 'ol' or 'ul'.
-
&$output
Redefinition of:
- Walker::end_lvl()
- Ends the list of after the elements are added.
void
start_el
( &$output, object $comment, int $depth, array $args, [ $id = 0], string $output)
-
string
$output: Passed by reference. Used to append additional content.
-
object
$comment: Comment data object.
-
int
$depth: Depth of comment in reference to parents.
-
array
$args
-
&$output
-
$id
Redefinition of:
- Walker::start_el()
- Start the element output.
void
start_lvl
( &$output, [int $depth = 0], [array $args = array()], string $output)
-
string
$output: Passed by reference. Used to append additional content.
-
int
$depth: Depth of comment.
-
array
$args: Uses 'style' argument for type of HTML list.
-
&$output
Redefinition of:
- Walker::start_lvl()
- Starts the list before the elements are added.
Inherited Methods
Inherited From Walker
Walker::display_element()
Walker::end_el()
Walker::end_lvl()
Walker::get_number_of_root_elements()
Walker::paged_walk()
Walker::start_el()
Walker::start_lvl()
Walker::unset_children()
Walker::walk()