ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
xl_card.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Deck
;
22
33
function
xl_card
()
34
{
35
//Init Factory and Renderer
36
global
$DIC
;
37
$f
= $DIC->ui()->factory();
38
$renderer
= $DIC->ui()->renderer();
39
40
//Generate some content
41
$content =
$f
->listing()->descriptive(
42
array(
43
"Entry 1"
=>
"Some text"
,
44
"Entry 2"
=>
"Some more text"
,
45
)
46
);
47
48
//Define the some responsive image
49
$image =
$f
->image()->responsive(
50
"./assets/images/logo/HeaderIcon.svg"
,
51
"Thumbnail Example"
52
);
53
54
//Define the card by using the content and the image
55
$card =
$f
->card()->standard(
56
"Title"
,
57
$image
58
)->withSections(array(
59
$content
60
));
61
62
//Define the extra large deck
63
$deck =
$f
->deck(array($card,$card,$card))->withExtraLargeCardsSize();
64
65
//Render
66
return
$renderer
->render($deck);
67
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Deck\xl_card
xl_card()
description: > Example for rendering a XL card
Definition:
xl_card.php:33
ILIAS\UI\examples\Deck
Definition:
base.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:22
components
ILIAS
UI
src
examples
Deck
xl_card.php
Generated on Sun Apr 6 2025 23:04:32 for ILIAS by
1.8.13 (using
Doxyfile
)