| @@ 737-747 (lines=11) @@ | ||
| 734 | if ($is_allowed_to_edit) { |
|
| 735 | if (empty($session_id)) { |
|
| 736 | if (isset($tool['id'])) { |
|
| 737 | if ($tool['visibility'] == '1' && $toolAdmin != '1') { |
|
| 738 | $link['name'] = Display::return_icon( |
|
| 739 | 'visible.png', |
|
| 740 | get_lang('Deactivate'), |
|
| 741 | array('id' => 'linktool_'.$tool['id']), |
|
| 742 | ICON_SIZE_SMALL, |
|
| 743 | false |
|
| 744 | ); |
|
| 745 | $link['cmd'] = 'hide=yes'; |
|
| 746 | $lnk[] = $link; |
|
| 747 | } |
|
| 748 | if ($tool['visibility'] == '0' && $toolAdmin != '1') { |
|
| 749 | $link['name'] = Display::return_icon( |
|
| 750 | 'invisible.png', |
|
| @@ 748-758 (lines=11) @@ | ||
| 745 | $link['cmd'] = 'hide=yes'; |
|
| 746 | $lnk[] = $link; |
|
| 747 | } |
|
| 748 | if ($tool['visibility'] == '0' && $toolAdmin != '1') { |
|
| 749 | $link['name'] = Display::return_icon( |
|
| 750 | 'invisible.png', |
|
| 751 | get_lang('Activate'), |
|
| 752 | array('id' => 'linktool_'.$tool['id']), |
|
| 753 | ICON_SIZE_SMALL, |
|
| 754 | false |
|
| 755 | ); |
|
| 756 | $link['cmd'] = 'restore=yes'; |
|
| 757 | $lnk[] = $link; |
|
| 758 | } |
|
| 759 | } |
|
| 760 | } |
|
| 761 | if (!empty($tool['adminlink'])) { |
|