Changeset 44029 in spip-zone
- Timestamp:
- Jan 31, 2011, 7:38:20 PM (9 years ago)
- Location:
- _plugins_/spip_geoportail
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/spip_geoportail/action/geoproxy.php
r44001 r44029 25 25 $sUrl= ''; 26 26 $sReponse= ''; 27 // via un proxy d'entreprise/IP 28 $proxy_host= ''; 29 $proxy_port= 80; 27 // Recherche du proxy SPIP 28 $http_proxy = $GLOBALS['meta']["http_proxy"]; 29 $p = strrpos ($http_proxy, ':'); 30 $proxy_host= $p ? substr($http_proxy,0,$p):''; 31 $proxy_port= $p ? substr($http_proxy,$p+1):80; 30 32 $content_types= array( 31 33 'application/vnd.google-earth.kml+xml', -
_plugins_/spip_geoportail/inc/geoportail_fonctions.php
r44001 r44029 24 24 */ 25 25 function geoportail_affichage_final($page) 26 { // Inclure le hash code de maniere dynamique 26 { // on regarde rapidement si la page inclus un geoportail 27 if (strpos($page, '<!_SPIP_GEOPORTAIL_HASH_!>')===FALSE) return $page; 28 29 // Inclure le hash code de maniere dynamique 27 30 charger_fonction('securiser_action','inc'); 28 31 $action = calculer_action_auteur('geoportail'); 29 return str_replace( "<!_SPIP_GEOPORTAIL_HASH_!>",$action,$page);32 return str_replace('<!_SPIP_GEOPORTAIL_HASH_!>', $action, $page); 30 33 } 31 34 -
_plugins_/spip_geoportail/modeles/art_geoportail.html
r43498 r44029 25 25 </script> 26 26 </BOUCLE_geo_article> 27 [(#REM) 28 Affichage des articles dans une rubrique (si pas d'article defini) 29 sur une idee de flouvel http://www.spip-contrib.net/Plugin-SPIP-Geoportail#forum440064 30 ] 31 <BOUCLE_article(ARTICLES){id_article=#ID}> </BOUCLE_article> 32 <BOUCLE_geo_rubrique(ARTICLES){geoposition}{id_rubrique?}{id_secteur?}{id_mot?}{id_groupe?}> 33 <script language=javascript> 34 // Ajouter l'article 35 [(#SET{largeur,[(#LOGO_ARTICLE||image_reduire{40}|largeur|plus{[(#ENV{bord,4})]})]})] 36 [(#SET{hauteur,[(#LOGO_ARTICLE||image_reduire{40}|hauteur|plus{[(#ENV{bord,4})]})]})] 37 var img = "[(#LOGO_ARTICLE||image_reduire{40}|image_recadre{#GET{largeur},#GET{hauteur},center,#ENV{couleur,#FFFFFF}}|extraire_attribut{src})]"; 38 var align = ""; 39 if (!img) 40 { img = "[(#CHEMIN{img/punaise.png})]"; 41 align = "bottom-left"; 42 } 43 $.geoportail.addImg ([(#ENV{id_geoportail,0})], 0, "#TITRE", #LON, #LAT, img, align, "[(#ENV{taille,20})]", {}); 44 45 if ("[(#ENV{align})]" == "center") 46 $.geoportail.onLoad([(#ENV{id_geoportail,0})], function centerMap(map,id){ map.getMap().setCenterAtLonLat(#LON, #LAT, #ZOOM); } ); 47 48 </script> 49 </BOUCLE_geo_rubrique> 50 <//B_article> 51 <//B_geo_article> -
_plugins_/spip_geoportail/modeles/geoportail_articles.html
r39814 r44029 50 50 51 51 // Ajouter les articles 52 <BOUCLE_geo_article(ARTICLES){geoposition}{id_article?}{id_auteur?}{id_rubrique?}{id_secteur?}{ par date}{inverse}{0,#ENV{max,200}}>52 <BOUCLE_geo_article(ARTICLES){geoposition}{id_article?}{id_auteur?}{id_rubrique?}{id_secteur?}{id_mot?}{id_groupe?}{par date}{inverse}{0,#ENV{max,200}}> 53 53 { var lon = #LON; 54 54 var lat = #LAT; -
_plugins_/spip_geoportail/modeles/geoportail_auteurs.html
r39814 r44029 39 39 40 40 // Ajouter les auteurs 41 <BOUCLE_a(AUTEURS){geoposition}{tout}{ 0,#ENV{max,200}}>41 <BOUCLE_a(AUTEURS){geoposition}{tout}{id_auteur?}{statut?}{0,#ENV{max,200}}> 42 42 { [(#SET{largeur,[(#LOGO_AUTEUR||image_reduire{40}|largeur|plus{[(#ENV{bord,4})]})]})] 43 43 [(#SET{hauteur,[(#LOGO_AUTEUR||image_reduire{40}|hauteur|plus{[(#ENV{bord,4})]})]})]
Note: See TracChangeset
for help on using the changeset viewer.