Commit 311295c6 authored by L0r3nt's avatar L0r3nt

Mise en place de paliers sur filtre image_responsive

parent c3908455
......@@ -43,15 +43,15 @@
(#ENV{lien}|?{'',type="#MIME_TYPE"})]>]
[(#ENV{largeur,0}|ou{#ENV{hauteur,0}}|?{
[(#ENV{mode_force,#MODE}|=={image}|?{
[(#VAL{<img src='[(#URL_DOCUMENT|image_reduire{#ENV{largeur,0},#ENV{hauteur,0}}|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{800})]
[(#VAL{<img src='[(#URL_DOCUMENT|image_reduire{#ENV{largeur,0},#ENV{hauteur,0}}|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{0/300/400/650/1100,0,0,(max-width:320px)/(max-width:736px)/(max-width:1280px)/})]
,
[(#VAL{<img src='[(#LOGO_DOCUMENT|image_reduire{#ENV{largeur,0},#ENV{hauteur,0}}|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{800})]
[(#VAL{<img src='[(#LOGO_DOCUMENT|image_reduire{#ENV{largeur,0},#ENV{hauteur,0}}|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{0/300/400/650/1100,0,0,(max-width:320px)/(max-width:736px)/(max-width:1280px)/})]
})]
,
[(#ENV{mode_force,#MODE}|=={image}|?{
[(#VAL{<img src='#URL_DOCUMENT'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{800})]
[(#VAL{<img src='#URL_DOCUMENT'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{0/300/400/650/1100,0,0,(max-width:320px)/(max-width:736px)/(max-width:1280px)/})]
,
[(#VAL{<img src='[(#LOGO_DOCUMENT|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{800})]
[(#VAL{<img src='[(#LOGO_DOCUMENT|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{0/300/400/650/1100,0,0,(max-width:320px)/(max-width:736px)/(max-width:1280px)/})]
})]
})]
[(#GET{url}|?{</a>})]</dt>[
......
......@@ -20,10 +20,10 @@ equivalent a un <docXX> pour une image en mode image
#SET{fichier,#URL_DOCUMENT}
#SET{width,#LARGEUR}
#SET{height,#HAUTEUR}
#SET{url,#ENV{lien}}#GET{fichier}
#SET{url,#ENV{lien}}
<dl class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[
style='float:(#ENV{align}|match{left|right});[width:(#GET{width}|max{120})]px;']>
<dt>[<a href="(#GET{url})"[ class="(#ENV{lien_class})"] title='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]'[ type="(#ENV{lien}|?{#ENV{lien_mime},#MIME_TYPE})"]>][(#VAL{<img src='#GET{fichier}' width='#GET{width}' height='#GET{height}' alt='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]' />}|image_responsive{800})][(#GET{url}|?{</a>})]</dt>[
<dt>[<a href="(#GET{url})"[ class="(#ENV{lien_class})"] title='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]'[ type="(#ENV{lien}|?{#ENV{lien_mime},#MIME_TYPE})"]>][(#VAL{<img src='#URL_DOCUMENT'[ width="(#GET{width})"][ height="(#GET{height})"] alt="#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]" />}|image_responsive{0/300/400/650/1100,0,0,(max-width:320px)/(max-width:736px)/(max-width:1280px)/})][(#GET{url}|?{</a>})]</dt>[
<dt class='#EDIT{titre} spip_doc_titre'[ style='width:(#GET{width}|min{350}|max{120})px;']><strong>(#TITRE)</strong></dt>][
<dd class='#EDIT{descriptif} spip_doc_descriptif'[ style='width:(#GET{width}|min{350}|max{120})px;']>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</dd>]
</dl>
......
......@@ -38,7 +38,7 @@
][(#GET{image})
<span class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[
style='float:(#ENV{align}|match{left|right});']>
[<a href="(#ENV{lien})"[ class="(#ENV{lien_class})"]>][(#VAL{<img src='#URL_DOCUMENT'[ width="(#LARGEUR)"][ height="(#HAUTEUR)"] alt="[(#TITRE|texte_backend)]"[ title="(#TITRE|texte_backend)"] />}|image_responsive{800})][(#ENV{lien}|?{</a>})]</span>
[<a href="(#ENV{lien})"[ class="(#ENV{lien_class})"]>][(#VAL{<img src='#URL_DOCUMENT'[ width="(#LARGEUR)"][ height="(#HAUTEUR)"] alt="[(#TITRE|texte_backend)]"[ title="(#TITRE|texte_backend)"] />}|image_responsive{0/300/400/650/1100,0,0,(max-width:320px)/(max-width:736px)/(max-width:1280px)/})][(#ENV{lien}|?{</a>})]</span>
][
(#REM) sinon logo document + lien + alt + title etc
......@@ -49,5 +49,5 @@
[(#SET{height,[(#LOGO_DOCUMENT|extraire_attribut{height})]})]
<span class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[
style='float:(#ENV{align}|match{left|right});[ width:(#GET{width})px;]']><a href="[(#ENV{lien}|sinon{#URL_DOCUMENT})]"[
(#ENV{lien}|?{'',type="#MIME_TYPE"})][ title="(#TITRE|texte_backend)"]>[(#VAL{<img src='[(#LOGO_DOCUMENT|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="[(#TITRE|strlen|?{#TITRE {#TYPE_DOCUMENT},#TYPE_DOCUMENT}|attribut_html)]" />}|image_responsive{800})]</a></span>
(#ENV{lien}|?{'',type="#MIME_TYPE"})][ title="(#TITRE|texte_backend)"]>[(#VAL{<img src='[(#LOGO_DOCUMENT|extraire_attribut{src})]'[ width="(#GET{width})"][ height="(#GET{height})"] alt="[(#TITRE|strlen|?{#TITRE {#TYPE_DOCUMENT},#TYPE_DOCUMENT}|attribut_html)]" />}|image_responsive{0/300/400/650/1100,0,0,(max-width:320px)/(max-width:736px)/(max-width:1280px)/})]</a></span>
]</BOUCLE_document>
<paquet
prefix='hyperspace'
categorie='squelette'
version='2.0.7'
version='2.0.8'
etat='stable'
compatibilite="[3.0.0;3.1.*]"
logo="hyperspace-32.png"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment