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
A standard link uses text as the label of the link.
Composition
The standard link uses the default link color as text color and no background. Hovering a standard link underlines the text label.

Rules

Usage
  1. Standard links MUST be used if there is no good reason to use another instance.
  2. Links to ILIAS screens that contain the general ILIAS navigation MUST NOT be opened in a new viewport.

Example 1: Base

<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\examples\Link\Standard;
 
function base()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    return $renderer->render($f->link()->standard("Goto ILIAS", "http://www.ilias.de"));
}
 

Example 2: With content and referenced language

<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\examples\Link\Standard;
use ILIAS\Data\Factory as DataFactory;
 
function with_content_and_referenced_language()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
    $data_factaory = new DataFactory();
 
    $link = $f->link()->standard("Abrir ILIAS", "http://www.ilias.de")
        ->withLanguageOfReferencedContent($data_factaory->languageTag("de"))
        ->withContentLanguage($data_factaory->languageTag("es"));
    return $renderer->render($link);
}
 

Example 3: With relationships

<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\examples\Link\Standard;
 
use ILIAS\UI\Component\Link\Relationship;
 
function with_relationships()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    $link = $f->link()->standard("Goto ILIAS", "http://www.ilias.de")
        ->withAdditionalRelationshipToReferencedResource(Relationship::EXTERNAL)
        ->withAdditionalRelationshipToReferencedResource(Relationship::BOOKMARK);
 
    return $renderer->render($link);
}
 

Example 4: With tooltip

Goto ILIAS
<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\examples\Link\Standard;
 
function with_tooltip()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    $link = $f->link()->standard("Goto ILIAS", "http://www.ilias.de")
        ->withHelpTopics(
            ...$f->helpTopics("ilias", "learning management system")
        );
    return $renderer->render($link);
}
 

Relations

Parents
  1. UIComponent
  2. Link