Minor - format code

1.10.x
Julio Montoya 10 years ago
parent a7733d07b4
commit bcf72eefe5
  1. 7
      main/inc/lib/display.lib.php
  2. 14
      main/inc/lib/template.lib.php

@ -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 . '" ';

@ -185,11 +185,23 @@ class Template
}
}
/**
* @param string $image
* @param int $size
*
* @return string
*/
public static function get_icon_path($image, $size = ICON_SIZE_SMALL)
{
return Display:: return_icon($image, '', array(), $size, false, true);
return Display::return_icon($image, '', array(), $size, false, true);
}
/**
* @param string $timestamp
* @param string $format
*
* @return string
*/
public static function format_date($timestamp, $format = null)
{
return api_format_date($timestamp, $format);

Loading…
Cancel
Save