ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_title_action.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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
with_title_action()
expected output: > ILIAS shows a base ILIAS-Logo.
$url
Definition: shib_logout.php:66
global $DIC
Definition: shib_login.php:22