3 declare(strict_types=1);
13 $f = $DIC->ui()->factory();
14 $renderer = $DIC->ui()->renderer();
15 $actions =
$f->dropdown()->standard(array(
16 $f->button()->shy(
"ILIAS",
"https://www.ilias.de"),
17 $f->button()->shy(
"GitHub",
"https://www.github.com")
19 $app_item =
$f->item()->standard(
"ILIAS Course")
20 ->withActions($actions)
21 ->withProperties(array(
22 "Origin" =>
"Course Title 1",
23 "Last Update" =>
"24.11.2011",
24 "Location" =>
"Room 123, Main Street 44, 3012 Bern"))
25 ->withDescription(
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.")
26 ->withLeadIcon(
$f->symbol()->icon()->standard(
'crs',
'Course',
'medium'));
27 return $renderer->render($app_item);
with_lead_icon()
With Lead Icon.