ILIAS  release_8 Revision v8.24
show_multiple_texts.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
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}
global $DIC
Definition: feed.php:28
$factory
Definition: metadata.php:75