children as $group ) {
$this->_render_group( $group );
}
?>
type || empty( $node->children ) ) {
return;
}
echo '';
foreach ( $node->children as $group ) {
$this->_render_group( $group );
}
echo '
';
}
/**
* @param object $node
*/
final protected function _render_group( $node ) {
if ( 'container' === $node->type ) {
$this->_render_container( $node );
return;
}
if ( 'group' !== $node->type || empty( $node->children ) ) {
return;
}
if ( ! empty( $node->meta['class'] ) ) {
$class = ' class="' . esc_attr( trim( $node->meta['class'] ) ) . '"';
} else {
$class = '';
}
echo "