ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
32function base()
33{
34 //Init Factory and Renderer
35 global $DIC;
36 $f = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 $content = $f->listing()->descriptive(
40 array(
41 "Entry 1" => "Some text",
42 "Entry 2" => "Some more text",
43 )
44 );
45
46 $image = $f->image()->responsive(
47 "./assets/images/logo/HeaderIcon.svg",
48 "Thumbnail Example"
49 );
50
51 $card = $f->card()->standard("Title", $image);
52
53 //Render
54 return $renderer->render($card);
55}
$renderer
global $DIC
Definition: shib_login.php:26