ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
show_multiple_texts.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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
show_multiple_texts()
description: > Example for rendering a lightbox text page modal with multiple texts.
global $DIC
Definition: shib_login.php:22