ILIAS  release_8 Revision v8.24
base.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7function base()
8{
9 global $DIC;
10 $factory = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12
13 $actions = $factory->dropdown()->standard(array(
14 $factory->button()->shy("ILIAS", "https://www.ilias.de"),
15 $factory->button()->shy("GitHub", "https://www.github.com")
16 ));
17
18 $list_item1 = $factory->item()->standard("Item Title")
19 ->withActions($actions)
20 ->withProperties(array(
21 "Origin" => "Course Title 1",
22 "Last Update" => "24.11.2011",
23 "Location" => "Room 123, Main Street 44, 3012 Bern"))
24 ->withDescription("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
25
26 $list_item2 = $factory->item()->standard("Item 2 Title")
27 ->withActions($actions)
28 ->withDescription("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
29
30 $list_item3 = $factory->item()->standard("Item 3 Title")
31 ->withActions($actions)
32 ->withDescription("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
33
34 $items = array(
35 $factory->item()->group("Listing Subtitle 1", array(
36 $list_item1,
37 $list_item2
38 )),
39 $factory->item()->group("Listing Subtitle 2", array(
40 $list_item3
41 )));
42
43 $panel = $factory->panel()->secondary()->listing("Listing panel Title", $items)->withActions($actions);
44
45 return $renderer->render($panel);
46}
global $DIC
Definition: feed.php:28
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Definition: imgupload.php:198
$factory
Definition: metadata.php:75