ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
repository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function repository()
34{
35 //Init Factory and Renderer
36 global $DIC;
37 $f = $DIC->ui()->factory();
38 $renderer = $DIC->ui()->renderer();
39
40 $icon = $f->symbol()->icon()->standard('crs', 'Course');
41
42 $items = array(
43 $f->button()->shy("Go to Course", "#"),
44 $f->button()->shy("Go to Portfolio", "#"),
45 $f->divider()->horizontal(),
46 $f->button()->shy("ilias.de", "http://www.ilias.de")
47 );
48
49 $dropdown = $f->dropdown()->standard($items);
50
51
52 $content = $f->listing()->descriptive(
53 array(
54 "Entry 1" => "Some text",
55 "Entry 2" => "Some more text",
56 )
57 );
58
59 $image = $f->image()->responsive(
60 "./assets/images/logo/HeaderIcon.svg",
61 "Thumbnail Example"
62 );
63
64 $card = $f->card()->repositoryObject(
65 "Title",
66 $image
67 )->withObjectIcon(
68 $icon
69 )->withActions(
70 $dropdown
71 )->withCertificateIcon(
72 true
73 )->withSections(
74 array(
75 $content,
76 $content,
77 )
78 );
79
80 //Define the deck
81 $deck = $f->deck(array($card,$card,$card,$card,$card,
82 $card,$card,$card,$card))->withNormalCardsSize();
83
84 //Render
85 return $renderer->render($deck);
86}
$renderer
global $DIC
Definition: shib_login.php:26