ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
show_a_single_text.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
18 {
19  global $DIC;
20  $factory = $DIC->ui()->factory();
21  $renderer = $DIC->ui()->renderer();
22  $page = $factory->modal()->lightboxTextPage('Some text content you have to agree on!', 'User Agreement');
23  $modal = $factory->modal()->lightbox($page);
24  $button = $factory->button()->standard('Show Text', '')
25  ->withOnClick($modal->getShowSignal());
26 
27  return $renderer->render([$button, $modal]);
28 }
show_a_single_text()
description: > Example for rendering a lightbox text page modal with a single text.
$renderer
global $DIC
Definition: shib_login.php:25