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'

Standard

Description

Purpose
Standard Icons represent ILIAS Objects, Services or ideas.
Composition
An Icon is rendered as image-tag.

Rivals

Custom Icon
Custom Icons are constructed with a path to an (uploaded) image.

Rules

Style
  1. CSS-Filters MAY be used for Standard Icons to manipulate the stroke to fit the context.

Example 1: Default icon

Example Small Example with Short Abbreviation

Example Medium Example with Short Abbreviation

Example Large Example with Short Abbreviation

Example Small Example with Long Abbreviation

Example Medium Example with Long Abbreviation

Example Large Example with Long Abbreviation
<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\examples\Symbol\Icon\Standard;
 
function default_icon()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    $buffer = array();
 
    $ico = $f->symbol()->icon()->standard('someExample', 'Example');
    $ico = $ico->withAbbreviation('E');
 
    $buffer[] = $renderer->render($ico)
        . ' Small Example with Short Abbreviation';
 
    $buffer[] = $renderer->render($ico->withSize('medium'))
        . ' Medium Example with Short Abbreviation';
 
    $buffer[] = $renderer->render($ico->withSize('large'))
        . ' Large Example with Short Abbreviation';
 
 
    $ico = $f->symbol()->icon()->standard('someOtherExample', 'Example');
    $ico = $ico->withAbbreviation('LA');
 
    $buffer[] = $renderer->render($ico->withSize('small'))
        . ' Small Example with Long Abbreviation';
 
    $buffer[] = $renderer->render($ico->withSize('medium'))
        . ' Medium Example with Long Abbreviation';
 
    $buffer[] = $renderer->render($ico->withSize('large'))
        . ' Large Example with Long Abbreviation';
 
 
    return implode('<br><br>', $buffer);
}
 

Example 2: Disabled icon

Group Large Group Enabled

Group Large Group Disabled
<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\Examples\Symbol\Icon\Standard;
 
function disabled_icon()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    $buffer = array();
 
    $ico = $f->symbol()->icon()->standard('grp', 'Group', 'large', false);
 
    $buffer[] = $renderer->render($ico) . ' Large Group Enabled';
    $buffer[] = $renderer->render($ico->withDisabled(true)) . ' Large Group Disabled';
 
    return implode('<br><br>', $buffer);
}
 

Example 3: Std course icon

Course Small Course

Course Medium Course

Course Large Course
<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\Examples\Symbol\Icon\Standard;
 
function std_course_icon()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    $buffer = array();
 
    $ico = $f->symbol()->icon()->standard('crs', 'Course', 'small');
 
    $buffer[] = $renderer->render($ico)
        . ' Small Course';
 
    $buffer[] = $renderer->render($ico->withSize('medium'))
        . ' Medium Course';
 
    $buffer[] = $renderer->render($ico->withSize('large'))
        . ' Large Course';
 
 
    return implode('<br><br>', $buffer);
}
 

Example 4: Std icons

grp grp - Group

cat cat - Category

crs crs - Course

mob mob - Media Object

mail mail - Mail

sahs sahs - Learning Module SCORM

adm adm - Administration

usrf usrf - User Management

rolf rolf - Roles

usr usr - User

rolt rolt - Role Template

lngf lngf - Languages

lng lng - Language

role role - Role

glo glo - Glossary

root root - Repository - Home

lm lm - Learning Module ILIAS

frm frm - Forum

exc exc - Exercise

auth auth - Authentication and Registration

fold fold - Folder

file file - File

tst tst - Test

qpl qpl - Question Pool Test

recf recf - Restored Objects

mep mep - Media Pool

htlm htlm - Learning Module HTML

svy svy - Survey

spl spl - Question Pool Survey

cals cals - Calendar

trac trac - Statistics and Learning Progress

assf assf - Test and Assessment

stys stys - Layout and Styles

webr webr - Weblink

seas seas - Search

extt extt - Third Party Software

adve adve - Editing

ps ps - Privacy and Security

nwss nwss - News and Web Feeds

feed feed - -obj_feed-

mcst mcst - Mediacast

rcrs rcrs - ECS Course

mds mds - Metadata

cmps cmps - Plugins

facs facs - Files

svyf svyf - Survey

sess sess - Session

mcts mcts - Mediacast

wiki wiki - Wiki

crsr crsr - Course Link

catr catr - Category Link

tags tags - Tagging

cert cert - Certificates

lrss lrss - Learning Modules

accs accs - Accessibility

mobs mobs - Media Objects and Pools

frma frma - Forum

book book - Booking Pool

skmg skmg - Competence Management

blga blga - Blog

prfa prfa - Portfolio

chtr chtr - Chat Room

chta chta - Chat Room

otpl otpl - Didactic Templates

blog blog - Blog

dcl dcl - Data Collection

poll poll - Poll

hlps hlps - Help System

itgr itgr - Item Group

rcat rcat - ECS Category

rwik rwik - ECS Wiki

rlm rlm - ECS Learning Module

rglo rglo - ECS Glossary

rfil rfil - ECS File

rgrp rgrp - ECS Group

rtst rtst - ECS Test

ecss ecss - ECS

tos tos - Terms of Service

dpro dpro - Declaration of Data Protection

impr impr - Legal Notice

bibl bibl - Bibliography

sysc sysc - System Check

cld cld - Cloud Object

reps reps - Repository

crss crss - Course

grps grps - Group

wbdv wbdv - WebDAV

wbrs wbrs - Weblink

prtt prtt - Portfolio Template

orgu orgu - Organisational Unit

wiks wiks - Wiki

excs excs - Exercise

taxs taxs - Taxonomy

bibs bibs - Bibliography

awra awra - ‘Who is online?’-Tool

logs logs - Logging

prg prg - Study Programme

prgs prgs - Study Programmes

cadm cadm - Contacts

grpr grpr - Group Link

bdga bdga - Badges

iass iass - Individual Assessment

copa copa - Content Page

cpad cpad - Content Pages

bgtk bgtk - Background Task

mme mme - Main Menu

pdfg pdfg - PDF Generation

dshs dshs - Dashboard

prss prss - Personal Resources

nots nots - Notes

lhts lhts - Learning History

coms coms - Comments

ltis ltis - LTI

cmis cmis - LRS

task task - Task

rep rep - Repository

lso lso - Learning Sequence

lsos lsos - Learning Sequences

adn adn - Administrative Notifications

nota nota - Notifications

gcon gcon - -obj_gcon-

con con - -obj_con-

fils fils - File Services

tala tala - Talk Templates
<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\Examples\Symbol\Icon\Standard;
 
function std_icons()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
    $lng = $DIC->language();
 
    $i = $f->symbol()->icon()->standard('NONE', 'DummyIcon');
    $default_icons = $i->getAllStandardHandles();
    $buffer = array();
 
    foreach ($default_icons as $icon) {
        $i = $f->symbol()->icon()->standard($icon, $icon, 'medium');
        $buffer[] = $renderer->render($i)
        . ' '
        . $icon
        . ' - '
        . $lng->txt("obj_$icon");
    }
 
    return implode('<br><br>', $buffer);
}
 

Relations

Parents
  1. UIComponent
  2. Symbol
  3. Icon