Dokumentation

'Kitchen Sink'-Dokumentation von Style: 'Delos' vom Skin: 'ILIAS'

Footer

Description

Purpose
The Footer is a unique page section to accomodate links that are not being used on a regular basis, such as links to the pages's imprint or a privacy policy document.
Composition
The Footer is composed of a list of links and an optional text-part.
Context
  1. The Footer is used with the Standard Page.

Rules

Usage
  1. The Footer is unique for the page - there MUST be not more than one.
  2. Elements in the Footer SHOULD NOT vary according to context, but MAY vary according to the user's role or state (logged in/not logged in/...).
  3. Although the footer is constructed only with its "static" parts, it SHOULD have attached a permanent URL for the current page/object.

Example 1: Footer

function footer()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $df = new \ILIAS\Data\Factory();
    $renderer = $DIC->ui()->renderer();
 
    $text = 'Additional info:';
    $links = [];
    $links[] = $f->link()->standard("Goto ILIAS", "http://www.ilias.de");
    $links[] = $f->link()->standard("Goto ILIAS", "http://www.ilias.de");
 
    $footer = $f->mainControls()->footer($links, $text)
        ->withPermanentURL(
            $df->uri(
                $_SERVER['REQUEST_SCHEME'] .
                '://' .
                $_SERVER['SERVER_NAME'] .
                ':' .
                $_SERVER['SERVER_PORT'] .
                str_replace(
                    'ilias.php',
                    'goto.php?target=xxx12345',
                    $_SERVER['SCRIPT_NAME']
                )
            )
        );
 
    return $renderer->render($footer);
}
 

Relations

Parents
  1. UIComponent
  2. Main Controls