ILIAS  release_7 Revision v7.30-3-g800a261c036
show_a_single_text.php File Reference

Go to the source code of this file.

Functions

 show_a_single_text ()
 

Function Documentation

◆ show_a_single_text()

show_a_single_text ( )

Definition at line 2 of file show_a_single_text.php.

3{
4 global $DIC;
5 $factory = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
7 $page = $factory->modal()->lightboxTextPage('Some text content you have to agree on!', 'User Agreement');
8 $modal = $factory->modal()->lightbox($page);
9 $button = $factory->button()->standard('Show Text', '')
10 ->withOnClick($modal->getShowSignal());
11
12 return $renderer->render([$button, $modal]);
13}
global $DIC
Definition: goto.php:24
$factory
Definition: metadata.php:58

References $DIC, and $factory.