'; foreach ($menu_tree->children as $branch) { list($inpath, $html) = _uc_catalog_navigation($branch); $output .= $html; } $output .= ''; return $output; } /** * Displays a formatted link in the catalog block. * * @ingroup themeable */ function theme_uc_catalog_item($variables) { $here = $variables['here']; $link = $variables['link']; $lis = $variables['lis']; $expand = $variables['expand']; $inpath = $variables['inpath']; $count_children = $variables['count_children']; $output = ''; if ($expand || $count_children) { if ($here) { $output = '
  • ' . $link . "\n"; if (count($lis)) { $output .= '\n"; } $output .= "
  • "; } elseif ($expand || $inpath) { $output = '
  • ' . $link . "\n"; if (count($lis)) { $output .= '\n"; } $output .= "
  • "; } else { $output = '\n"; } } else { $output = '
  • ' . ($inpath ? '' : '') . $link . ($inpath ? '' : '') . "
  • \n"; } return $output; }