ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function base()
34{
35 global $DIC;
36 $f = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 //Creating a Mail Notification Item
40 $mail_icon = $f->symbol()->icon()->standard("mail", "mail");
41 $mail_title = $f->link()->standard("Inbox", "#");
42 $mail_notification_item = $f->item()->notification($mail_title, $mail_icon)
43 ->withDescription("You have 23 unread mails in your inbox")
44 ->withProperties(["Time" => "3 days ago"]);
45
46
47 return $renderer->render($mail_notification_item);
48}
$renderer
global $DIC
Definition: shib_login.php:26