Changeset 108609 in spip-zone for _plugins_/albums


Ignore:
Timestamp:
Jan 24, 2018, 6:12:20 PM (3 years ago)
Author:
p@…
Message:

Gestion des class plus lisible via un GET/SET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/albums/trunk/modeles/album.html

    r95738 r108609  
    128128
    129129
    130 ]<B_documents_album>
     130]
     131
     132[(#REM) gestion de la class de la liste <ul> de l'album ]
     133[(#PLUGIN{bootstrap}|oui)
     134#SET{class, thumbnails}]
     135
     136[(#CONFIG{foundation/variante}|intval|>={4}|?{
     137        #SET{class, small-block-grid-2 medium-block-grid-3 large-block-grid-4},
     138        #SET{class, block-grid 4-up mobile-two-up}
     139 })]
     140
     141<B_documents_album>
    131142[<(#HTML5|?{figure,div}) class="album vignettes figure[ (#ENV{align})][ (#ENV{classe})][ (#PLUGIN{bootstrap}|oui)album-bootstrap][ (#PLUGIN{foundation}|oui)album-foundation]">]
    132143        #ANCRE_PAGINATION[
    133144        (#GET{position_legende}|=={top}|oui)[(#GET{caption})]]
    134         <ul[ (#PLUGIN{bootstrap}|oui)class='thumbnails'][ (#CONFIG{foundation/variante}|intval|>={4}|?{class='small-block-grid-2 medium-block-grid-3 large-block-grid-4',class='block-grid 4-up mobile-two-up'})]>
     145        <ul[ class="(#GET{class})"']>
    135146                <BOUCLE_documents_album(DOCUMENTS){id_document IN #GET{ids_documents}}{tout}{pagination #GET{pagination} #VAL{album}|concat{#ENV{id_album,x}}}>[
    136147                (#SET{titre_doc,      #TITRE|sinon{#FICHIER|basename}})][
Note: See TracChangeset for help on using the changeset viewer.