ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
repository.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2018 Jesús López <lopez@leifos.com> Extended GPL, see docs/LICENSE */
4 
5 function repository()
6 {
7  //Init Factory and Renderer
8  global $DIC;
9  $f = $DIC->ui()->factory();
10  $renderer = $DIC->ui()->renderer();
11 
12  $icon = $f->icon()->standard('crs', 'Course')->withIsOutlined(true);
13 
14  $items = array(
15  $f->button()->shy("Go to Course", "#"),
16  $f->button()->shy("Go to Portfolio", "#"),
17  $f->divider()->horizontal(),
18  $f->button()->shy("ilias.de", "http://www.ilias.de")
19  );
20 
21  $dropdown = $f->dropdown()->standard($items);
22 
23 
24  $content = $f->listing()->descriptive(
25  array(
26  "Entry 1" => "Some text",
27  "Entry 2" => "Some more text",
28  )
29  );
30 
31  $image = $f->image()->responsive(
32  "./templates/default/images/HeaderIcon.svg",
33  "Thumbnail Example"
34  );
35 
36  $card = $f->card()->repositoryObject(
37  "Title",
38  $image
39  )->withObjectIcon(
40  $icon
41  )->withActions(
42  $dropdown
43  )->withCertificateIcon(
44  true
45  )->withSections(
46  array(
47  $content,
48  $content,
49  )
50  );
51 
52  //Define the deck
53  $deck = $f->deck(array($card,$card,$card,$card,$card,
54  $card,$card,$card,$card))->withNormalCardsSize();
55 
56  //Render
57  return $renderer->render($deck);
58 }
global $DIC
Definition: saml.php:7
repository()
Definition: repository.php:5