ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

References $DIC, and $factory.

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: saml.php:7
$factory
Definition: metadata.php:43