ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
show_multiple_texts.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
22 {
23  global $DIC;
24  $factory = $DIC->ui()->factory();
25  $renderer = $DIC->ui()->renderer();
26  $page1 = $factory->modal()->lightboxTextPage('Some text content you have to agree on!', 'User Agreement');
27  $page2 = $factory->modal()->lightboxTextPage(
28  'Another text content you have to agree on!',
29  'Data Privacy Statement'
30  );
31  $modal = $factory->modal()->lightbox([$page1, $page2]);
32  $button = $factory->button()->standard('Show Texts', '')
33  ->withOnClick($modal->getShowSignal());
34 
35  return $renderer->render([$button, $modal]);
36 }
$renderer
show_multiple_texts()
description: > Example for rendering a lightbox text page modal with multiple texts.
global $DIC
Definition: shib_login.php:25