getId() . ')">' . strtoupper($folder->getName()) . ''; $children = $folder->getChildren(); foreach($children as $child) { if ($child instanceOf OC_News_Folder){ print_folder($child, $depth+1); } } } ?>