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 $url = $DIC->http()->request()->getRequestTarget();
19 $sort_options = array(
20 'internal_rating' =>
'Best',
21 'date_desc' =>
'Most Recent',
22 'date_asc' =>
'Oldest',
24 $sortation =
$factory->viewControl()->sortation($sort_options)->withTargetURL(
$url,
"");
26 $parameter_name =
'page';
27 $current_page = (int) (array_key_exists($parameter_name,
$_GET) ?
$_GET[$parameter_name] : 0);
29 $pagination =
$factory->viewControl()->pagination()
30 ->withTargetURL(
$url, $parameter_name)
31 ->withTotalEntries(98)
33 ->withCurrentPage($current_page);
40 ->withActions($actions)
41 ->withViewControls(array($sortation, $pagination));
43 return $renderer->render(
$panel);
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel