ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
base.php
Go to the documentation of this file.
1<?php
2
3function base()
4{
5 //Loading factories
6 global $DIC;
7 $f = $DIC->ui()->factory();
8 $renderer = $DIC->ui()->renderer();
9
10 $options = array(
11 'internal_rating' => 'Best',
12 'date_desc' => 'Most Recent',
13 'date_asc' => 'Oldest',
14 );
15
16 $s = $f->viewControl()->sortation($options)
17 ->withTargetURL($DIC->http()->request()->getRequestTarget(), 'sortation');
18
19 $s2 = $s->withLabel($DIC->language()->txt('sortation_std_label'));
20
21
22 $image = $f->image()->responsive("src/UI/examples/Image/mountains.jpg", "Image source: https://stocksnap.io, Creative Commons CC0 license");
23 $page = $f->modal()->lightboxImagePage($image, 'Mountains');
24 $modal = $f->modal()->lightbox($page);
25
26 $s3 = $s->withResetSignals()
27 ->withLabel('show Modal on select')
28 ->withOnSort($modal->getShowSignal());
29
30
31 return implode('<hr>', array(
32 $renderer->render($s),
33 $renderer->render($s2),
34 $renderer->render([$s3, $modal]),
35 ));
36}
base()
Definition: base.php:2
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20
An exception for terminatinating execution or to throw for unit testing.
$s
Definition: pwgen.php:45
global $DIC
Definition: saml.php:7