9    $renderer = 
$DIC->ui()->renderer();
 
   11    $url = 
'src/UI/examples/Layout/Page/Standard/ui.php?new_ui=1';
 
   12    $page_demo = 
$f->button()->primary(
'See UI in fullscreen-mode', 
$url);
 
   14    return $renderer->render([
 
   20if (
$_GET[
'new_ui'] == 
'1') {
 
   21    chdir(
'../../../../../../');
 
   26    $f = 
$DIC->ui()->factory();
 
   27    $renderer = 
$DIC->ui()->renderer();
 
   28    $logo = 
$f->image()->responsive(
"templates/default/images/HeaderIcon.svg", 
"ILIAS");
 
   42    $entries = $mainbar->getEntries();
 
   43    $tools = $mainbar->getToolEntries();
 
   46    $page = 
$f->layout()->page()->standard(
 
   58    echo $renderer->render($page);
 
   62if (
$_GET[
'replaced'] == 
'1') {
 
   63    echo(
'Helo. Content from RPC.');
 
   73    require_once(
"Services/Init/classes/class.ilInitialisation.php");
 
   76    $DIC->globalScreen()->layout()->meta()->addCss(
"./templates/default/delos.css");
 
   82        $f->link()->standard(
"entry1", 
'#'),
 
   83        $f->link()->standard(
"entry2", 
'#'),
 
   84        $f->link()->standard(
"entry3", 
'#'),
 
   85        $f->link()->standard(
"entry4", 
'#')
 
   87    return $f->breadcrumbs($crumbs);
 
   92    $tools = $mainbar->getToolEntries();
 
   94    $second_tool = array_values($tools)[1];
 
   95    $url = 
"./src/UI/examples/Layout/Page/Standard/ui.php?replaced=1";
 
   96    $replace_signal = $second_tool->getReplaceSignal()->withAsyncRenderUrl(
$url);
 
   97    $replace_btn = 
$f->button()->standard(
'replace contents in 2nd tool', $replace_signal);
 
   99    $invisible_tool = array_values($tools)[2];
 
  100    $engage_signal = $mainbar->getEngageToolSignal(array_keys($tools)[2]);
 
  101    $invisible_tool_btn = 
$f->button()->standard(
'show the hidden tool', $engage_signal);
 
  104        $f->panel()->standard(
 
  107                "This button will replace the contents of the second tool-slate.<br />" 
  108                . 
"Goto Tools, second entry and click it.<br />" 
  109                . $r->render($replace_btn)
 
  110                . 
"<br><br>This will unhide and activate another tool<br />" 
  111                . $r->render($invisible_tool_btn)
 
  115        $f->panel()->standard(
 
  117            $f->legacy(
"some content<br>some content<br>some content<br>x.")
 
  119        $f->panel()->standard(
 
  123        $f->panel()->standard(
 
  125            $f->legacy(
"some content<br>some content<br>some content<br>x.")
 
  134    $df = new \ILIAS\Data\Factory();
 
  135    $text = 
'Additional info:';
 
  137    $links[] = 
$f->link()->standard(
"Goto ILIAS", 
"http://www.ilias.de");
 
  138    $links[] = 
$f->link()->standard(
"Goto ILIAS", 
"http://www.ilias.de");
 
  140    $footer = 
$f->mainControls()->footer($links, $text)
 
  158    $help = 
$f->button()->bulky(
$f->symbol()->glyph()->help(), 
'Help', 
'#');
 
  159    $user = 
$f->button()->bulky(
$f->symbol()->glyph()->user(), 
'User', 
'#');
 
  160    $search = 
$f->maincontrols()->slate()->legacy(
 
  162        $f->symbol()->glyph()->search()->withCounter(
$f->counter()->status(1)),
 
  165    $notes = 
$f->maincontrols()->slate()->legacy(
 
  167        $f->symbol()->glyph()->notification()->withCounter(
$f->counter()->novelty(3)),
 
  168        $f->legacy(
'<p>some content</p>')
 
  171    $metabar = 
$f->mainControls()->metabar()
 
  172        ->withAdditionalEntry(
'search', $search)
 
  173        ->withAdditionalEntry(
'help', $help)
 
  174        ->withAdditionalEntry(
'notes', $notes)
 
  175        ->withAdditionalEntry(
'user', $user)
 
  183    $tools_btn = 
$f->button()->bulky(
 
  184        $f->symbol()->icon()->custom(
'./src/UI/examples/Layout/Page/Standard/grid.svg', 
''),
 
  188    $more_btn = 
$f->button()->bulky(
 
  189        $f->symbol()->icon()->standard(
'', 
''),
 
  194    $mainbar = 
$f->mainControls()->mainbar()
 
  195        ->withToolsButton($tools_btn);
 
  205    foreach ($entries as $id => $entry) {
 
  206        $mainbar = $mainbar->withAdditionalEntry($id, $entry);
 
  212        ->withAdditionalToolEntry(
'tool1', $tools[
'tool1'], 
false, 
$f->button()->close())
 
  213        ->withAdditionalToolEntry(
'tool2', $tools[
'tool2'])
 
  214        ->withAdditionalToolEntry(
'tool3', $tools[
'tool3'], 
true, 
$f->button()->close())
 
  215        ->withAdditionalToolEntry(
'tool4', $tools[
'tool4'], 
false, 
$f->button()->close());
 
  223    $symbol = 
$f->symbol()->icon()
 
  224        ->custom(
'./src/UI/examples/Layout/Page/Standard/layers.svg', 
'')
 
  226    $slate = 
$f->maincontrols()->slate()->combined(
'Repository', $symbol, 
'');
 
  228    $icon = 
$f->symbol()->icon()
 
  231        ->withAbbreviation(
'X');
 
  233    $button = 
$f->button()->bulky(
 
  236        './src/UI/examples/Layout/Page/Standard/ui.php?new_ui=1' 
  239    $df = new \ILIAS\Data\Factory();
 
  250    $link1 = 
$f->link()->bulky($icon, 
'Favorites (Link)', 
$url);
 
  251    $link2 = 
$f->link()->bulky($icon, 
'Courses (Link2)', 
$url);
 
  252    $link3 = 
$f->link()->bulky($icon, 
'Groups (Link)', 
$url);
 
  255        ->withAdditionalEntry($button->withLabel(
'Repository - Home'))
 
  256        ->withAdditionalEntry($button->withLabel(
'Repository - Tree'))
 
  257        ->withAdditionalEntry($button->withLabel(
'Repository - Last visited'))
 
  258        ->withAdditionalEntry($link1)
 
  259        ->withAdditionalEntry($link2)
 
  260        ->withAdditionalEntry($link3)
 
  261        ->withAdditionalEntry($button->withLabel(
'Study Programme'))
 
  262        ->withAdditionalEntry($button->withLabel(
'Own Repository-Objects'))
 
  265    foreach (range(1, 20) as $cnt) {
 
  267            ->withAdditionalEntry($button->withLabel(
'fillup ' . $cnt));
 
  275    $icon = 
$f->symbol()->icon()
 
  278        ->withAbbreviation(
'X');
 
  280    $button = 
$f->button()->bulky(
 
  283        './src/UI/examples/Layout/Page/Standard/ui.php?new_ui=1' 
  286    $symbol = 
$f->symbol()->icon()
 
  287        ->custom(
'./src/UI/examples/Layout/Page/Standard/user.svg', 
'')
 
  290    $slate = 
$f->maincontrols()->slate()
 
  291        ->combined(
'Personal Workspace', $symbol, 
'');
 
  293    $symbol = 
$f->symbol()->icon()
 
  294        ->custom(
'./src/UI/examples/Layout/Page/Standard/bookmarks.svg', 
'')
 
  297    $bookmarks = 
$f->legacy(implode(
'<br />', [
 
  298        $r->render(
$f->button()->shy(
'my bookmark 1', 
'#')),
 
  299        $r->render(
$f->button()->shy(
'my bookmark 2', 
'#'))
 
  301    $slate_bookmarks = 
$f->maincontrols()->slate()
 
  302        ->legacy(
'Bookmarks', $symbol, $bookmarks);
 
  305        ->withAdditionalEntry($button->withLabel(
'Overview'))
 
  306        ->withAdditionalEntry($slate_bookmarks)
 
  307        ->withAdditionalEntry($button->withLabel(
'Calendar'))
 
  308        ->withAdditionalEntry($button->withLabel(
'Task'))
 
  309        ->withAdditionalEntry($button->withLabel(
'Portfolios'))
 
  310        ->withAdditionalEntry($button->withLabel(
'Personal Resources'))
 
  311        ->withAdditionalEntry($button->withLabel(
'Shared Resources'))
 
  312        ->withAdditionalEntry($button->withLabel(
'Notes'))
 
  313        ->withAdditionalEntry($button->withLabel(
'News'))
 
  314        ->withAdditionalEntry($button->withLabel(
'Background Tasks'))
 
  315        ->withAdditionalEntry($slate_bookmarks)
 
  322    $symbol = 
$f->symbol()->icon()
 
  323        ->custom(
'./src/UI/examples/Layout/Page/Standard/achievements.svg', 
'')
 
  325    $slate = 
$f->maincontrols()->slate()->legacy(
 
  328        $f->legacy(
'content: Achievements')
 
  335    $symbol = 
$f->symbol()->icon()
 
  336        ->custom(
'./src/UI/examples/Layout/Page/Standard/communication.svg', 
'')
 
  338    $slate = 
$f->maincontrols()->slate()->legacy(
 
  341        $f->legacy(
'content: Communication')
 
  348    $symbol = 
$f->symbol()->icon()
 
  349        ->custom(
'./src/UI/examples/Layout/Page/Standard/organisation.svg', 
'')
 
  352    $sf = 
$f->maincontrols()->slate();
 
  353    $slate = $sf->combined(
'Organisation', $symbol, 
'')
 
  354        ->withAdditionalEntry(
 
  355            $sf->combined(
'1', $symbol, 
'')
 
  356                ->withAdditionalEntry($sf->combined(
'1.1', $symbol, 
''))
 
  357                ->withAdditionalEntry(
 
  358                    $sf->combined(
'1.2', $symbol, 
'')
 
  359                        ->withAdditionalEntry($sf->combined(
'1.2.1', $symbol, 
''))
 
  360                        ->withAdditionalEntry($sf->combined(
'1.2.2', $symbol, 
''))
 
  363        ->withAdditionalEntry(
 
  364            $sf->combined(
'2', $symbol, 
'')
 
  365                ->withAdditionalEntry($sf->combined(
'2.1', $symbol, 
''))
 
  367        ->withAdditionalEntry($sf->combined(
'3', $symbol, 
''))
 
  368        ->withAdditionalEntry($sf->combined(
'4', $symbol, 
''))
 
  377    $symbol = 
$f->symbol()->icon()
 
  378        ->custom(
'./src/UI/examples/Layout/Page/Standard/administration.svg', 
'')
 
  380    $slate = 
$f->maincontrols()->slate()->legacy(
 
  383        $f->legacy(
'content: Administration')
 
  392    $symbol = 
$f->symbol()->icon()
 
  393        ->custom(
'./src/UI/examples/Layout/Page/Standard/question.svg', 
'')
 
  395    $slate = 
$f->maincontrols()->slate()->legacy(
 
  401                Some Text for help entry 
  404                <button onclick="alert(\'helo - tool 1 \');">Some Dummybutton</button> 
  406                <button onclick="alert(\'helo - tool 1, button 2 \');">some other dummybutton</button> 
  410    $tools[
'tool1'] = $slate;
 
  412    $symbol = 
$f->symbol()->icon()
 
  413        ->custom(
'./src/UI/examples/Layout/Page/Standard/pencil.svg', 
'')
 
  415    $slate = 
$f->maincontrols()->slate()->legacy(
 
  421                Some Text for editor entry 
  423                <button onclick="alert(\'helo\');">Some Dummybutton</button> 
  429    $tools[
'tool2'] = $slate;
 
  431    $symbol = 
$f->symbol()->icon()
 
  432        ->custom(
'./src/UI/examples/Layout/Page/Standard/notebook.svg', 
'')
 
  434    $slate = 
$f->maincontrols()->slate()->legacy(
 
  439    $tools[
'tool3'] = $slate;
 
  441    $slate = 
$f->maincontrols()->slate()->legacy(
 
  446    $tools[
'tool4'] = $slate;
 
  457        Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
 
  458        tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
 
  459        At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
 
  460        no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
 
  461        consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
 
  462        dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo
 
  463        duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus
 
  464        est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
 
  465        sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
 
  466        magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
 
  467        dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
 
  468        Lorem ipsum dolor sit amet.
 
  471        Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
 
  472         consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan
 
  473          et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
 
  474           dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer
 
  475           adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore
 
  476           magna aliquam erat volutpat.
 
  479        Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
 
  480        lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure
 
  481        dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore
 
  482        eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui
 
  483        blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
 
  486        Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming
 
  487        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)