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