| @@ 372-386 (lines=15) @@ | ||
| 369 | $lnk[] = $link; |
|
| 370 | } |
|
| 371 | ||
| 372 | if ($course_tool_category == TOOL_PUBLIC_BUT_HIDDEN) { |
|
| 373 | //$link['name'] = Display::return_icon('add.gif', get_lang('Activate')); |
|
| 374 | $link['name'] = Display::returnFontAwesomeIcon('plus'); |
|
| 375 | $link['title'] = get_lang('Activate'); |
|
| 376 | $link['cmd'] = 'restore=yes'; |
|
| 377 | $lnk[] = $link; |
|
| 378 | ||
| 379 | if ($tool['added_tool'] == 1) { |
|
| 380 | //$link['name'] = Display::return_icon('delete.gif', get_lang('Remove')); |
|
| 381 | $link['name'] = Display::returnFontAwesomeIcon('trash'); |
|
| 382 | $link['title'] = get_lang('Remove'); |
|
| 383 | $link['cmd'] = 'remove=yes'; |
|
| 384 | $lnk[] = $link; |
|
| 385 | } |
|
| 386 | } |
|
| 387 | if (isset($tool['adminlink'])) { |
|
| 388 | $html .= '<a href="'.$tool['adminlink'].'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>'; |
|
| 389 | } |
|
| @@ 392-403 (lines=12) @@ | ||
| 389 | } |
|
| 390 | } |
|
| 391 | if (api_is_platform_admin() && !api_is_coach()) { |
|
| 392 | if ($tool['visibility'] == 2) { |
|
| 393 | $link['name'] = Display::returnFontAwesomeIcon('undo'); |
|
| 394 | $link['title'] = get_lang('Activate'); |
|
| 395 | $link['cmd'] = 'hide=yes'; |
|
| 396 | $lnk[] = $link; |
|
| 397 | ||
| 398 | if ($tool['added_tool'] == 1) { |
|
| 399 | $link['name'] = get_lang('Delete'); |
|
| 400 | $link['cmd'] = 'askDelete=yes'; |
|
| 401 | $lnk[] = $link; |
|
| 402 | } |
|
| 403 | } |
|
| 404 | if ($tool['visibility'] == 0 && $tool['added_tool'] == 0) { |
|
| 405 | $link['name'] = Display::returnFontAwesomeIcon('trash'); |
|
| 406 | $link['title'] = get_lang('Remove'); |
|