Browse Source

Amélioration include_svg

master v1.29.2
ARNO* 4 months ago
parent
commit
6468dd5f72
  1. 6
      medias_responsive_mod_fonctions.php
  2. 2
      paquet.xml

6
medias_responsive_mod_fonctions.php

@ -156,7 +156,8 @@ if (!function_exists("include_svg")) {
$tag_svg = vider_attribut($tag_svg, "width");
$tag_svg = vider_attribut($tag_svg, "height");
$tag_svg = inserer_attribut($tag_svg, "style", "position:absolute;");
$style = extraire_attribut($tag_svg,"style");
$tag_svg = inserer_attribut($tag_svg, "style", "position:absolute;$style");
$tag_svg = preg_replace(",\ xmlns(\:[a-z]+)?\=[\"\']([^\"\']*)[\"\'],", "", $tag_svg);
$texte = $tag_svg.$m[2]."/svg>";
@ -180,5 +181,4 @@ if (!function_exists("inclure_svg")) {
function inclure_svg($file) {
return include_svg($file);
}
}
}

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="medias_responsive_mod"
categorie="multimedia"
version="1.29.1"
version="1.29.2"
etat="stable"
compatibilite="[3.0.0;4.1.*]"
logo="prive/themes/spip/images/medias_responsive-32.png"

Loading…
Cancel
Save