$z_root . '/tokens/' . $token['atoken_id'], 'label' => $token['atoken_name'], 'title' => '', 'active' => ($active === $token['atoken_id']) ]; } if ($active) { $menu_items[] = [ 'href' => $z_root . '/tokens', 'label' => '  ' . t('Add new guest'), 'title' => '', 'active' => '' ]; } $tpl = get_markup_template("widget_menu.tpl"); $o .= replace_macros($tpl, [ '$title' => t('Guest access'), '$menu_items' => $menu_items, ]); return $o; } }