Changeset 96557 in spip-zone for _plugins_/gisban/gisban_pipelines.php
- Timestamp:
- Apr 10, 2016, 9:14:25 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/gisban/gisban_pipelines.php
r89034 r96557 9 9 * @return mixed 10 10 */ 11 function gisban_insert_head_css($flux) {12 13 14 11 function gisban_insert_head_css($flux) { 12 $flux .="\n".'<link rel="stylesheet" href="'. find_in_path('lib/leaflet.photon/leaflet.photon.css') .'" />'; 13 $flux .="\n".'<link rel="stylesheet" href="'. find_in_path('css/photon_search_gis.css') .'" />'; 14 return $flux; 15 15 } 16 16 … … 21 21 * @return mixed 22 22 */ 23 function gisban_header_prive($flux) {24 25 23 function gisban_header_prive($flux) { 24 $flux .= gisban_insert_head_css(''); 25 return $flux; 26 26 } 27 27 … … 33 33 * @return mixed 34 34 */ 35 function gisban_recuperer_fond($flux) {36 37 38 39 40 41 42 43 44 45 35 function gisban_recuperer_fond($flux) { 36 if ($flux['args']['fond'] == 'modeles/carte_gis') { 37 $modele = recuperer_fond('inclure/inc-carte-gisban', $flux['data']['contexte']); 38 $flux['data']['texte'] .= "\n" . $modele; 39 } 40 if ($flux['args']['fond'] == 'javascript/gis.js') { 41 $ajouts = "var filter_gisban = '". lire_config('gisban/filtre_gisban') ."';\n"; 42 $ajouts .= "\n" . spip_file_get_contents(find_in_path('lib/leaflet.photon/leaflet.photon.js')); 43 $flux['data']['texte'] .= $ajouts; 44 } 45 return $flux; 46 46 } 47 47 ?>
Note: See TracChangeset
for help on using the changeset viewer.