ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_card.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function with_card()
34{
35 global $DIC;
36 $f = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 $block = $f->panel()->standard(
40 "Panel Title",
41 $f->panel()->sub("Sub Panel Title", $f->legacy()->content("Some Content"))
42 ->withFurtherInformation($f->card()->standard("Card Heading")->withSections(array($f->legacy()->content("Card Content"))))
43 );
44
45 return $renderer->render($block);
46}
$renderer
global $DIC
Definition: shib_login.php:26