ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
xl_card.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
5
function
xl_card
()
6
{
7
//Init Factory and Renderer
8
global
$DIC
;
9
$f
= $DIC->ui()->factory();
10
$renderer = $DIC->ui()->renderer();
11
12
//Generate some content
13
$content =
$f
->listing()->descriptive(
14
array(
15
"Entry 1"
=>
"Some text"
,
16
"Entry 2"
=>
"Some more text"
,
17
)
18
);
19
20
//Define the some responsive image
21
$image =
$f
->image()->responsive(
22
"./templates/default/images/HeaderIcon.svg"
,
23
"Thumbnail Example"
24
);
25
26
//Define the card by using the content and the image
27
$card =
$f
->card()->standard(
28
"Title"
,
29
$image
30
)->withSections(array(
31
$content
32
));
33
34
//Define the extra large deck
35
$deck =
$f
->deck(array($card,$card,$card))->withExtraLargeCardsSize();
36
37
//Render
38
return
$renderer->render($deck);
39
}
Vendor\Package\$f
$f
Definition:
example_cleaned.php:31
xl_card
xl_card()
Definition:
xl_card.php:5
$DIC
$DIC
Definition:
xapitoken.php:46
src
UI
examples
Deck
xl_card.php
Generated on Wed Apr 9 2025 20:01:40 for ILIAS by
1.8.13 (using
Doxyfile
)