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