ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
decorative.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
34 function 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
decorative()
description: > Base example for rendering an Image with only decorative purpose (see accessibility r...
Definition: decorative.php:34
global $DIC
Definition: shib_login.php:22