ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_card.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function 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
with_card()
description: > Example for rendering a sub panel with a card.
Definition: with_card.php:33
global $DIC
Definition: shib_login.php:22