source: spip-zone/_plugins_/autocompletion/autocompletion_pipelines.php @ 111365

Last change on this file since 111365 was 63066, checked in by dexbrayat@…, 9 years ago

Ajout du plugin Autocomplétion et géolocalisation (en développement)

File size: 777 bytes
Line 
1<?php
2// Sécurité
3if (!defined("_ECRIRE_INC_VERSION")) return;
4
5function autocompletion_header_prive($flux){
6    $flux = autocompletion_insert_head($flux);
7    return $flux;
8}
9
10function autocompletion_jquery_plugins($scripts){
11    $scripts[] = "javascript/jquery-ui-1.8.21.custom.min.js";
12    return $scripts;
13}
14
15function autocompletion_insert_head($flux){
16    $css = find_in_path('css/autocompletion.css');
17    $flux .= "\n<link rel='stylesheet' href='$css' type='text/css' media='all' />\n";
18    $flux .= "\n<link rel='stylesheet' type='text/css' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css' />\n";
19    $flux .= "\n<script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>\n";
20    return $flux;
21}
Note: See TracBrowser for help on using the repository browser.