source: spip-zone/tags/faq-1/faq_pipelines.php @ 57073

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

oups, il faut inserer le js dans insert_head, pas dans insert_head_css
deplacement/renomage/resizing de l'icone
version

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