ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 function base()
8 {
9  //Init Factory and Renderer
10  global $DIC;
11  $f = $DIC->ui()->factory();
12  $renderer = $DIC->ui()->renderer();
13 
14  $image = $f->image()->responsive(
15  "./templates/default/images/HeaderIcon.svg",
16  "Thumbnail Example"
17  );
18 
19  $card = $f->card()->repositoryObject("RepositoryObject Card Title", $image);
20 
21  //Render
22  return $renderer->render($card);
23 }
global $DIC
Definition: feed.php:28