ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
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
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Deck
;
6
7
function
xl_card
()
8
{
9
//Init Factory and Renderer
10
global
$DIC
;
11
$f
= $DIC->ui()->factory();
12
$renderer = $DIC->ui()->renderer();
13
14
//Generate some content
15
$content =
$f
->listing()->descriptive(
16
array(
17
"Entry 1"
=>
"Some text"
,
18
"Entry 2"
=>
"Some more text"
,
19
)
20
);
21
22
//Define the some responsive image
23
$image =
$f
->image()->responsive(
24
"./templates/default/images/HeaderIcon.svg"
,
25
"Thumbnail Example"
26
);
27
28
//Define the card by using the content and the image
29
$card =
$f
->card()->standard(
30
"Title"
,
31
$image
32
)->withSections(array(
33
$content
34
));
35
36
//Define the extra large deck
37
$deck =
$f
->deck(array($card,$card,$card))->withExtraLargeCardsSize();
38
39
//Render
40
return
$renderer->render($deck);
41
}
ILIAS\UI\examples\Deck\xl_card
xl_card()
Definition:
xl_card.php:7
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\Deck
Definition:
base.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
src
UI
examples
Deck
xl_card.php
Generated on Mon Apr 21 2025 22:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)