ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
4function 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()->standard(
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}
user()
Definition: user.php:4
An exception for terminatinating execution or to throw for unit testing.
global $DIC
Definition: saml.php:7