UPDATE-RATE

Die Test-Installation wird aktuell zwischen 8:00 und 18:00 Uhr stündlich zur vollen Stunde aktualisiert.

Alles neu macht der Mai

ILIAS 9 ist da! Alle Infos zu den Highlights der neuen Version gibt es hier!

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
  1. whenever a specific user is represented with a graphical item, a. Picture Avatar MUST be used.

Example 1: Base

User Avatar
<?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
  1. UIComponent
  2. Symbol
  3. Avatar