Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Picture
Description
- Purpose
- The Picture Avatar is used to represent a specific user whenever an user-uploaded picture is available or a deputy-picture is used.
Rivals
- Letter Avatar
- The Letter Avatar represents the user with two letters.
Rules
- Usage
- whenever a specific user is represented with a graphical item, a. Picture Avatar MUST be used.
Example 1: Base
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Symbol\Avatar\Picture; function base() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $picture_avatar = $f->symbol()->avatar()->picture('./templates/default/images/placeholder/no_photo_xsmall.jpg', 'demo.user'); return $renderer->render($picture_avatar); }
Relations
- Parents
- UIComponent
- Symbol
- Avatar