Changeset 115442 in spip-zone


Ignore:
Timestamp:
May 20, 2019, 2:55:07 PM (3 months ago)
Author:
jeanmarie.listes@…
Message:

V0.1.11: Syntaxe compatible avec _JS_ASYNC_LOAD (cf https://gist.github.com/tech-nova/85ce2dd05e3596571369 )

Location:
_plugins_/responsivenav/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/responsivenav/trunk/paquet.xml

    r113106 r115442  
    22        prefix="responsivenav"
    33        categorie="navigation"
    4         version="0.1.10"
     4        version="0.1.11"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.2.*]"
  • _plugins_/responsivenav/trunk/responsivenav_pipelines.php

    r108698 r115442  
    2424function responsivenav_insert_head($flux) {
    2525        $flux .="\n".'<script type="text/javascript" src="'.find_in_path('javascript/responsive-nav.js').'"></script>';
    26         $flux .="\n".'<script>/*<![CDATA[*/ ;(function($){ $(function(){ if ($("'.lire_config('responsivenav/selector','#nav').'").length) { var nav = responsiveNav("'.lire_config('responsivenav/selector','#nav').'",{jsClass: "'._RESPONSIVENAV_JSCLASS.'",label: "'.lire_config('responsivenav/label','&#9776; Menu').'",insert: "'.lire_config('responsivenav/insert','before').'"' ;
     26        $flux .="\n".'<script>/*<![CDATA[*/ ;jQuery(function(){ $(function(){ if ($("'.lire_config('responsivenav/selector','#nav').'").length) { var nav = responsiveNav("'.lire_config('responsivenav/selector','#nav').'",{jsClass: "'._RESPONSIVENAV_JSCLASS.'",label: "'.lire_config('responsivenav/label','&#9776; Menu').'",insert: "'.lire_config('responsivenav/insert','before').'"' ;
    2727        if (defined('_RESPONSIVENAV_ANIMATE')) {$flux .= ',animate: '._RESPONSIVENAV_ANIMATE;}
    2828        if (defined('_RESPONSIVENAV_TRANSITION')) {$flux .= ',transition: '._RESPONSIVENAV_TRANSITION;}
     
    3232        if (defined('_RESPONSIVENAV_NAVCLASS')) {$flux .= ',navClass: "'._RESPONSIVENAV_NAVCLASS.'"';}
    3333        if (defined('_RESPONSIVENAV_NAVACTIVECLASS')) {$flux .= ',navActiveClass: "'._RESPONSIVENAV_NAVACTIVECLASS.'"';}
    34         $flux .= '}); } }); })(jQuery); /*]]>*/ </script>';
     34        $flux .= '}); } }); }); /*]]>*/ </script>';
    3535        return $flux;
    3636}
Note: See TracChangeset for help on using the changeset viewer.