ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
show_multiple_texts.php File Reference

Go to the source code of this file.

Functions

 show_multiple_texts ()
 

Function Documentation

◆ show_multiple_texts()

show_multiple_texts ( )

Definition at line 2 of file show_multiple_texts.php.

3{
4 global $DIC;
5 $factory = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
7 $page1 = $factory->modal()->lightboxTextPage('Some text content you have to agree on!', 'User Agreement');
8 $page2 = $factory->modal()->lightboxTextPage(
9 'Another text content you have to agree on!',
10 'Data Privacy Statement'
11 );
12 $modal = $factory->modal()->lightbox([$page1, $page2]);
13 $button = $factory->button()->standard('Show Texts', '')
14 ->withOnClick($modal->getShowSignal());
15
16 return $renderer->render([$button, $modal]);
17}
$factory
Definition: metadata.php:43
global $DIC
Definition: saml.php:7

References $DIC, and $factory.