9    $renderer = 
$DIC->ui()->renderer();
 
   11    $url = 
'src/UI/examples/Layout/Page/Standard/ui.php?new_ui=1';
 
   12    $btn = 
$f->button()->standard(
'See UI in fullscreen-mode', 
$url);
 
   13    return $renderer->render($btn);
 
   17if (
$_GET[
'new_ui'] == 
'1') {
 
   20    $f = 
$DIC->ui()->factory();
 
   21    $renderer = 
$DIC->ui()->renderer();
 
   22    $logo = 
$f->image()->responsive(
"templates/default/images/HeaderIcon.svg", 
"ILIAS");
 
   38    $entries = $mainbar->getEntries();
 
   39    $tools = $mainbar->getToolEntries();
 
   42    $page = 
$f->layout()->page()->standard(
 
   52    )->withModeInfo(
$f->mainControls()->modeInfo(
"Member View", 
new URI(
$_SERVER[
'HTTP_REFERER'])))
 
   55    echo $renderer->render($page);
 
   59if (
$_GET[
'replaced'] == 
'1') {
 
   60    echo(
'Helo. Content from RPC.');
 
   70    chdir(
'../../../../../../');
 
   71    require_once(
"Services/Init/classes/class.ilInitialisation.php");
 
   72    require_once(
'src/UI/examples/Layout/Page/Standard/ui.php');
 
   79        $f->link()->standard(
"entry1", 
'#'),
 
   80        $f->link()->standard(
"entry2", 
'#'),
 
   81        $f->link()->standard(
"entry3", 
'#'),
 
   82        $f->link()->standard(
"entry4", 
'#')
 
   84    return $f->breadcrumbs($crumbs);
 
   89    $tools = $mainbar->getToolEntries();
 
   91    $second_tool = array_values($tools)[1];
 
   92    $url = 
"./src/UI/examples/Layout/Page/Standard/ui.php?replaced=1";
 
   93    $replace_signal = $second_tool->getReplaceSignal()->withAsyncRenderUrl(
$url);
 
   94    $replace_btn = 
$f->button()->standard(
'replace contents in 2nd tool', $replace_signal);
 
   96    $invisible_tool = array_values($tools)[2];
 
   97    $engage_signal = $mainbar->getEngageToolSignal(array_keys($tools)[2]);
 
   98    $invisible_tool_btn = 
$f->button()->standard(
'show the hidden tool', $engage_signal);
 
  101        $f->panel()->standard(
 
  104                "This button will replace the contents of the second tool-slate.<br />" 
  105                . 
"Goto Tools, second entry and click it.<br />" 
  106                . $r->render($replace_btn)
 
  107                . 
"<br><br>This will unhide and activate another tool<br />" 
  108                . $r->render($invisible_tool_btn)
 
  112        $f->panel()->standard(
 
  114            $f->legacy(
"some content<br>some content<br>some content<br>x.")
 
  116        $f->panel()->standard(
 
  120        $f->panel()->standard(
 
  122            $f->legacy(
"some content<br>some content<br>some content<br>x.")
 
  131    $df = new \ILIAS\Data\Factory();
 
  132    $text = 
'Additional info:';
 
  134    $links[] = 
$f->link()->standard(
"Goto ILIAS", 
"http://www.ilias.de");
 
  135    $links[] = 
$f->link()->standard(
"Goto ILIAS", 
"http://www.ilias.de");
 
  137    $footer = 
$f->mainControls()->footer($links, $text)
 
  155    $help = 
$f->button()->bulky(
$f->symbol()->glyph()->help(), 
'Help', 
'#');
 
  156    $user = 
$f->button()->bulky(
$f->symbol()->glyph()->user(), 
'User', 
'#');
 
  157    $search = 
$f->maincontrols()->slate()->legacy(
 
  159        $f->symbol()->glyph()->search()->withCounter(
$f->counter()->status(1)),
 
  162    $notes = 
$f->maincontrols()->slate()->legacy(
 
  164        $f->symbol()->glyph()->notification()->withCounter(
$f->counter()->novelty(3)),
 
  165        $f->legacy(
'<p>some content</p>')
 
  168    $metabar = 
$f->mainControls()->metabar()
 
  169        ->withAdditionalEntry(
'search', $search)
 
  170        ->withAdditionalEntry(
'help', $help)
 
  171        ->withAdditionalEntry(
'notes', $notes)
 
  172        ->withAdditionalEntry(
'user', $user)
 
  180    $tools_btn = 
$f->button()->bulky(
 
  181        $f->symbol()->icon()->custom(
'./src/UI/examples/Layout/Page/Standard/grid.svg', 
''),
 
  185    $more_btn = 
$f->button()->bulky(
 
  186        $f->symbol()->icon()->standard(
'', 
''),
 
  191    $mainbar = 
$f->mainControls()->mainbar()
 
  192        ->withToolsButton($tools_btn)
 
  193        ->withMoreButton($more_btn);
 
  203    foreach ($entries as $id => $entry) {
 
  204        $mainbar = $mainbar->withAdditionalEntry($id, $entry);
 
  210        ->withAdditionalToolEntry(
'tool1', $tools[
'tool1'], 
false, 
$f->button()->close())
 
  211        ->withAdditionalToolEntry(
'tool2', $tools[
'tool2'])
 
  212        ->withAdditionalToolEntry(
'tool3', $tools[
'tool3'], 
true, 
$f->button()->close())
 
  213        ->withAdditionalToolEntry(
'tool4', $tools[
'tool4'], 
false, 
$f->button()->close());
 
  221    $symbol = 
$f->symbol()->icon()
 
  222        ->custom(
'./src/UI/examples/Layout/Page/Standard/layers.svg', 
'')
 
  224    $slate = 
$f->maincontrols()->slate()->combined(
'Repository', $symbol, 
'');
 
  226    $icon = 
$f->symbol()->icon()
 
  229        ->withAbbreviation(
'X');
 
  231    $button = 
$f->button()->bulky(
 
  234        './src/UI/examples/Layout/Page/Standard/ui.php?new_ui=1' 
  237    $df = new \ILIAS\Data\Factory();
 
  248    $link1 = 
$f->link()->bulky($icon, 
'Favorites (Link)', 
$url);
 
  249    $link2 = 
$f->link()->bulky($icon, 
'Courses (Link2)', 
$url);
 
  250    $link3 = 
$f->link()->bulky($icon, 
'Groups (Link)', 
$url);
 
  253        ->withAdditionalEntry($button->withLabel(
'Repository - Home'))
 
  254        ->withAdditionalEntry($button->withLabel(
'Repository - Tree'))
 
  255        ->withAdditionalEntry($button->withLabel(
'Repository - Last visited'))
 
  256        ->withAdditionalEntry($link1)
 
  257        ->withAdditionalEntry($link2)
 
  258        ->withAdditionalEntry($link3)
 
  259        ->withAdditionalEntry($button->withLabel(
'Study Programme'))
 
  260        ->withAdditionalEntry($button->withLabel(
'Own Repository-Objects'))
 
  263    foreach (range(1, 20) as $cnt) {
 
  265            ->withAdditionalEntry($button->withLabel(
'fillup ' . $cnt));
 
  273    $icon = 
$f->symbol()->icon()
 
  276        ->withAbbreviation(
'X');
 
  278    $button = 
$f->button()->bulky(
 
  281        './src/UI/examples/Layout/Page/Standard/ui.php?new_ui=1' 
  284    $symbol = 
$f->symbol()->icon()
 
  285        ->custom(
'./src/UI/examples/Layout/Page/Standard/user.svg', 
'')
 
  288    $slate = 
$f->maincontrols()->slate()
 
  289        ->combined(
'Personal Workspace', $symbol, 
'');
 
  291    $symbol = 
$f->symbol()->icon()
 
  292        ->custom(
'./src/UI/examples/Layout/Page/Standard/bookmarks.svg', 
'')
 
  295    $bookmarks = 
$f->legacy(implode(
'<br />', [
 
  296        $r->render(
$f->button()->shy(
'my bookmark 1', 
'#')),
 
  297        $r->render(
$f->button()->shy(
'my bookmark 2', 
'#'))
 
  299    $slate_bookmarks = 
$f->maincontrols()->slate()
 
  300        ->legacy(
'Bookmarks', $symbol, $bookmarks);
 
  303        ->withAdditionalEntry($button->withLabel(
'Overview'))
 
  304        ->withAdditionalEntry($slate_bookmarks)
 
  305        ->withAdditionalEntry($button->withLabel(
'Calendar'))
 
  306        ->withAdditionalEntry($button->withLabel(
'Task'))
 
  307        ->withAdditionalEntry($button->withLabel(
'Portfolios'))
 
  308        ->withAdditionalEntry($button->withLabel(
'Personal Resources'))
 
  309        ->withAdditionalEntry($button->withLabel(
'Shared Resources'))
 
  310        ->withAdditionalEntry($button->withLabel(
'Notes'))
 
  311        ->withAdditionalEntry($button->withLabel(
'News'))
 
  312        ->withAdditionalEntry($button->withLabel(
'Background Tasks'))
 
  313        ->withAdditionalEntry($slate_bookmarks)
 
  320    $symbol = 
$f->symbol()->icon()
 
  321        ->custom(
'./src/UI/examples/Layout/Page/Standard/achievements.svg', 
'')
 
  323    $slate = 
$f->maincontrols()->slate()->legacy(
 
  326        $f->legacy(
'content: Achievements')
 
  333    $symbol = 
$f->symbol()->icon()
 
  334        ->custom(
'./src/UI/examples/Layout/Page/Standard/communication.svg', 
'')
 
  336    $slate = 
$f->maincontrols()->slate()->legacy(
 
  339        $f->legacy(
'content: Communication')
 
  346    $symbol = 
$f->symbol()->icon()
 
  347        ->custom(
'./src/UI/examples/Layout/Page/Standard/organisation.svg', 
'')
 
  350    $sf = 
$f->maincontrols()->slate();
 
  351    $slate = $sf->combined(
'Organisation', $symbol, 
'')
 
  352        ->withAdditionalEntry(
 
  353            $sf->combined(
'1', $symbol, 
'')
 
  354                ->withAdditionalEntry($sf->combined(
'1.1', $symbol, 
''))
 
  355                ->withAdditionalEntry(
 
  356                    $sf->combined(
'1.2', $symbol, 
'')
 
  357                        ->withAdditionalEntry($sf->combined(
'1.2.1', $symbol, 
''))
 
  358                        ->withAdditionalEntry($sf->combined(
'1.2.2', $symbol, 
''))
 
  361        ->withAdditionalEntry(
 
  362            $sf->combined(
'2', $symbol, 
'')
 
  363                ->withAdditionalEntry($sf->combined(
'2.1', $symbol, 
''))
 
  365        ->withAdditionalEntry($sf->combined(
'3', $symbol, 
''))
 
  366        ->withAdditionalEntry($sf->combined(
'4', $symbol, 
''))
 
  375    $symbol = 
$f->symbol()->icon()
 
  376        ->custom(
'./src/UI/examples/Layout/Page/Standard/administration.svg', 
'')
 
  378    $slate = 
$f->maincontrols()->slate()->legacy(
 
  381        $f->legacy(
'content: Administration')
 
  390    $symbol = 
$f->symbol()->icon()
 
  391        ->custom(
'./src/UI/examples/Layout/Page/Standard/question.svg', 
'')
 
  393    $slate = 
$f->maincontrols()->slate()->legacy(
 
  396        $f->legacy(
'<h2>tool 1</h2><p>Some Text for Tool 1 entry</p>')
 
  398    $tools[
'tool1'] = $slate;
 
  400    $symbol = 
$f->symbol()->icon()
 
  401        ->custom(
'./src/UI/examples/Layout/Page/Standard/pencil.svg', 
'')
 
  403    $slate = 
$f->maincontrols()->slate()->legacy(
 
  406        $f->legacy(
'<h2>tool 2</h2><p>Some Text for Tool 1 entry</p>')
 
  408    $tools[
'tool2'] = $slate;
 
  410    $symbol = 
$f->symbol()->icon()
 
  411        ->custom(
'./src/UI/examples/Layout/Page/Standard/notebook.svg', 
'')
 
  413    $slate = 
$f->maincontrols()->slate()->legacy(
 
  418    $tools[
'tool3'] = $slate;
 
  420    $slate = 
$f->maincontrols()->slate()->legacy(
 
  425    $tools[
'tool4'] = $slate;
 
  436        Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
 
  437        tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
 
  438        At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
 
  439        no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
 
  440        consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
 
  441        dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo
 
  442        duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus
 
  443        est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
 
  444        sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
 
  445        magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
 
  446        dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
 
  447        Lorem ipsum dolor sit amet.
 
  450        Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
 
  451         consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan
 
  452          et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
 
  453           dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer
 
  454           adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore
 
  455           magna aliquam erat volutpat.
 
  458        Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
 
  459        lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure
 
  460        dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore
 
  461        eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui
 
  462        blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
 
  465        Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming
 
  466        id quod mazim placerat facer
 
An exception for terminatinating execution or to throw for unit testing.
The scope of this class is split ilias-conform URI's into components.
static initILIAS()
ilias initialisation
pagedemoContent($f, $r, $mainbar)
getDemoEntryAdministration($f)
getDemoEntryRepository($f)
getDemoEntryOrganisation($f)
getDemoEntryPersonalWorkspace($f, $r)
if($_GET['new_ui']=='1') if( $_GET[ 'replaced']=='1') _initIliasForPreview()
Below are helpers for the construction of demo-content.
getDemoEntryCommunication($f)
getDemoEntryAchievements($f)