Go to the source code of this file.
◆ with_sections()
Definition at line 5 of file with_sections.php.
5 {
6
8 $f =
$DIC->ui()->factory();
9 $renderer =
$DIC->ui()->renderer();
10
11 $content = $f->listing()->descriptive(
12 array(
13 "Entry 1" => "Some text",
14 "Entry 2" => "Some more text",
15 )
16 );
17
18 $image = $f->image()->responsive(
19 "./templates/default/images/HeaderIcon.svg",
20 "Thumbnail Example");
21
22 $card = $f->card(
23 "Title",
24 $image
25 )->withSections(array(
26 $content,
27 $content,
28 $content
29 ));
30
31
32
33 return $renderer->render($card);
34}
References $DIC.