$z_root . '/group/' . $group['id'], 'label' => $group['gname'], 'title' => '', 'active' => ($active === $group['id']), 'count' => count(AccessList::members(local_channel(), $group['id'])) ]; } if ($active) { $menu_items[] = [ 'href' => $z_root . '/group', 'label' => '  ' . t('Add new group'), 'title' => '', 'active' => '', 'count' => '' ]; } $tpl = get_markup_template("widget_menu_count.tpl"); $o .= replace_macros($tpl, [ '$title' => t('Privacy groups'), '$menu_items' => $menu_items, ]); return $o; } }