| @@ 3553-3560 (lines=8) @@ | ||
| 3550 | if (!is_null($alt)) { |
|
| 3551 | $img = inserer_attribut($img, 'alt', $alt); |
|
| 3552 | } |
|
| 3553 | if (!is_null($class)) { |
|
| 3554 | if (strlen($class)) { |
|
| 3555 | $img = inserer_attribut($img, 'class', $class); |
|
| 3556 | } |
|
| 3557 | else { |
|
| 3558 | $img = vider_attribut($img, 'class'); |
|
| 3559 | } |
|
| 3560 | } |
|
| 3561 | } |
|
| 3562 | else { |
|
| 3563 | $img = http_img_pack($img, $alt, $class ? " class='" . attribut_html($class) . "'" : '', '', |
|
| @@ 3639-3646 (lines=8) @@ | ||
| 3636 | $balise_svg = inserer_attribut($balise_svg, 'focusable', 'false'); |
|
| 3637 | ||
| 3638 | // regler la classe |
|
| 3639 | if (!is_null($class)) { |
|
| 3640 | if (strlen($class)) { |
|
| 3641 | $balise_svg = inserer_attribut($balise_svg, 'class', $class); |
|
| 3642 | } |
|
| 3643 | else { |
|
| 3644 | $balise_svg = vider_attribut($balise_svg, 'class'); |
|
| 3645 | } |
|
| 3646 | } |
|
| 3647 | ||
| 3648 | // regler le alt |
|
| 3649 | if ($alt){ |
|