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

Last change on this file since 52416 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
RevLine 
[32050]1<?php
2
[47922]3function faq_css(){
[47919]4        $css ="";
5        $css .= '<link rel="stylesheet" href="'.find_in_path('faq.css').'" type="text/css" media="all" />';
6        return $css;
7}
8
[32050]9function faq_insert_head($flux) {
[47919]10        if (intval($GLOBALS['spip_version_branche'])<3){
[47922]11                $flux .= faq_css();
[47919]12        }
[47922]13        $flux .= '<script src="'.find_in_path('faq.js').'" type="text/javascript"></script>';
[32050]14        return $flux;
15}
16
[47919]17function faq_insert_head_css($flux) {
18        if (intval($GLOBALS['spip_version_branche'])>=3){
[47922]19                $flux .= faq_css();
[47919]20        }
21        return $flux;
22}
23
[32050]24?>
Note: See TracBrowser for help on using the repository browser.