37 lines
1 KiB
HTML
37 lines
1 KiB
HTML
#SET{max,0}
|
|
<BOUCLE_maxmot(MOTS) {id_groupe = #ENV{id_groupe}}>
|
|
#SET{pop,0}
|
|
<BOUCLE_pop(ARTICLES) {id_mot}>[
|
|
(#SET{pop,[(#POPULARITE|plus{#GET{pop}})]})
|
|
]</BOUCLE_pop>
|
|
[(#GET{pop}|>{[(#GET{max})]}|oui)
|
|
[(#SET{max,[(#GET{pop})]})]
|
|
]
|
|
</BOUCLE_maxmot>
|
|
<B_tags>
|
|
<ul class="nuage">
|
|
<BOUCLE_tags(MOTS){id_groupe = #ENV{id_groupe}} {par titre}>[
|
|
(#REM) définir les mot exposés
|
|
]#SET{expose,''}
|
|
|
|
<BOUCLE_expose(ARTICLES){id_article}{id_mot}{0,1}>[
|
|
(#SET{expose,' '})
|
|
]</BOUCLE_expose>[
|
|
(#ENV{id_mot}|=={#ID_MOT}|oui)
|
|
#SET{expose,' '}
|
|
]#SET{pop,0}
|
|
<BOUCLE_popularite(ARTICLES) {id_mot}>[
|
|
(#SET{pop,[(#POPULARITE|plus{#GET{pop}})]})
|
|
]</BOUCLE_popularite>[
|
|
|
|
(#GET{pop}|>{0}|oui)
|
|
|
|
<li[(#GET{expose}|oui) class="expose"]>
|
|
[(#REM) <span class="frequence">[(#GET{pop})/#GET{max}]</span>]
|
|
<a rel="tag" href="#URL_MOT" class="nuage[(#GET{pop}|nuage_note{#GET{max},10})] [(#GET{expose}|oui) on]"
|
|
data-id_mot="#ID_MOT" data-mot="#TITRE**" data-tag="oui">#[(#TITRE)]</a>
|
|
</li>
|
|
|
|
]</BOUCLE_tags>
|
|
</ul>
|
|
</B_tags>
|