ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
xl_card.php File Reference

Go to the source code of this file.

Functions

 xl_card ()
 

Function Documentation

◆ xl_card()

xl_card ( )

Definition at line 5 of file xl_card.php.

5 {
6 //Init Factory and Renderer
7 global $DIC;
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", "Thumbnail Example");
20
21 $card = $f->card(
22 "Title",
23 $image
24 )->withSections(array(
25 $content
26 ));
27
28 $deck = $f->deck(array($card,$card,$card))
29 ->withCardsSize(ILIAS\UI\Component\Deck\Deck::SIZE_XL);
30
31 //Render
32 return $renderer->render($deck);
33}
Interface Card \UI\Component\Card.
global $DIC

References $DIC.