Skip to content
Extraits de code Groupes Projets
Valider e4bbd7ea rédigé par Fil's avatar Fil
Parcourir les fichiers

largeur de la div uniquement quand il le faut (François)

parent a34259f3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -320,13 +320,13 @@ function integre_image($id_document, $align, $type_aff) { ...@@ -320,13 +320,13 @@ function integre_image($id_document, $align, $type_aff) {
} }
if ($align != 'center') { if ($align != 'center') {
$float = "float: $align;"; // Largeur de la div = celle de l'image ; mais s'il y a une legende
if ($type_aff == 'IMG') { // mettre au moins 120px
$width = extraire_attribut($vignette, 'width'); $width = extraire_attribut($vignette, 'width');
if ($width < 120) $width = 120; if (strlen($txt) AND $width < 120) $width = 120;
$width = ' width: '.$width.'px;'; $width = 'width: '.$width.'px;';
}
$style = " style='$float$width'"; $style = " style='float: $align; $width'";
} }
return return
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter