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