> $surnames
* @var bool $totals
* @var Tree $tree
*/
$items = [];
foreach ($surnames as $surn => $surns) {
foreach ($surns as $spfxsurn => $count) {
if ($totals) {
$item = I18N::translate('%1$s (%2$s)', '' . e($spfxsurn) . '', I18N::number($count));
} else {
$item = '' . e($spfxsurn) . '';
}
if ($module instanceof ModuleListInterface) {
$items[] = '' . $item . '';
} else {
$items[] = '' . $item . '';
}
}
}
?>
= implode(I18N::$list_separator, $items) ?>