| @@ 371-376 (lines=6) @@ | ||
| 368 | // These links are only visible by the course manager. |
|
| 369 | unset($lnk); |
|
| 370 | if (api_is_allowed_to_edit(null, true) && !api_is_coach()) { |
|
| 371 | if ($tool['visibility'] == '1' || $tool['name'] == TOOL_TRACKING) { |
|
| 372 | $link['name'] = Display::returnFontAwesomeIcon('minus'); |
|
| 373 | $link['title'] = get_lang('Deactivate'); |
|
| 374 | $link['cmd'] = 'hide=yes'; |
|
| 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')); |
|
| @@ 410-415 (lines=6) @@ | ||
| 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'); |
|
| 413 | $link['cmd'] = 'remove=yes'; |
|
| 414 | $lnk[] = $link; |
|
| 415 | } |
|
| 416 | } |
|
| 417 | if (is_array($lnk)) { |
|
| 418 | $html .= '<div class="pull-right">'; |
|