ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_signal_action.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33{
34 //Loading factories
35 global $DIC;
36 $f = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 //Generating and rendering the image and modal
40 $image_in_modal = $f->image()->standard(
41 "assets/ui-examples/images/Image/mountains.jpg",
42 ""
43 );
44 $page = $f->modal()->lightboxImagePage($image_in_modal, "Nice view");
45 $modal = $f->modal()->lightbox($page);
46
47 $image = $f->image()->standard(
48 "assets/ui-examples/images/Image/HeaderIconLarge.svg",
49 "Thumbnail Example"
50 )->withAction($modal->getShowSignal());
51
52 $html = $renderer->render([$image, $modal]);
53
54 return $html;
55}
$renderer
global $DIC
Definition: shib_login.php:26