8 $renderer = $DIC->ui()->renderer();
10 $actions =
$factory->dropdown()->standard(array(
11 $factory->button()->shy(
"ILIAS",
"https://www.ilias.de"),
12 $factory->button()->shy(
"GitHub",
"https://www.github.com")
15 $legacy =
$factory->legacy(
"Legacy content");
17 $sort_options = array(
18 'internal_rating' =>
'Best',
19 'date_desc' =>
'Most Recent',
20 'date_asc' =>
'Oldest',
22 $sortation =
$factory->viewControl()->sortation($sort_options);
25 $url = $DIC->http()->request()->getRequestTarget();
27 $parameter_name =
'page';
28 $current_page = (int) @
$_GET[$parameter_name];
30 $pagination =
$factory->viewControl()->pagination()
31 ->withTargetURL(
$url, $parameter_name)
32 ->withTotalEntries(98)
34 ->withCurrentPage($current_page);
36 $panel =
$factory->panel()->secondary()->legacy(
"panel title", $legacy)->withViewControls(array($sortation, $pagination))->withActions($actions);
38 return $renderer->render($panel);