ILIAS
trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
◀ 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
show_a_single_image.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Modal\LightboxImagePage
;
22
34
function
show_a_single_image
()
35
{
36
global
$DIC
;
37
$factory = $DIC->ui()->factory();
38
$renderer
= $DIC->ui()->renderer();
39
$image = $factory->image()->responsive(
"assets/ui-examples/images/Image/mountains.jpg"
,
"Image source: https://stocksnap.io, Creative Commons CC0 license"
);
40
$page = $factory->modal()->lightboxImagePage($image,
'Mountains'
);
41
$modal = $factory->modal()->lightbox($page);
42
$button = $factory->button()->standard(
'Show Image'
,
''
)
43
->withOnClick($modal->getShowSignal());
44
45
return
$renderer
->render([$button, $modal]);
46
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
$DIC
global $DIC
Definition:
shib_login.php:22
ILIAS\UI\examples\Modal\LightboxImagePage\show_a_single_image
show_a_single_image()
description: > Example for rendering a lightbox image page modal with a single image.
Definition:
show_a_single_image.php:34
ILIAS\UI\examples\Modal\LightboxImagePage
Definition:
show_a_single_image.php:21
components
ILIAS
UI
src
examples
Modal
LightboxImagePage
show_a_single_image.php
Generated on Mon Apr 7 2025 23:04:48 for ILIAS by
1.8.13 (using
Doxyfile
)