ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
decorative.php File Reference

Go to the source code of this file.

Functions

 decorative ()
 Base Example for rendering an Image with only decorative purpose (see accessibility rules in images) More...
 

Function Documentation

◆ decorative()

decorative ( )

Base Example for rendering an Image with only decorative purpose (see accessibility rules in images)

Definition at line 5 of file decorative.php.

References $DIC, and $html.

5  {
6  //Loading factories
7  global $DIC;
8  $f = $DIC->ui()->factory();
9  $renderer = $DIC->ui()->renderer();
10 
11  //Genarating and rendering the image
12  $image = $f->image()->standard(
13  "src/UI/examples/Image/HeaderIconLarge.svg",
14  "");
15  $html = $renderer->render($image);
16 
17  return $html;
18 }
global $DIC
$html
Definition: example_001.php:87