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