get($Field); } } return $UserData[$UserId][$UserField]; } # ----- SETUP ---------------------------------------------------------------- $AF = ApplicationFramework::getInstance(); $PageTitle = "Manage Subscribers"; $AddUserButton = new HtmlButton("Add User"); $AddUserButton->setIcon("Plus.svg"); # ----- DISPLAY -------------------------------------------------------------- if (isset($H_Error)) { print "

".$H_Error."

"; } $AF->setPageTitle($PageTitle); ?> getHtml(); ?> [ "ValueFunction" => function ($UserId, $UserField) { $UserName = getUserInfo($UserId, $UserField); return "".$UserName.""; }, ], "EMail" => [ "Heading" => "E-Mail", "AllowHTML" => true, "ValueFunction" => function ($UserId, $UserField) { $SafeEmail = defaulthtmlentities(getUserInfo($UserId, $UserField)); return "".$SafeEmail.""; }, ], "RealName" => [ "Heading" => "Full Name", "ValueFunction" => "getUserInfo", ], ]; $ListUI = new ItemListUI($SubscriberFieldDefinitions); $ListUI->heading($PageTitle); $RemoveLinkFunc = function ($Item) { # link for removing subscribers return "index.php?P=P_Blog_ManageSubscribers&ID=".$Item; }; $ListUI->addActionButton("Remove", $RemoveLinkFunc, 'Delete.svg'); $ListUI->display($H_Subscribers);