Skip to content
Extraits de code Groupes Projets
Valider 6073d876 rédigé par ARNO*'s avatar ARNO*
Parcourir les fichiers

Disparition de $retour=fichier_seul et $alt: on obtient memes resultats avec...

Disparition de $retour=fichier_seul et $alt: on obtient memes resultats avec fonctions inserer_attribut et extraire_attribut
parent 41122ebd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1138,7 +1138,6 @@ function image_typo() { ...@@ -1138,7 +1138,6 @@ function image_typo() {
$largeur: la largeur maximale de l'image ; attention, l'image retournee a une largeur inferieure, selon les limites reelles du texte $largeur: la largeur maximale de l'image ; attention, l'image retournee a une largeur inferieure, selon les limites reelles du texte
$alt: pour forcer l'affichage d'un alt; attention, comme utilisation d'un span invisible pour affiche le texte, generalement inutile $alt: pour forcer l'affichage d'un alt; attention, comme utilisation d'un span invisible pour affiche le texte, generalement inutile
$retour : si on passe "retour=fichier_seul", on recupere l'URL de l'image.
*/ */
...@@ -1171,8 +1170,7 @@ function image_typo() { ...@@ -1171,8 +1170,7 @@ function image_typo() {
$fond = $variable["fond"]; $fond = $variable["fond"];
if (strlen($fond) < 6) $fond = "ffffff"; if (strlen($fond) < 6) $fond = "ffffff";
if ($variable["alt"]) $alt = $variable["alt"]; $alt = $texte;
else $alt = $texte;
$ombre = $variable["ombre"]; $ombre = $variable["ombre"];
$ombrex = $variable["ombrex"]; $ombrex = $variable["ombrex"];
...@@ -1183,8 +1181,6 @@ function image_typo() { ...@@ -1183,8 +1181,6 @@ function image_typo() {
$align = $variable["align"]; $align = $variable["align"];
if (!$variable["align"]) $align="left"; if (!$variable["align"]) $align="left";
$retour = $variable["retour"];
$police = $variable["police"]; $police = $variable["police"];
if (strlen($police) < 2) $police = "dustismo.ttf"; if (strlen($police) < 2) $police = "dustismo.ttf";
...@@ -1245,10 +1241,7 @@ function image_typo() { ...@@ -1245,10 +1241,7 @@ function image_typo() {
$dimensions = getimagesize($image); $dimensions = getimagesize($image);
$largeur = $dimensions[0]; $largeur = $dimensions[0];
$hauteur = $dimensions[1]; $hauteur = $dimensions[1];
if ($retour == "fichier_seul") return inserer_attribut("<img src='$image' style='border: 0px; width: ".$largeur."px; height: ".$hauteur.px."' class='image_typo'>", 'alt', $alt);
return "$image";
else
return inserer_attribut("<img src='$image' style='border: 0px; width: ".$largeur."px; height: ".$hauteur.px."' class='image_typo'>", 'alt', $alt);
} else { } else {
return $texte; return $texte;
} }
......
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