'.$this->urlRender($group).' | ';
// Flag for formatting the child table
$subgroupPresent = false;
// Iterate over each subgroup, there will always be a 'default'
foreach ($items as $subgroup => $subitems) {
// Render all the links
$urls = $this->urlRender($subitems);
// Format into the list
$urls = str_replace("", "", $urls);
// The base group
if ($subgroup == 'default') {
// Append the list of URLs
$ghtml .= '';
} else {
// We are working with a subgroup, additional HTML tags required
// If we don't already have a child table for the subgroups, create one
if (!$subgroupPresent) {
// This is our first subgroup
$ghtml .= '';
// Turn on the switch
$subgroupPresent = true;
}
// Append the row for the subgroup
$ghtml .= ''.$this->urlRender($subgroup).' | '.$urls." | ";
}
}
// We had subgroups, close off the child table
if ($subgroupPresent) {
$ghtml .= ' ';
}
// Close the group
$ghtml .= ' |
';
// Append the group to our HTML
$html .= $ghtml;
// Reset our placeholder
$ghtml = '';
}
// Close out the table
$html .= '