ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_footer.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
17 function with_footer()
18 {
19  global $DIC;
20 
21  $factory = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $tags = ["PHP", "ILIAS", "Sofware", "SOLID", "Domain Driven"];
25 
26  $html = "";
27  foreach ($tags as $tag) {
28  $html .= $renderer->render($factory->button()->tag($tag, ""));
29  }
30 
31  $legacy = $factory->legacy($html);
32  $link = $factory->button()->Shy("Edit Keywords", "");
33 
34  $panel = $factory->panel()->secondary()->legacy("panel title", $legacy)->withFooter($link);
35 
36  return $renderer->render($panel);
37 }
$renderer
global $DIC
Definition: shib_login.php:25
with_footer()
description: > Example for rendering a secondary legacy listing panel with a footer.
Definition: with_footer.php:17