ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_sections.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
14 function with_sections()
15 {
16  //Init Factory and Renderer
17  global $DIC;
18  $f = $DIC->ui()->factory();
19  $renderer = $DIC->ui()->renderer();
20 
21  $content = $f->listing()->descriptive(
22  array(
23  "Entry 1" => "Some text",
24  "Entry 2" => "Some more text",
25  )
26  );
27 
28  $image = $f->image()->responsive(
29  "./assets/images/logo/HeaderIcon.svg",
30  "Thumbnail Example"
31  );
32 
33  $card = $f->card()->standard(
34  "Title",
35  $image
36  )->withSections(
37  array(
38  $content,
39  $content,
40  $content
41  )
42  );
43 
44  //Render
45  return $renderer->render($card);
46 }
$renderer
with_sections()
expected output: > ILIAS shows a base ILIAS-Logo.
global $DIC
Definition: shib_login.php:25