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

Go to the source code of this file.

Functions

 base ()
 Base Example for rendering an responsive Image. More...
 

Function Documentation

◆ base()

base ( )

Base Example for rendering an responsive Image.

Definition at line 5 of file base.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()->responsive(
13  "src/UI/examples/Image/HeaderIconLarge.svg",
14  "Thumbnail Example");
15  $html = $renderer->render($image);
16 
17  return $html;
18 }
global $DIC
$html
Definition: example_001.php:87