ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
user.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
3 
4 function user() {
5  //Init Factory and Renderer
6  global $DIC;
7  $f = $DIC->ui()->factory();
8  $renderer = $DIC->ui()->renderer();
9 
10  $address = $f->listing()->descriptive(
11  array(
12  "Address" => "Hochschlustrasse 6",
13  "" => "3006 Bern",
14  "Contact" => "timon.amstutz@ilub.unibe.ch"
15  )
16  );
17 
18  $image = $f->image()->responsive(
19  "./templates/default/images/HeaderIcon.svg", "Thumbnail Example");
20 
21  $card = $f->card(
22  "Timon Amstutz",
23  $image
24  )->withSections(array($address,$f->button()->standard("Request Contact","")));
25 
26  $deck = $f->deck(array($card,$card,$card,$card,$card,$card,$card))
27  ->withCardsSize(ILIAS\UI\Component\Deck\Deck::SIZE_L);
28 
29  //Render
30  return $renderer->render($deck);
31 }
Interface Card .
user()
Definition: user.php:4
Create styles array
The data for the language used.
global $DIC