ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 {
6  //Init Factory and Renderer
7  global $DIC;
8  $f = $DIC->ui()->factory();
9  $renderer = $DIC->ui()->renderer();
10 
11  $address = $f->listing()->descriptive(
12  array(
13  "Address" => "Hochschlustrasse 6",
14  "" => "3006 Bern",
15  "Contact" => "timon.amstutz@ilub.unibe.ch"
16  )
17  );
18 
19  //Define the some responsive image
20  $image = $f->image()->responsive(
21  "./templates/default/images/HeaderIcon.svg",
22  "Thumbnail Example"
23  );
24 
25  //Define the card by using the image and add a new section with a button
26  $card = $f->card(
27  "Timon Amstutz",
28  $image
29  )->withSections(array($address,$f->button()->standard("Request Contact", "")));
30 
31  //Create a deck with large cards
32  $deck = $f->deck(array($card,$card,$card,$card,$card,$card,$card))->withLargeCardsSize();
33 
34  //Render
35  return $renderer->render($deck);
36 }
global $DIC
Definition: saml.php:7
user()
Definition: user.php:4
Create styles array
The data for the language used.