ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function base()
34{
35 //Loading factories
36 global $DIC;
37 $f = $DIC->ui()->factory();
38 $renderer = $DIC->ui()->renderer();
39
40 //Genarating and rendering the image
41 $image = $f->image()->responsive(
42 "assets/ui-examples/images/Image/HeaderIconLarge.svg",
43 "Thumbnail Example"
44 );
45 $html = $renderer->render($image);
46
47 return $html;
48}
$renderer
global $DIC
Definition: shib_login.php:26