@@ 977-986 (lines=10) @@ | ||
974 | { |
|
975 | $html = ''; |
|
976 | $id = Security::remove_XSS($id); |
|
977 | if ($current_visibility_status == '1') { |
|
978 | $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&'; |
|
979 | if (is_array($additional_url_parameters)) { |
|
980 | foreach ($additional_url_parameters as $key => $value) { |
|
981 | $html .= $key . '=' . $value . '&'; |
|
982 | } |
|
983 | } |
|
984 | $html.='action=invisible&content='.$content.'&id='.$id.'">'. |
|
985 | Display::return_icon('visible.png', get_lang('MakeInvisible'), array(), ICON_SIZE_SMALL).'</a>'; |
|
986 | } |
|
987 | if ($current_visibility_status == '0') { |
|
988 | $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&'; |
|
989 | if (is_array($additional_url_parameters)) { |
|
@@ 987-996 (lines=10) @@ | ||
984 | $html.='action=invisible&content='.$content.'&id='.$id.'">'. |
|
985 | Display::return_icon('visible.png', get_lang('MakeInvisible'), array(), ICON_SIZE_SMALL).'</a>'; |
|
986 | } |
|
987 | if ($current_visibility_status == '0') { |
|
988 | $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&'; |
|
989 | if (is_array($additional_url_parameters)) { |
|
990 | foreach ($additional_url_parameters as $key => $value) { |
|
991 | $html .= $key . '=' . $value . '&'; |
|
992 | } |
|
993 | } |
|
994 | $html .= 'action=visible&content=' . $content . '&id=' . $id . '">' . |
|
995 | Display::return_icon('invisible.png', get_lang('MakeVisible'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
996 | } |
|
997 | return $html; |
|
998 | } |
|
999 | ||
@@ 1019-1028 (lines=10) @@ | ||
1016 | return $html; |
|
1017 | } |
|
1018 | } |
|
1019 | if ($current_lock_status == '1') { |
|
1020 | $html .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&'; |
|
1021 | if (is_array($additional_url_parameters)) { |
|
1022 | foreach ($additional_url_parameters as $key => $value) { |
|
1023 | $html .= $key . '=' . $value . '&'; |
|
1024 | } |
|
1025 | } |
|
1026 | $html.= 'action=unlock&content='.$content.'&id='.$id.'">'. |
|
1027 | Display::return_icon('lock.png', get_lang('Unlock'), array(), ICON_SIZE_SMALL).'</a>'; |
|
1028 | } |
|
1029 | if ($current_lock_status == '0') { |
|
1030 | $html .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&'; |
|
1031 | if (is_array($additional_url_parameters)) { |
|
@@ 1029-1038 (lines=10) @@ | ||
1026 | $html.= 'action=unlock&content='.$content.'&id='.$id.'">'. |
|
1027 | Display::return_icon('lock.png', get_lang('Unlock'), array(), ICON_SIZE_SMALL).'</a>'; |
|
1028 | } |
|
1029 | if ($current_lock_status == '0') { |
|
1030 | $html .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&'; |
|
1031 | if (is_array($additional_url_parameters)) { |
|
1032 | foreach ($additional_url_parameters as $key => $value) { |
|
1033 | $html .= $key . '=' . $value . '&'; |
|
1034 | } |
|
1035 | } |
|
1036 | $html .= 'action=lock&content=' . $content . '&id=' . $id . '">' . |
|
1037 | Display::return_icon('unlock.png', get_lang('Lock'), array(), ICON_SIZE_SMALL) . '</a>'; |
|
1038 | } |
|
1039 | return $html; |
|
1040 | } |
|
1041 |