ILIAS  release_8 Revision v8.23
with_title_action.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 function with_title_action()
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  $url = "http://www.ilias.de";
20 
21  $card = $f->card()->standard("Title", $image)->withTitleAction($url);
22 
23  //Render
24  return $renderer->render($card);
25 }
global $DIC
Definition: feed.php:28
$url