WP_Admin_Bar::_render_group( object $node )
Parameters
- $node
-
(Required)
Source
File: wp-includes/class-wp-admin-bar.php
final protected function _render_group( $node ) {
if ( $node->type == 'container' ) {
$this->_render_container( $node );
return;
}
if ( $node->type != 'group' || empty( $node->children ) )
return;
if ( ! empty( $node->meta['class'] ) )
$class = ' class="' . esc_attr( trim( $node->meta['class'] ) ) . '"';
else
$class = '';
?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $class; ?>><?php
foreach ( $node->children as $item ) {
$this->_render_item( $item );
}
?></ul><?php
}