ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
show_multiple_texts.php
Go to the documentation of this file.
1<?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}
An exception for terminatinating execution or to throw for unit testing.
$factory
Definition: metadata.php:58
show_multiple_texts()
$DIC
Definition: xapitoken.php:46