| @@ 3587-3594 (lines=8) @@ | ||
| 3584 | if (!is_null($alt)) { |
|
| 3585 | $img = inserer_attribut($img, 'alt', $alt); |
|
| 3586 | } |
|
| 3587 | if (!is_null($class)) { |
|
| 3588 | if (strlen($class)) { |
|
| 3589 | $img = inserer_attribut($img, 'class', $class); |
|
| 3590 | } |
|
| 3591 | else { |
|
| 3592 | $img = vider_attribut($img, 'class'); |
|
| 3593 | } |
|
| 3594 | } |
|
| 3595 | } |
|
| 3596 | else { |
|
| 3597 | $img = http_img_pack($img, $alt, $class ? " class='" . attribut_html($class) . "'" : '', '', |
|
| @@ 3673-3680 (lines=8) @@ | ||
| 3670 | $balise_svg = inserer_attribut($balise_svg, 'focusable', 'false'); |
|
| 3671 | ||
| 3672 | // regler la classe |
|
| 3673 | if (!is_null($class)) { |
|
| 3674 | if (strlen($class)) { |
|
| 3675 | $balise_svg = inserer_attribut($balise_svg, 'class', $class); |
|
| 3676 | } |
|
| 3677 | else { |
|
| 3678 | $balise_svg = vider_attribut($balise_svg, 'class'); |
|
| 3679 | } |
|
| 3680 | } |
|
| 3681 | ||
| 3682 | // regler le alt |
|
| 3683 | if ($alt){ |
|