source: spip-zone/_plugins_/actijour/branches/v210/actijour_pipe.php

Last change on this file was 52449, checked in by teddy.spip@…, 8 years ago
  • Report de la 2.1.1 dans la branche 2.0 (devenue inutile)
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1<?php
2/*
3+--------------------------------------------+
4| ACTIVITE DU JOUR v. 2.1 - 06/2011 - SPIP 2.1
5+--------------------------------------------+
6| H. AROUX . Scoty . koakidi.com
7| D. Chiche . pour la maj 2.0
8| T. Payet . pour la maj 2.1
9| Script certifie KOAK2.0 strict, mais si !
10+--------------------------------------------+
11| Declare pipeline
12+--------------------------------------------+
13*/
14
15$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
16define('_DIR_PLUGIN_ACTIJOUR',(_DIR_PLUGINS.end($p)));
17
18        # style + js
19        function actijour_header_prive($flux) {
20                $exec = _request('exec');
21                if(preg_match('@^(actijour_).*@i',$exec)) {
22                $flux .= '<link rel="stylesheet" type="text/css" href="'._DIR_PLUGIN_ACTIJOUR.'actijour_styles.css" />'."\n";
23                $flux .= '<script type="text/javascript" src="'._DIR_PLUGIN_ACTIJOUR.'func_js_acj.js"></script>'."\n";
24                }
25                return $flux;
26        }
27       
28
29        # repertoire icones ACTIJOUR
30        if (!defined("_DIR_IMG_ACJR")) {
31                define('_DIR_IMG_ACJR', _DIR_PLUGIN_ACTIJOUR.'/img_pack/');
32        }
33?>
Note: See TracBrowser for help on using the repository browser.