6 $renderer = $DIC->ui()->renderer();
8 $message =
'Are you sure you want to delete the following items?';
9 $ctrl->setParameterByClass(
'ilsystemstyledocumentationgui',
'modal_nr', 1);
10 $form_action = $ctrl->getFormActionByClass(
'ilsystemstyledocumentationgui');
11 $icon =
$factory->image()->standard(
'./templates/default/images/icon_crs.svg',
'');
13 ->withAffectedItems(array(
14 $factory->modal()->interruptiveItem(10,
'Course 1', $icon,
'Some description text'),
15 $factory->modal()->interruptiveItem(20,
'Course 2', $icon,
'Another description text'),
16 $factory->modal()->interruptiveItem(30,
'Course 3', $icon,
'Last but not least, a description'),
18 $button =
$factory->button()->standard(
'Show Modal',
'')
19 ->withOnClick($modal->getShowSignal());
21 $out = [$button, $modal];
24 if (isset(
$_POST[
'interruptive_items']) &&
$_GET[
'modal_nr'] ===
'1') {
32 return $renderer->render(
$out);
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel