source: spip-zone/_plugins_/timecircles/branches/v1.5.3/timecircles_pipelines.php @ 112669

Last change on this file since 112669 was 112669, checked in by l.oiseau2nuit@…, 2 years ago

travaux pas sans conséquences à venir sur le /trunk donc on isole la branche presque stable (1/2)

File size: 1.0 KB
Line 
1<?php
2/* Plugin timecircles (SPIP 3.1+)
3 * (c) 2009-2018 Wim Barelds
4 * packaged for SPIP by Loiseau2nuit
5 *
6 * Add beautiful jquery powered timers to your
7 * website with simple short models
8 *
9 * Licence: MIT
10 * https://opensource.org/licenses/mit-license.php
11 */
12if (!defined('_ECRIRE_INC_VERSION')) return;
13
14/**
15 * load timecircles' css
16 **/
17function timecircles_insert_head_css($flux){
18        $flux .= '<link rel="stylesheet" type="text/css" media="all" href="'.find_in_path('css/timecircles.css').'" />';
19        return $flux;
20}
21
22/**
23 * load timecircles' js in the admin area
24 **/
25function timecircles_header_prive($flux){
26        $flux = timecircles_insert_head_css($flux);
27        $flux = timecircles_insert_head($flux);
28        return $flux;
29} 
30
31/**
32 * load timecircles' js on the website
33 **/
34function timecircles_insert_head($flux){
35        $flux .= '<script src="'.generer_url_public('lib/timecircles.js').'" type="text/javascript"></script>'
36        . '<script src="'.find_in_path('js/timecircles.js').'" type="text/javascript"></script>';
37        return $flux;
38}
Note: See TracBrowser for help on using the repository browser.