Changeset 39424 in spip-zone


Ignore:
Timestamp:
Jul 21, 2010, 11:41:11 AM (10 years ago)
Author:
prigent.yohann@…
Message:

JS dans comments-one-thread.html au lieu du pipeline insert_head (Cédric)

Location:
_plugins_/comments/comments-200
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/comments/comments-200/comments-one-thread.html

    r39344 r39424  
    2828</div>
    2929</B_comments-list>
     30<script type="text/javascript" src="#CHEMIN{javascript/thread-move.js}">
     31</script>
     32<script type="text/javascript">
     33        var chaine = "<:repondre_message:>";
     34</script>
  • _plugins_/comments/comments-200/comments_pipelines.php

    r39373 r39424  
    159159
    160160}
    161 
    162 /**
    163  * Inserer le code javascript pour placer le formulaire de reponde ou il faut
    164  *
    165  * On inclut seulement si on est dans le mode one-thread
    166  *
    167  * @param <type> $flux
    168  * @return <type>
    169  */
    170 
    171 function comments_insert_head ($flux) {
    172         if (lire_config('comments/comments_fil') == 'one-thread') {
    173                 $flux .= '<script type="text/javascript" src="'.chemin('javascript/thread-move.js').'">var chaine = "'._T('public:repondre_message').'";</script>';
    174                 $flux .= '<script type="text/javascript">';
    175                 $flux .= 'var chaine = "'._T('public:repondre_message').'";';
    176                 $flux .= '</script>';
    177         }
    178         return $flux;
    179 }
    180161?>
  • _plugins_/comments/comments-200/plugin.xml

    r39358 r39424  
    2323        <inclure>comments_pipelines.php</inclure>
    2424</pipeline>
    25 <pipeline>
    26         <nom>insert_head</nom>
    27         <inclure>comments_pipelines.php</inclure>
    28 </pipeline>
    2925<necessite id="SPIP" version="[2.0.9;]" />
    3026<utilise id='Z' version="[;]" />
Note: See TracChangeset for help on using the changeset viewer.