Compare commits

...

4 Commits
master ... v1

Author SHA1 Message Date
Maïeul 50a25cb8d1 up de z 10 months ago
Maïeul 49e6968680 et optimisée 10 months ago
Maïeul 3b419f76cf une image en 16px 10 months ago
Maïeul f21cf5178f En spip 3.2 impossible d'avoir de l'image_reduire sur du svg. 10 months ago
  1. 3
      inc/inserer_modeles.php
  2. 2
      paquet.xml
  3. 11
      prive/themes/spip/images/modele-xx.svg

3
inc/inserer_modeles.php

@ -118,7 +118,6 @@ function inserer_modeles_find_icone_barre_path($nom) {
}
}
include_spip('inc/filtres');
include_spip('inc/filtres_images_mini');
$chemin = preg_replace('#\?.*$#', '', $chemin);//Au cas où find_in_theme nous return un truc genre gis-xx.svg?16px
return extraire_attribut(image_reduire($chemin, 16), 'src');//On force la reduction à 16px, pour le porteplume
return $chemin;
}

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="inserer_modeles"
categorie="edition"
version="1.4.5"
version="1.4.6"
etat="stable"
compatibilite="[3.0.0;4.0.*]"
logo="prive/themes/spip/images/modele-32.png"

11
prive/themes/spip/images/modele-xx.svg

@ -1,10 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
<path fill="#fff" d="M6 9h52v46H6z"/>
<path fill="#1d83d4" d="M22 22h20v20H22z" />
<path fill="#fff" d="M28 28h8v8h-8z" />
<path fill="#888" transform="rotate(135 46.46472156 17.5355308)" d="M43.5 15.5h6v4h-6z"/>
<path fill="#888" transform="rotate(45 17.53585718 17.53535205)" d="M14.5 15.5h6v4h-6z"/>
<path fill="#888" transform="rotate(-45 17.53505362 46.46488079)" d="M14.5 44.5h6v4h-6z"/>
<path fill="#888" transform="rotate(45 46.46522921 46.46419794)" d="M43.5 44.5h6v4h-6z"/>
<path fill="#666" d="M58.3 5.8c1.6 0 2.9 1.3 2.9 2.9v46.7c0 1.6-1.3 2.9-2.9 2.9H5.8c-1.6 0-2.9-1.3-2.9-2.9V8.7c0-1.6 1.3-2.9 2.9-2.9h52.5zm-3 5.8H8.7v40.8h46.7V11.6z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 64 64"><path fill="#fff" d="M6 9h52v46H6z"/><path fill="#1d83d4" d="M22 22h20v20H22z"/><path fill="#fff" d="M28 28h8v8h-8z"/><path fill="#888" d="m50 16.878-4.242 4.243-2.829-2.828 4.243-4.243zM16.828 13.95l4.243 4.242-2.828 2.829L14 16.778zM14 47.222l4.242-4.243 2.829 2.828-4.243 4.243zm31.757-4.243L50 47.22l-2.828 2.829-4.243-4.243z"/><path fill="#666" d="M58.3 5.8c1.6 0 2.9 1.3 2.9 2.9v46.7c0 1.6-1.3 2.9-2.9 2.9H5.8c-1.6 0-2.9-1.3-2.9-2.9V8.7c0-1.6 1.3-2.9 2.9-2.9h52.5zm-3 5.8H8.7v40.8h46.7V11.6z"/></svg>

Before

Width:  |  Height:  |  Size: 570 B

After

Width:  |  Height:  |  Size: 589 B

Loading…
Cancel
Save