| @@ 3542-3549 (lines=8) @@ | ||
| 3539 | if (!is_null($alt)) { |
|
| 3540 | $img = inserer_attribut($img, 'alt', $alt); |
|
| 3541 | } |
|
| 3542 | if (!is_null($class)) { |
|
| 3543 | if (strlen($class)) { |
|
| 3544 | $img = inserer_attribut($img, 'class', $class); |
|
| 3545 | } |
|
| 3546 | else { |
|
| 3547 | $img = vider_attribut($img, 'class'); |
|
| 3548 | } |
|
| 3549 | } |
|
| 3550 | } |
|
| 3551 | else { |
|
| 3552 | $img = http_img_pack($img, $alt, $class ? " class='" . attribut_html($class) . "'" : '', '', |
|
| @@ 3628-3635 (lines=8) @@ | ||
| 3625 | $balise_svg = inserer_attribut($balise_svg, 'focusable', 'false'); |
|
| 3626 | ||
| 3627 | // regler la classe |
|
| 3628 | if (!is_null($class)) { |
|
| 3629 | if (strlen($class)) { |
|
| 3630 | $balise_svg = inserer_attribut($balise_svg, 'class', $class); |
|
| 3631 | } |
|
| 3632 | else { |
|
| 3633 | $balise_svg = vider_attribut($balise_svg, 'class'); |
|
| 3634 | } |
|
| 3635 | } |
|
| 3636 | ||
| 3637 | // regler le alt |
|
| 3638 | if ($alt){ |
|