Changeset 96217 in spip-zone


Ignore:
Timestamp:
Mar 27, 2016, 10:02:23 AM (5 years ago)
Author:
jeanmarie.listes@…
Message:
  • possibilité de surcharger les variables de config prévues par le script
  • possibilité d'activer l'affichage du menu sous la forme d'un menu burger > non activé par défaut pour être accessible (b_b)
  • lien vers la doc (en cours)
Location:
_plugins_/responsivenav/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/responsivenav/trunk/css/responsive-nav.spip.css.html

    r96168 r96217  
     1a.nav-toggle {display:block;text-align:center;font-size:1.2em;}
    12#nav {border-top:0;}
    23#nav ul li {text-align:center;}
     
    1314        .nav-collapse ul li.nav-item {display:inline;}
    1415}
     16
     17[(#EVAL{_RESPONSIVENAV_MENUBURGER}|=={true}|oui)
    1518@media screen and (max-width: #EVAL{_RESPONSIVENAV_BREAKPOINT}) {
    16         a.nav-toggle:link, a.nav-toggle:focus {display:block;height:30px;color:transparent  !important;text-align:center;color:transparent;background:url('#CHEMIN{images/menu-burger.png}') transparent top center no-repeat !important;background-size:30px 60px  !important;}
     19        a.nav-toggle:link, a.nav-toggle:focus {height:30px;color:transparent  !important;text-align:center;color:transparent;background:url('#CHEMIN{images/menu-burger.png}') transparent top center no-repeat !important;background-size:30px 60px  !important;}
    1720        a.nav-toggle.active, a.nav-toggle.active:focus {background-position: bottom center !important;}
    1821}
     22]
  • _plugins_/responsivenav/trunk/paquet.xml

    r96168 r96217  
    66        compatibilite="[3.0.0;3.1.*]"
    77        logo="prive/themes/spip/images/responsivenav-64.png"
    8         documentation=""
     8        documentation="https://contrib.spip.net/4782"
    99>
    1010
    1111        <nom>Responsive Nav</nom>
    12         <!-- Un menu responsive simple -->
     12        <!-- Un menu responsive dans vos squelettes -->
    1313
    1414        <auteur>jeanmarie</auteur>
  • _plugins_/responsivenav/trunk/responsivenav_fonctions.php

    r96207 r96217  
    55// On définit le point de rupture et le selecteur par défaut.
    66// Surchargeable dans squelettes/mes_fonctions.php
     7// http://responsive-nav.com
    78define('_RESPONSIVENAV_BREAKPOINT', '40em');
    89define('_RESPONSIVENAV_SELECTOR', '#nav');
     10define('_RESPONSIVENAV_LABEL', '&#9776; Menu');
    911define('_RESPONSIVENAV_JSCLASS', 'js-responsivenav');
    1012
  • _plugins_/responsivenav/trunk/responsivenav_pipelines.php

    r96207 r96217  
    1313 */
    1414
    15 if (!defined('_ECRIRE_INC_VERSION')) return;
    16 
    1715 
    1816// on insert la feuille de styles
     
    2321}
    2422
    25 // on insert le script
     23// on insert le script et on l'appelle
    2624function responsivenav_insert_head($flux) {
    2725        $flux .= '<script type="text/javascript" src="'.find_in_path('javascript/responsive-nav.js').'"></script>';
    28         $flux .= '<script>/*<![CDATA[*/ ;(function($){ $(function(){ var nav = responsiveNav("'. _RESPONSIVENAV_SELECTOR .'",{jsClass: "'. _RESPONSIVENAV_JSCLASS .'"}); }); })(jQuery); /*]]>*/ </script>';
     26        $flux .= '<script>/*<![CDATA[*/ ;(function($){ $(function(){ var nav = responsiveNav("'. _RESPONSIVENAV_SELECTOR .'",{jsClass: "'. _RESPONSIVENAV_JSCLASS.'"' ;
     27        if (defined('_RESPONSIVENAV_ANIMATE')) {$flux .= ',animate: '._RESPONSIVENAV_ANIMATE;}
     28        if (defined('_RESPONSIVENAV_TRANSITION')) {$flux .= ',transition: '._RESPONSIVENAV_TRANSITION;}
     29        if (defined('_RESPONSIVENAV_LABEL')) {$flux .= ',label: "'._RESPONSIVENAV_LABEL.'"';}
     30        if (defined('_RESPONSIVENAV_INSERT')) {$flux .= ',insert: "'._RESPONSIVENAV_INSERT.'"';}
     31        if (defined('_RESPONSIVENAV_CUSTOMTOGGLE')) {$flux .= ',customToggle: "'._RESPONSIVENAV_CUSTOMTOGGLE.'"';}
     32        if (defined('_RESPONSIVENAV_CLOSEONNAVCLICK')) {$flux .= ',closeOnNavClick: '._RESPONSIVENAV_CLOSEONNAVCLICK;}
     33        if (defined('_RESPONSIVENAV_OPENPOS')) {$flux .= ',openPos: "'._RESPONSIVENAV_OPENPOS.'"';}
     34        if (defined('_RESPONSIVENAV_NAVCLASS')) {$flux .= ',navClass: "'._RESPONSIVENAV_NAVCLASS.'"';}
     35        if (defined('_RESPONSIVENAV_NAVACTIVECLASS')) {$flux .= ',navActiveClass: "'._RESPONSIVENAV_NAVACTIVECLASS.'"';}
     36        $flux .= '}); }); })(jQuery); /*]]>*/ </script>';
    2937        return $flux;
    3038}
    31 
    3239?>
  • _plugins_/responsivenav/trunk/todo.txt

    r96207 r96217  
    1 - pouvoir changer toutes les variables de config prévues par le script
     1- faire la doc
    22- paramétrer les variables de config depuis l'espace privé
Note: See TracChangeset for help on using the changeset viewer.