Browse Source

Il est temps d'arreter avec ces puces en gif anime : on les remplace par des svg animes en essayant de rester au plu spres de l'intention initiale

3.0
Cerdic 1 year ago
parent
commit
765be95cdf
  1. 2
      base/sites.php
  2. 2
      prive/objets/liste/syndic.html
  3. 13
      prive/themes/spip/images/puce-blanche-anim-xx.svg
  4. 13
      prive/themes/spip/images/puce-orange-anim-xx.svg
  5. 13
      prive/themes/spip/images/puce-poubelle-anim-xx.svg
  6. 8
      prive/themes/spip/images/puce-rouge-anim-xx.svg
  7. 13
      prive/themes/spip/images/puce-verte-anim-xx.svg
  8. 6
      puce_statut/site.php

2
base/sites.php

@ -196,7 +196,7 @@ function sites_declarer_tables_objets_sql($tables) {
),
),
'statut_images' => array(
'puce-rouge-anim.gif',
'puce-rouge-anim-xx.svg',
'publie' => 'puce-publier-8.png',
'refuse' => 'puce-supprimer-8.png',
'dispo' => 'puce-proposer-8.png',

2
prive/objets/liste/syndic.html

@ -27,7 +27,7 @@
title="<:info_numero_abbreviation|attribut_html:> #ID_SYNDIC">#NOM_SITE</a> [<span class='visiter'>&#91;<a href='(#URL_SITE)'><:lien_visite_site:></a>&#93;</span>]
</td>
<td class='syndication'>[(#SYNDICATION|match{off|sus}|oui)
<span class="etat #SYNDICATION">[(#CHEMIN{puce-orange-anim.gif}|balise_img|inserer_attribut{alt,<:sites:info_panne_site_syndique:>})<:sites:info_probleme_grave:>]</span>
<span class="etat #SYNDICATION">[(#CHEMIN{puce-orange-anim-xx.svg}|balise_img|inserer_attribut{alt,<:sites:info_panne_site_syndique:>})<:sites:info_probleme_grave:>]</span>
]<BOUCLE_articlesyndic(SYNDIC_ARTICLES){id_syndic}{statut==.*}{tout} />[
(#SYNDICATION|match{oui|off|sus}|oui)
[(#TOTAL_BOUCLE)] <:sites:info_syndication_articles:>

13
prive/themes/spip/images/puce-blanche-anim-xx.svg

@ -0,0 +1,13 @@
<svg width="64" height="64" viewBox="45 0 30 30" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="15" r="9" fill="#fff"/>
<circle cx="60" cy="15" r="9" fill-opacity="0.0" fill="#F43737">
<animate attributeName="r" from="9" to="9"
begin="0s" dur="0.8s"
values="9;15;9" calcMode="linear"
repeatCount="indefinite" />
<animate attributeName="fill-opacity" from="0.0" to="0.0"
begin="0s" dur="0.8s"
values=".0;1;.0" calcMode="linear"
repeatCount="indefinite" />
</circle>
</svg>

After

Width:  |  Height:  |  Size: 611 B

13
prive/themes/spip/images/puce-orange-anim-xx.svg

@ -0,0 +1,13 @@
<svg width="16" height="16" viewBox="45 0 30 30" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="15" r="9" fill="#d86600"/>
<circle cx="60" cy="15" r="9" fill-opacity="0.1" fill="#F43737">
<animate attributeName="r" from="9" to="9"
begin="0s" dur="0.8s"
values="9;15;9" calcMode="linear"
repeatCount="indefinite" />
<animate attributeName="fill-opacity" from="0.1" to="0.1"
begin="0s" dur="0.8s"
values=".1;1;.1" calcMode="linear"
repeatCount="indefinite" />
</circle>
</svg>

After

Width:  |  Height:  |  Size: 614 B

13
prive/themes/spip/images/puce-poubelle-anim-xx.svg

@ -0,0 +1,13 @@
<svg width="16" height="16" viewBox="45 0 30 30" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="15" r="9" fill="#000"/>
<circle cx="60" cy="15" r="9" fill-opacity="0.1" fill="#F43737">
<animate attributeName="r" from="9" to="9"
begin="0s" dur="0.8s"
values="9;15;9" calcMode="linear"
repeatCount="indefinite" />
<animate attributeName="fill-opacity" from="0.1" to="0.1"
begin="0s" dur="0.8s"
values=".1;1;.1" calcMode="linear"
repeatCount="indefinite" />
</circle>
</svg>

After

Width:  |  Height:  |  Size: 611 B

8
prive/themes/spip/images/puce-rouge-anim-xx.svg

@ -0,0 +1,8 @@
<svg width="16" height="16" viewBox="45 0 30 30" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="15" r="9" fill="#F43737">
<animate attributeName="r" from="9" to="9"
begin="0s" dur="0.8s"
values="9;15;9" calcMode="linear"
repeatCount="indefinite" />
</circle>
</svg>

After

Width:  |  Height:  |  Size: 342 B

13
prive/themes/spip/images/puce-verte-anim-xx.svg

@ -0,0 +1,13 @@
<svg width="16" height="16" viewBox="45 0 30 30" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="15" r="9" fill="#119914"/>
<circle cx="60" cy="15" r="9" fill-opacity="0.1" fill="#F43737">
<animate attributeName="r" from="9" to="9"
begin="0s" dur="0.8s"
values="9;15;9" calcMode="linear"
repeatCount="indefinite" />
<animate attributeName="fill-opacity" from="0.1" to="0.1"
begin="0s" dur="0.8s"
values=".1;1;.1" calcMode="linear"
repeatCount="indefinite" />
</circle>
</svg>

After

Width:  |  Height:  |  Size: 614 B

6
puce_statut/site.php

@ -25,16 +25,16 @@ function puce_statut_site_dist($id, $statut, $id_rubrique, $type, $ajax = '', $m
if ($t == 'off' or $t == 'sus') {
switch ($statut) {
case 'publie':
$puce = 'puce-verte-anim.gif';
$puce = 'puce-verte-anim-xx.svg';
$title = _T('sites:info_site_reference');
break;
case 'prop':
$puce = 'puce-orange-anim.gif';
$puce = 'puce-orange-anim-xx.svg';
$title = _T('sites:info_site_attente');
break;
case 'refuse':
default:
$puce = 'puce-poubelle-anim.gif';
$puce = 'puce-poubelle-anim-xx.svg';
$title = _T('sites:info_site_refuse');
break;
}

Loading…
Cancel
Save