ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_title_action.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
30{
31 //Init Factory and Renderer
32 global $DIC;
33 $f = $DIC->ui()->factory();
34 $renderer = $DIC->ui()->renderer();
35
36 $image = $f->image()->responsive(
37 "./assets/images/logo/HeaderIcon.svg",
38 "Thumbnail Example"
39 );
40
41 $url = "http://www.ilias.de";
42
43 $card = $f->card()->standard("Title", $image)->withTitleAction($url);
44
45 //Render
46 return $renderer->render($card);
47}
$renderer
global $DIC
Definition: shib_login.php:26
$url
Definition: shib_logout.php:68