Changeset 47922 in spip-zone


Ignore:
Timestamp:
May 19, 2011, 9:45:45 AM (8 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

Location:
_plugins_/faq
Files:
4 added
2 edited
1 moved

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;
  • _plugins_/faq/plugin.xml

    r47919 r47922  
    11<plugin>
    2         <icon>icon.png</icon>
     2        <icon>themes/spip/images/faq-32.png</icon>
    33        <nom>D&eacute;finitions et FAQ</nom>
    44        <auteur>[romy.tetue.net->http://romy.tetue.net] - 2009</auteur>
    55        <licence>GPL</licence>
    6         <version>1.0</version>
     6        <version>1.0.1</version>
    77        <etat>stable</etat>
    88        <necessite id="SPIP" version="[2.0;3.1.0)" />
Note: See TracChangeset for help on using the changeset viewer.