ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
show_a_single_text.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
34 {
35  global $DIC;
36  $factory = $DIC->ui()->factory();
37  $renderer = $DIC->ui()->renderer();
38  $page = $factory->modal()->lightboxTextPage('Some text content you have to agree on!', 'User Agreement');
39  $modal = $factory->modal()->lightbox($page);
40  $button = $factory->button()->standard('Show Text', '')
41  ->withOnClick($modal->getShowSignal());
42 
43  return $renderer->render([$button, $modal]);
44 }
show_a_single_text()
description: > Example for rendering a lightbox text page modal with a single text.
$renderer
global $DIC
Definition: shib_login.php:22