Changeset 7340


Ignore:
Timestamp:
01/28/13 18:03:47 (7 years ago)
Author:
kent1
Message:

Exposer le premier media dans la mini-liste si aucun id_media dans l'environnement

Location:
plugins_spip/media_collections
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins_spip/media_collections/content/collection.html

    r7335 r7340  
    1515                </p>
    1616        </div>
    17         [(#SET{inclure_collection,[(#CHEMIN{vues/collection_[(#TYPE_COLLECTION)]_[(#GENRE)].html}|sinon{[(#CHEMIN{vues/collection_[(#GENRE)].html}|sinon{[(#CHEMIN{vues/collection_[(#TYPE_COLLECTION)].html})]})]})]})]
    18         [(#GET{inclure_collection}|?{#SET{inclure_collection,#GET{inclure_collection}|substr{0,-5}},#SET{inclure_collection,inclure/content-collection}})]
    1917        <div class="surlignable">
    2018                [<div class="#EDIT{descriptif} texte">(#DESCRIPTIF|image_reduire{500,0})</div>]
    2119        </div>
    2220        <div class="content-collection[ (#GENRE)][ (#TYPE_COLLECTION)]">
     21                [(#SET{inclure_collection,[(#CHEMIN{vues/collection_[(#TYPE_COLLECTION)]_[(#GENRE)].html}|sinon{[(#CHEMIN{vues/collection_[(#GENRE)].html}|sinon{[(#CHEMIN{vues/collection_[(#TYPE_COLLECTION)].html})]})]})]})]
     22        [(#GET{inclure_collection}|?{#SET{inclure_collection,#GET{inclure_collection}|substr{0,-5}},#SET{inclure_collection,inclure/content-collection}})]
    2323                <INCLURE{fond=#GET{inclure_collection},ajax,env} />
    2424        </div>
  • plugins_spip/media_collections/inclure/content-collection.html

    r7338 r7340  
    6161<ul class="liste-items medias-liste">
    6262<BOUCLE_medias(ARTICLES){id_collection}{par num titre, titre}>
    63 <li class="item media[(#ENV{id_media}|=={#ID_ARTICLE}|oui)on][(#ENV{id_media}|non|et{#COMPTEUR_BOUCLE}|=={1}|oui)on]">
     63<li class="item media[(#ENV{id_media}|=={#ID_ARTICLE}|oui)on][(#ENV{id_media}|non|et{#COMPTEUR_BOUCLE|=={1}|oui}|oui)on]">
    6464        <BOUCLE_documents(DOCUMENTS){id_article}>
    6565        <a href="[(#SELF|parametre_url{id_media,#_medias:ID_ARTICLE}|ancre_url{media_#ID_ARTICLE})]" class="ajax">
Note: See TracChangeset for help on using the changeset viewer.