ILIAS  trunk Revision v12.0_alpha-1338-g8f7e531aa3c
ILIAS\UI\examples\Counter\Novelty Namespace Reference

Functions

 base ()
 

Function Documentation

◆ base()

ILIAS\UI\examples\Counter\Novelty\base ( )

description: > Base example for rendering a novelty counter.

expected output: >

ILIAS shows a glyph with a counter. The counter consists of a white colored number within a red/orange circle.

Definition at line 32 of file base.php.

33{
34 global $DIC;
35 $f = $DIC->ui()->factory();
36 $renderer = $DIC->ui()->renderer();
37
38 return $renderer->render(
39 $f->button()->shy('', '#')->withSymbol(
40 $f->symbol()->glyph()->mail()->withCounter($f->counter()->novelty(3))
41 )
42 );
43}
$renderer

References ILIAS\UI\examples\Layout\Page\Mail\$DIC, Vendor\Package\$f, and $renderer.