Changeset 118208 in spip-zone


Ignore:
Timestamp:
Oct 18, 2019, 5:11:21 PM (13 months ago)
Author:
Charles Razack
Message:

Ne pas ajouter les classes si aucune grille CSS n'est active

Location:
_plugins_/noizetier_layout/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/noizetier_layout/trunk

    • Property subgit:lock:3d01cc5bf0a79607612614b733c8bcc95cf884db deleted
    • Property subgit:lock:516494e671f805f678946a3a78bd5368984f247f set to 2019-10-18T19:22:42.089
  • _plugins_/noizetier_layout/trunk/capsules/dist.html

    r118171 r118208  
    1818<BOUCLE_noisette_englober(NOISETTES) {id_noisette}>
    1919#SET{params, #PARAMETRES}
    20 <div class="noisette noisette_#TYPE_NOISETTE[ (#CHAMP_SQL{css})][ (#GET{params/css_grid_column}|attribut_html)][ (#GET{params/css_grid_*}|attribut_html)]">
    21         [<div class="(#GET{params/css_grid_container}|attribut_html)">]
     20#SET{grille, #REM|noizetier_layout_grille|?{#ARRAY{
     21        container, #GET{params/css_grid_container},
     22        row,       #GET{params/css_grid_row},
     23        column,    #GET{params/css_grid_column},
     24        *,         #GET{params/css_grid_*},
     25}}}
     26<div class="noisette noisette_#TYPE_NOISETTE[ (#CHAMP_SQL{css})][ (#GET{grille/column}|attribut_html)][ (#GET{grille/*}|attribut_html)]">
     27        [<div class="(#GET{grille/container}|attribut_html)">]
    2228                <!--noisettes-->
    23         [(#GET{params/css_grid_container}|oui)</div>]
     29        [(#GET{grille/container}|oui)</div>]
    2430</div>
    2531</BOUCLE_noisette_englober>
  • _plugins_/noizetier_layout/trunk/noisettes/conteneur.html

    r118171 r118208  
    2020]
    2121#SET{balise, #ENV{conteneur_balise}|sinon{div}}
    22 [<div class="(#ENV{css_grid_column}|attribut_html)">]
    23         <[(#GET{balise})] class="noisette[ noisette_(#ENV{type_noisette}|attribut_html)][ (#ENV{conteneur_css}|attribut_html)][ (#ENV{css_grid_container}|non)[(#ENV{css_grid_row}|attribut_html)]]">
    24         [(#ENV{css_grid_container}|oui)
    25                 <div class="[(#ENV{css_grid_container}|attribut_html)]">
    26                         <div class="[(#ENV{css_grid_row}|attribut_html)]">
     22#SET{grille, #REM|noizetier_layout_grille|?{#ARRAY{
     23        container, #ENV{css_grid_container},
     24        row,       #ENV{css_grid_row},
     25        column,    #ENV{css_grid_column},
     26        *,         #ENV{css_grid_*},
     27}}}
     28[<div class="(#GET{grille/column}|attribut_html)">]
     29        <[(#GET{balise})] class="noisette[ noisette_(#ENV{type_noisette}|attribut_html)][ (#ENV{conteneur_css}|attribut_html)][ (#GET{grille/container}|non)[(#GET{grille/row}|attribut_html)]]">
     30        [(#GET{grille/container}|oui)
     31                <div class="[(#GET{grille/container}|attribut_html)]">
     32                        <div class="[(#GET{grille/row}|attribut_html)]">
    2733        ]
    2834                                <!--noisettes-->
    29         [(#ENV{css_grid_container}|oui)
     35        [(#GET{grille/container}|oui)
    3036                        </div>
    3137                </div>
    3238        ]
    3339        </[(#GET{balise})]>
    34 [(#ENV{css_grid_column}|oui)</div>]
     40[(#GET{grille/column}|oui)</div>]
Note: See TracChangeset for help on using the changeset viewer.