mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 23:52:24 +01:00
Merge remote-tracking branch 'origin/3.4' into develop
Conflicts: htdocs/core/class/extrafields.class.php
This commit is contained in:
@@ -2040,15 +2040,16 @@ function img_up($alt = 'default', $selected = 0)
|
||||
*
|
||||
* @param string $alt Text to show on alt image
|
||||
* @param int $selected Selected
|
||||
* @param string $options Add more attribute on img tag (For example 'style="float: right"')
|
||||
* @return string Return img tag
|
||||
*/
|
||||
function img_left($alt = 'default', $selected = 0)
|
||||
function img_left($alt = 'default', $selected = 0, $options='')
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
if ($alt == 'default') $alt = $langs->trans('Left');
|
||||
|
||||
return img_picto($alt, ($selected ? '1leftarrow_selected.png' : '1leftarrow.png'));
|
||||
return img_picto($alt, ($selected ? '1leftarrow_selected.png' : '1leftarrow.png'), $options);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2056,15 +2057,16 @@ function img_left($alt = 'default', $selected = 0)
|
||||
*
|
||||
* @param string $alt Text to show on alt image
|
||||
* @param int $selected Selected
|
||||
* @param string $options Add more attribute on img tag (For example 'style="float: right"')
|
||||
* @return string Return img tag
|
||||
*/
|
||||
function img_right($alt = 'default', $selected = 0)
|
||||
function img_right($alt = 'default', $selected = 0, $options='')
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
if ($alt == 'default') $alt = $langs->trans('Right');
|
||||
|
||||
return img_picto($alt, ($selected ? '1rightarrow_selected.png' : '1rightarrow.png'));
|
||||
return img_picto($alt, ($selected ? '1rightarrow_selected.png' : '1rightarrow.png'), $options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user