Changeset 96557 in spip-zone for _plugins_/gisban/gisban_pipelines.php


Ignore:
Timestamp:
Apr 10, 2016, 9:14:25 AM (5 years ago)
Author:
spip.franck@…
Message:

Des tabs à la place d'espace pour être un peu plus conforme avec http://www.spip.net/fr_article3497.html#regles_codage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/gisban/gisban_pipelines.php

    r89034 r96557  
    99 * @return mixed
    1010 */
    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;
     11function 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;
    1515}
    1616
     
    2121 * @return mixed
    2222 */
    23 function gisban_header_prive($flux){
    24     $flux .= gisban_insert_head_css('');
    25     return $flux;
     23function gisban_header_prive($flux) {
     24        $flux .= gisban_insert_head_css('');
     25        return $flux;
    2626}
    2727
     
    3333 * @return mixed
    3434 */
    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;
     35function 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;
    4646}
    4747?>
Note: See TracChangeset for help on using the changeset viewer.