|
@@ -714,7 +714,6 @@ class Display
|
|
|
|
|
|
$image = trim($image);
|
|
|
$theme = 'themes/' . api_get_visual_theme() . '/icons/';
|
|
|
- $icon = '';
|
|
|
$size_extra = '';
|
|
|
|
|
|
if (isset($size)) {
|
|
@@ -768,6 +767,7 @@ class Display
|
|
|
$img = "$img $alt_text";
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
return $img;
|
|
|
}
|
|
|
|
|
@@ -776,7 +776,7 @@ class Display
|
|
|
*
|
|
|
* @param string $image the filename of the file (in the main/img/ folder
|
|
|
* @param string $alt_text the alt text (probably a language variable)
|
|
|
- * @param array additional attributes (for instance height, width, onclick, ...)
|
|
|
+ * @param array $additional_attributes (for instance height, width, onclick, ...)
|
|
|
* @author Julio Montoya 2010
|
|
|
*/
|
|
|
public static function img($image_path, $alt_text = '', $additional_attributes = array())
|
|
@@ -909,8 +909,7 @@ class Display
|
|
|
$extra_attributes = array(),
|
|
|
$show_blank_item = true,
|
|
|
$blank_item_text = null
|
|
|
- )
|
|
|
- {
|
|
|
+ ) {
|
|
|
$html = '';
|
|
|
$extra = '';
|
|
|
$default_id = 'id="' . $name . '" ';
|