direction == 'rtl' ? 'pull-right' : ''; $class = $enabled ? 'nav ' . $direction : 'nav disabled ' . $direction; // Recurse through children of root node if they exist $menuTree = $menu->getTree(); $root = $menuTree->reset(); if ($root->hasChildren()) { echo '\n"; echo ''; if ($css = $menuTree->getCss()) { $doc->addStyleDeclaration(implode("\n", $css)); } }