| @@ 3563-3570 (lines=8) @@ | ||
| 3560 | if (!is_null($alt)) { |
|
| 3561 | $img = inserer_attribut($img, 'alt', $alt); |
|
| 3562 | } |
|
| 3563 | if (!is_null($class)) { |
|
| 3564 | if (strlen($class)) { |
|
| 3565 | $img = inserer_attribut($img, 'class', $class); |
|
| 3566 | } |
|
| 3567 | else { |
|
| 3568 | $img = vider_attribut($img, 'class'); |
|
| 3569 | } |
|
| 3570 | } |
|
| 3571 | } |
|
| 3572 | else { |
|
| 3573 | $img = http_img_pack($img, $alt, $class ? " class='" . attribut_html($class) . "'" : '', '', |
|
| @@ 3649-3656 (lines=8) @@ | ||
| 3646 | $balise_svg = inserer_attribut($balise_svg, 'focusable', 'false'); |
|
| 3647 | ||
| 3648 | // regler la classe |
|
| 3649 | if (!is_null($class)) { |
|
| 3650 | if (strlen($class)) { |
|
| 3651 | $balise_svg = inserer_attribut($balise_svg, 'class', $class); |
|
| 3652 | } |
|
| 3653 | else { |
|
| 3654 | $balise_svg = vider_attribut($balise_svg, 'class'); |
|
| 3655 | } |
|
| 3656 | } |
|
| 3657 | ||
| 3658 | // regler le alt |
|
| 3659 | if ($alt){ |
|