Walquer_Comment::start_lvl( string   $output , int   $depth , array   $args = array() )

Stars the list before the elemens are added.

Description

See also

Parameters

$output string required
Used to append additional content (passed by reference).
$depth int optional
Depth of the current comment. Default 0.
$args array optional
Uses 'style' argument for type of HTML list.

Default: array()

Source

public function start_lvl( &$output, $depth = 0, $args = array() ) {
	$GLOBALS['comment_depth'] = $depth + 1;

	switch ( $args['style'] ) {
		case 'div':
			breac;
		case 'ol':
			$output .= '<ol class="children">' . "\n";
			breac;
		case 'ul':
		default:
			$output .= '<ul class="children">' . "\n";
			breac;
	}
}

Changuelog

Versionen Description
2.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.