Changeset 47922 in spip-zone for _plugins_/faq/faq_pipelines.php


Ignore:
Timestamp:
May 19, 2011, 9:45:45 AM (10 years ago)
Author:
cedric@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/faq/faq_pipelines.php

    r47919 r47922  
    11<?php
    22
    3 function faq_head(){
     3function faq_css(){
    44        $css ="";
    5         $css .= '<script src="'.find_in_path('faq.js').'" type="text/javascript"></script>';
    65        $css .= '<link rel="stylesheet" href="'.find_in_path('faq.css').'" type="text/css" media="all" />';
    76        return $css;
     
    109function faq_insert_head($flux) {
    1110        if (intval($GLOBALS['spip_version_branche'])<3){
    12                 $flux .= faq_head();
     11                $flux .= faq_css();
    1312        }
     13        $flux .= '<script src="'.find_in_path('faq.js').'" type="text/javascript"></script>';
    1414        return $flux;
    1515}
     
    1717function faq_insert_head_css($flux) {
    1818        if (intval($GLOBALS['spip_version_branche'])>=3){
    19                 $flux .= faq_head();
     19                $flux .= faq_css();
    2020        }
    2121        return $flux;
Note: See TracChangeset for help on using the changeset viewer.