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