source: spip-zone/_plugins_/faq/faq_pipelines.php @ 47919

Last change on this file since 47919 was 47919, checked in by cedric@…, 10 years ago

compat SPIP 3 : inserer dans insert_head_css pour passer avant les styles du site.

File size: 506 bytes
Line 
1<?php
2
3function faq_head(){
4        $css ="";
5        $css .= '<script src="'.find_in_path('faq.js').'" type="text/javascript"></script>';
6        $css .= '<link rel="stylesheet" href="'.find_in_path('faq.css').'" type="text/css" media="all" />';
7        return $css;
8}
9
10function faq_insert_head($flux) {
11        if (intval($GLOBALS['spip_version_branche'])<3){
12                $flux .= faq_head();
13        }
14        return $flux;
15}
16
17function faq_insert_head_css($flux) {
18        if (intval($GLOBALS['spip_version_branche'])>=3){
19                $flux .= faq_head();
20        }
21        return $flux;
22}
23
24?>
Note: See TracBrowser for help on using the repository browser.