ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
base.php File Reference

Go to the source code of this file.

Functions

 base ()
 

Function Documentation

◆ base()

base ( )

Definition at line 3 of file base.php.

References $DIC, $options, $s, and array.

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 }
global $DIC
Definition: saml.php:7
$s
Definition: pwgen.php:45
Create styles array
The data for the language used.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20