| @@ 965-981 (lines=17) @@ | ||
| 962 | ) |
|
| 963 | ); |
|
| 964 | ||
| 965 | if ($myrow['visibility'] == '1') { |
|
| 966 | $url .= 'link.php?' . api_get_cidreq() . |
|
| 967 | '&sec_token=' . $token . |
|
| 968 | '&action=invisible&id=' . $myrow['id'] . |
|
| 969 | '&scope=link&category_id=' . $myrow['category_id']; |
|
| 970 | $title = get_lang('MakeInvisible'); |
|
| 971 | $toolbar .= Display::toolbarButton( |
|
| 972 | '', |
|
| 973 | $url, |
|
| 974 | 'eye', |
|
| 975 | 'default btn-sm', |
|
| 976 | array( |
|
| 977 | 'title' => $title |
|
| 978 | ) |
|
| 979 | ); |
|
| 980 | } |
|
| 981 | ||
| 982 | if ($myrow['visibility'] == '0') { |
|
| 983 | $url .= 'link.php?' . api_get_cidreq() .'&sec_token=' . $token .'&action=visible&id=' . $myrow['id'] .'&scope=link&category_id=' . $myrow['category_id']; |
|
| 984 | $title = get_lang('MakeVisible'); |
|
| @@ 982-994 (lines=13) @@ | ||
| 979 | ); |
|
| 980 | } |
|
| 981 | ||
| 982 | if ($myrow['visibility'] == '0') { |
|
| 983 | $url .= 'link.php?' . api_get_cidreq() .'&sec_token=' . $token .'&action=visible&id=' . $myrow['id'] .'&scope=link&category_id=' . $myrow['category_id']; |
|
| 984 | $title = get_lang('MakeVisible'); |
|
| 985 | $toolbar .= Display::toolbarButton( |
|
| 986 | '', |
|
| 987 | $url, |
|
| 988 | 'eye-slash', |
|
| 989 | 'primary btn-sm', |
|
| 990 | array( |
|
| 991 | 'title' => $title |
|
| 992 | ) |
|
| 993 | ); |
|
| 994 | } |
|
| 995 | ||
| 996 | $moveLinkParams = [ |
|
| 997 | 'id' => $myrow['id'], |
|