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