' .'
'; foreach ($OwnerIds as $Id) { $Result .= ownerTile($LaunchId, $Id); } $Result .= '
'; return $Result; } /** * Get HTML for a folder owner. * @param int $OwnerId Owner to display. * @return string HTML. */ function ownerTile(string $LaunchId, int $OwnerId) { static $UserImageField = false; static $SelectFolderUrl = false; if ($UserImageField === false) { $UserImageFieldId = EduLink::getInstance() ->configSetting("UserAvatarField"); $UserImageField = strlen($UserImageFieldId) > 0 ? MetadataField::getField($UserImageFieldId) : null; } if ($SelectFolderUrl === false) { $AF = ApplicationFramework::getInstance(); $SelectFolderUrl = $AF->baseUrl()."index.php" ."?P=P_EduLink_SelectFolder" ."&L=".$LaunchId; } $Owner = new User($OwnerId); # use the tile set styles for layout # see Metavus.scss, look for the comment about 'TILE SET' $Result = '
' .'
' .'' .'
' .'
'; $FoundImage = false; if (!is_null($UserImageField)) { $Avatar = $Owner->get($UserImageField); if (count($Avatar)) { $FoundImage = true; $Result .= (new Image($Avatar[0])) ->getHtml("mv-image-preview"); } } if (!$FoundImage) { $Result .= $Owner->getBestName(); } $Result .= '
' .'
' .'
'; return $Result; } # ----- SETUP ---------------------------------------------------------------- # check parameters if (!isset($H_LaunchId)) { throw new Exception("H_LaunchId not defined."); } if (!isset($H_OwnerList)) { throw new Exception("H_OwnerList not defined."); } $AF = ApplicationFramework::getInstance(); $Plugin = EduLink::getInstance(); # ----- DISPLAY -------------------------------------------------------------- include($AF->gUIFile("EduLink-StdPageStart.html")); ?>

## Publishers

0) { ?>

No publishers available.

gUIFile("EduLink-StdPageEnd.html"));