[(#REM) ACS (Plugin Spip) Squelette Cat http://acs.geomaticien.org Copyright Daniel FAIVRE, 2007-2012 Copyleft: licence GPL - Cf. LICENCES.txt in acs plugin dir Recupere les mot-clés, rubriques, sous-rubriques, et/ou articles géoreférencés à afficher, avec leurs pictogrammes, au format json. Retrieve keywords, sections, and/or pages to display with pictograms in json format Parameters: - minlat: maxlat, minlon, maxlon : define the bounding box of results. - maxmots: nb max de pictos de mots-clés géoréférencés. - maxrubs: nb max de pictos de rubriques géoréférencés. - maxarts: nb max de pictos d'articles géoréférencés. - limit : limits results to n lasts when maxrubs, maxarts or maxmots is NOT defined. ]{"pictos": [= #ENV{minlat}}{lat <= #ENV{maxlat}}{lonx >= #ENV{minlon}}{lonx <= #ENV{maxlon}}{0,#ENV{maxmots,#ENV{limit,10}}}{","}>[ (#SET{icon,[(#LOGO_MOT_NORMAL|extraire_attribut{src}|url_absolue)]})][ (#SET{over,[(#LOGO_MOT_SURVOL|extraire_attribut{src}|url_absolue)]})][ (#SET{iw,[(#LOGO_MOT_NORMAL|largeur)]})][(#SET{ih,[(#LOGO_MOT_NORMAL|hauteur)]})][ (#SET{ow,[(#LOGO_MOT_SURVOL|largeur)]})][(#SET{oh,[(#LOGO_MOT_SURVOL|hauteur)]}) ][ (#SET{virgule,","}) ][(#REM) Boucle rubriques ][(#GET{virgule})][ (#SET{virgule,""}) ]= #ENV{minlat}}{lat <= #ENV{maxlat}}{lonx >= #ENV{minlon}}{lonx <= #ENV{maxlon}}{par date}{inverse}{","}>[ (#SET{icon,[(#LOGO_MOT_NORMAL|extraire_attribut{src}|url_absolue)]})][ (#SET{over,[(#LOGO_MOT_SURVOL|extraire_attribut{src}|url_absolue)]})][ (#SET{iw,[(#LOGO_MOT_NORMAL|largeur)]})][(#SET{ih,[(#LOGO_MOT_NORMAL|hauteur)]})][ (#SET{ow,[(#LOGO_MOT_SURVOL|largeur)]})][(#SET{oh,[(#LOGO_MOT_SURVOL|hauteur)]}) ][ (#SET{virgule,","}) ][(#REM) Boucle sous-rubriques : le test sur id_mot évite les doublons pour les sous-rubriques déjà affichées par la boucle principale (on ne peut pas utiliser le critère doublons dans cette structure de boucles récursives imbriquées) ][(#GET{virgule})][ (#SET{virgule,""}) ]= #ENV{minlat}}{lat <= #ENV{maxlat}}{lonx >= #ENV{minlon}}{lonx <= #ENV{maxlon}}{","}> [ (#SET{icon,[(#LOGO_MOT_NORMAL|extraire_attribut{src}|url_absolue)]})][ (#SET{over,[(#LOGO_MOT_SURVOL|extraire_attribut{src}|url_absolue)]})][ (#SET{iw,[(#LOGO_MOT_NORMAL|largeur)]})][(#SET{ih,[(#LOGO_MOT_NORMAL|hauteur)]})][ (#SET{ow,[(#LOGO_MOT_SURVOL|largeur)]})][(#SET{oh,[(#LOGO_MOT_SURVOL|hauteur)]}) ] [(#SET{virgule,","})][(#REM) Boucle articles ]= #ENV{minlat}}{lat <= #ENV{maxlat}}{lonx >= #ENV{minlon}}{lonx <= #ENV{maxlon}}{par date}{inverse}{0,#ENV{maxarts,#ENV{limit,10}}}{","}>[(#GET{virgule})][ (#SET{virgule,""}) ][ (#SET{icon,[(#LOGO_MOT_NORMAL|extraire_attribut{src}|url_absolue)]})][ (#SET{over,[(#LOGO_MOT_SURVOL|extraire_attribut{src}|url_absolue)]})][ (#SET{iw,[(#LOGO_MOT_NORMAL|largeur)]})][(#SET{ih,[(#LOGO_MOT_NORMAL|hauteur)]})][ (#SET{ow,[(#LOGO_MOT_SURVOL|largeur)]})][(#SET{oh,[(#LOGO_MOT_SURVOL|hauteur)]}) ] ] }