[PLUGINS] ~maj globale
[lhc/web/www.git] / www / plugins / zen-garden-2 / zengarden_pipelines.php
1 <?php
2 /**
3 * Plugin Zen-Garden pour Spip 3.0
4 * Licence GPL (c) 2006-2013 Cedric Morin
5 *
6 * Fichier des utilisations des pipelines du plugin
7 *
8 * @package SPIP\Zen-Garden\Pipelines
9 */
10
11 if (!defined('_ECRIRE_INC_VERSION')) {
12 return;
13 }
14
15 /**
16 * Insertion dans le pipeline header_prive
17 *
18 * Insertion des deux scripts javascript pour les tooltips dans l'espace privé
19 *
20 * @param string $flux
21 * Le code html du head de l'espace privé
22 * @return string $flux
23 * Le code html du head complété
24 */
25 function zengarden_header_prive($flux){
26 if (_request('exec') == 'zengarden')
27 $flux .='
28 <script src="'.find_in_path('javascript/jquery.qtip-1.0.0-rc3.js').'" type="text/javascript"></script>
29 <script src="'.find_in_path('javascript/jquery.qtip.activate.js').'" type="text/javascript"></script>';
30
31 return $flux;
32 }