ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
show_multiple_texts.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
38{
39 global $DIC;
40 $factory = $DIC->ui()->factory();
41 $renderer = $DIC->ui()->renderer();
42 $page1 = $factory->modal()->lightboxTextPage('Some text content you have to agree on!', 'User Agreement');
43 $page2 = $factory->modal()->lightboxTextPage(
44 'Another text content you have to agree on!',
45 'Data Privacy Statement'
46 );
47 $modal = $factory->modal()->lightbox([$page1, $page2]);
48 $button = $factory->button()->standard('Show Texts', '')
49 ->withOnClick($modal->getShowSignal());
50
51 return $renderer->render([$button, $modal]);
52}
$renderer
global $DIC
Definition: shib_login.php:26