@@ -827,7 +827,7 @@ public static function show_tools_category($all_tools_list, $rows = false)
827
827
$ link ['name ' ] = Display::return_icon (
828
828
'invisible.png ' ,
829
829
get_lang ('Activate ' ),
830
- array ('id ' => 'linktool_ ' .$ tool ['id ' ]),
830
+ array ('id ' => 'linktool_ ' .$ tool ['iid ' ]),
831
831
ICON_SIZE_SMALL ,
832
832
false
833
833
);
@@ -838,7 +838,7 @@ public static function show_tools_category($all_tools_list, $rows = false)
838
838
$ link ['name ' ] = Display::return_icon (
839
839
'visible.png ' ,
840
840
get_lang ('Deactivate ' ),
841
- array ('id ' => 'linktool_ ' .$ tool ['id ' ]),
841
+ array ('id ' => 'linktool_ ' .$ tool ['iid ' ]),
842
842
ICON_SIZE_SMALL ,
843
843
false
844
844
);
@@ -850,7 +850,7 @@ public static function show_tools_category($all_tools_list, $rows = false)
850
850
$ link ['name ' ] = Display::return_icon (
851
851
'visible.png ' ,
852
852
get_lang ('Deactivate ' ),
853
- array ('id ' => 'linktool_ ' .$ tool ['id ' ]),
853
+ array ('id ' => 'linktool_ ' .$ tool ['iid ' ]),
854
854
ICON_SIZE_SMALL ,
855
855
false
856
856
);
@@ -874,7 +874,7 @@ public static function show_tools_category($all_tools_list, $rows = false)
874
874
if (isset ($ lnk ) && is_array ($ lnk )) {
875
875
foreach ($ lnk as $ this_link ) {
876
876
if (empty ($ tool ['adminlink ' ])) {
877
- $ item ['visibility ' ] .= '<a class="make_visible_and_invisible" href=" ' .api_get_self ().'? ' .api_get_cidreq ().'&id= ' .$ tool ['id ' ].'& ' .$ this_link ['cmd ' ].'"> ' .
877
+ $ item ['visibility ' ] .= '<a class="make_visible_and_invisible" href=" ' .api_get_self ().'? ' .api_get_cidreq ().'&id= ' .$ tool ['iid ' ].'& ' .$ this_link ['cmd ' ].'"> ' .
878
878
$ this_link ['name ' ].'</a> ' ;
879
879
}
880
880
}
@@ -909,28 +909,28 @@ public static function show_tools_category($all_tools_list, $rows = false)
909
909
}
910
910
911
911
$ tool_link_params = array ();
912
- $ toolId = isset ($ tool ["id " ]) ? $ tool ["id " ] : null ;
912
+ $ toolIid = isset ($ tool ["iid " ]) ? $ tool ["iid " ] : null ;
913
913
914
914
//@todo this visio stuff should be removed
915
915
if (strpos ($ tool ['name ' ], 'visio_ ' ) !== false ) {
916
916
$ tool_link_params = array (
917
- 'id ' => 'tooldesc_ ' .$ toolId ,
917
+ 'id ' => 'tooldesc_ ' .$ toolIid ,
918
918
'href ' => '"javascript: void(0);" ' ,
919
919
'class ' => $ class ,
920
920
'onclick ' => 'javascript: window.open( \'' .$ tool ['link ' ].'\', \'window_visio ' .api_get_course_id ().'\',config= \'height= \'+730+ \', width= \'+1020+ \', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no \') ' ,
921
921
'target ' => $ tool ['target ' ]
922
922
);
923
923
} elseif (strpos ($ tool ['name ' ], 'chat ' ) !== false && api_get_course_setting ('allow_open_chat_window ' )) {
924
924
$ tool_link_params = array (
925
- 'id ' => 'tooldesc_ ' .$ toolId ,
925
+ 'id ' => 'tooldesc_ ' .$ toolIid ,
926
926
'class ' => $ class ,
927
927
'href ' => 'javascript: void(0); ' ,
928
928
'onclick ' => 'javascript: window.open( \'' .$ tool ['link ' ].'\', \'window_chat ' .api_get_course_id ().'\',config= \'height= \'+600+ \', width= \'+825+ \', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no \') ' , //Chat Open Windows
929
929
'target ' => $ tool ['target ' ]
930
930
);
931
931
} else {
932
932
$ tool_link_params = array (
933
- 'id ' => 'tooldesc_ ' .$ toolId ,
933
+ 'id ' => 'tooldesc_ ' .$ toolIid ,
934
934
'href ' => $ tool ['link ' ],
935
935
'class ' => $ class ,
936
936
'target ' => $ tool ['target ' ]
@@ -957,7 +957,7 @@ public static function show_tools_category($all_tools_list, $rows = false)
957
957
$ icon = Display::return_icon (
958
958
$ tool ['image ' ],
959
959
$ tool_name ,
960
- array ('class ' => 'tool-icon ' , 'id ' => 'toolimage_ ' .$ toolId ),
960
+ array ('class ' => 'tool-icon ' , 'id ' => 'toolimage_ ' .$ toolIid ),
961
961
ICON_SIZE_BIG ,
962
962
false
963
963
);
@@ -1006,13 +1006,13 @@ public static function show_tools_category($all_tools_list, $rows = false)
1006
1006
$ data = '' ;
1007
1007
$ html .= '<div class="col-xs-6 col-md-3 course-tool"> ' ;
1008
1008
$ image = (substr ($ item ['tool ' ]['image ' ], 0 , strpos ($ item ['tool ' ]['image ' ], '. ' ))).'.png ' ;
1009
- $ toolId = isset ($ item ['tool ' ]['id ' ]) ? $ item ['tool ' ]['id ' ] : null ;
1009
+ $ toolIid = isset ($ item ['tool ' ]['iid ' ]) ? $ item ['tool ' ]['iid ' ] : null ;
1010
1010
1011
1011
if (isset ($ item ['tool ' ]['custom_image ' ])) {
1012
1012
$ original_image = Display::img (
1013
1013
$ item ['tool ' ]['custom_image ' ],
1014
1014
$ item ['name ' ],
1015
- array ('id ' => 'toolimage_ ' .$ toolId )
1015
+ array ('id ' => 'toolimage_ ' .$ toolIid )
1016
1016
);
1017
1017
} elseif (isset ($ item ['tool ' ]['custom_icon ' ]) &&
1018
1018
!empty ($ item ['tool ' ]['custom_icon ' ])
@@ -1025,13 +1025,13 @@ public static function show_tools_category($all_tools_list, $rows = false)
1025
1025
$ original_image = Display::img (
1026
1026
self ::getCustomWebIconPath ().$ customIcon ,
1027
1027
$ item ['name ' ],
1028
- array ('id ' => 'toolimage_ ' .$ toolId )
1028
+ array ('id ' => 'toolimage_ ' .$ toolIid )
1029
1029
);
1030
1030
} else {
1031
1031
$ original_image = Display::return_icon (
1032
1032
$ image ,
1033
1033
$ item ['name ' ],
1034
- array ('id ' => 'toolimage_ ' .$ toolId ),
1034
+ array ('id ' => 'toolimage_ ' .$ toolIid ),
1035
1035
ICON_SIZE_BIG ,
1036
1036
false
1037
1037
);
@@ -1059,7 +1059,7 @@ public static function show_tools_category($all_tools_list, $rows = false)
1059
1059
$ original_image = Display::return_icon (
1060
1060
$ image ,
1061
1061
$ item ['name ' ],
1062
- array ('id ' => 'toolimage_ ' .$ item ['tool ' ]['id ' ]),
1062
+ array ('id ' => 'toolimage_ ' .$ item ['tool ' ]['iid ' ]),
1063
1063
ICON_SIZE_SMALL ,
1064
1064
false
1065
1065
);
0 commit comments