ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
show_multiple_texts.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Modal\LightboxTextPage
;
6
7
function
show_multiple_texts
()
8
{
9
global
$DIC
;
10
$factory
=
$DIC
->ui()->factory();
11
$renderer =
$DIC
->ui()->renderer();
12
$page1 =
$factory
->modal()->lightboxTextPage(
'Some text content you have to agree on!'
,
'User Agreement'
);
13
$page2 =
$factory
->modal()->lightboxTextPage(
14
'Another text content you have to agree on!'
,
15
'Data Privacy Statement'
16
);
17
$modal =
$factory
->modal()->lightbox([$page1, $page2]);
18
$button =
$factory
->button()->standard(
'Show Texts'
,
''
)
19
->withOnClick($modal->getShowSignal());
20
21
return
$renderer->render([$button, $modal]);
22
}
$DIC
global $DIC
Definition:
feed.php:28
$factory
$factory
Definition:
metadata.php:75
ILIAS\UI\examples\Modal\LightboxTextPage
Definition:
show_a_single_text.php:5
ILIAS\UI\examples\Modal\LightboxTextPage\show_multiple_texts
show_multiple_texts()
Definition:
show_multiple_texts.php:7
src
UI
examples
Modal
LightboxTextPage
show_multiple_texts.php
Generated on Sun Nov 2 2025 22:02:03 for ILIAS by
1.9.4 (using
Doxyfile
)