ILIAS  release_8 Revision v8.24
with_card.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7function with_card()
8{
9 global $DIC;
10 $f = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12
13 $block = $f->panel()->standard(
14 "Panel Title",
15 $f->panel()->sub("Sub Panel Title", $f->legacy("Some Content"))
16 ->withFurtherInformation($f->card()->standard("Card Heading")->withSections(array($f->legacy("Card Content"))))
17 );
18
19 return $renderer->render($block);
20}
global $DIC
Definition: feed.php:28