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