|
|
|
@ -1,9 +1,14 @@
|
|
|
|
|
#SET{bloctypes_enfants,#ENV{id_blocktype_parent}|bloctypes_trouver_enfants}
|
|
|
|
|
#SET{data,#ARRAY}
|
|
|
|
|
<BOUCLE(BLOCKTYPES) {id_blocktype !IN #ENV{exclus}} {par num titre, titre}>
|
|
|
|
|
#SET{objets,#OBJETS|blocks_deserialize}
|
|
|
|
|
#SET{bloctypes_parents,#ID_BLOCKTYPE|bloctypes_trouver_parents}
|
|
|
|
|
[(#GET{objets}|non|ou{ #ENV{objet}|non }|ou{ #ENV{objet}|in_array{#GET{objets}} })
|
|
|
|
|
#SET{titre, #ENV{titre_court}|?{#TITRE,#TITRE|wrap{<strong>}|concat{#DESCRIPTION|propre}}}
|
|
|
|
|
#SET{data,#GET{data}|plus{#ARRAY{#ID_BLOCKTYPE,#GET{titre}}}}
|
|
|
|
|
[(#ENV{id_blocktype_parent}|non|ou{ #ID_BLOCKTYPE|in_array{#GET{bloctypes_enfants}} })
|
|
|
|
|
[(#GET{bloctypes_parents}|non|ou{ #ENV{id_blocktype_parent}|in_array{#GET{bloctypes_parents}} })
|
|
|
|
|
#SET{titre, #ENV{titre_court}|?{#TITRE,#TITRE|wrap{<strong>}|concat{#DESCRIPTION|propre}}}
|
|
|
|
|
#SET{data,#GET{data}|plus{#ARRAY{#ID_BLOCKTYPE,#GET{titre}}}}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
</BOUCLE>
|
|
|
|
|
|
|
|
|
|