Changeset 96263 in spip-zone


Ignore:
Timestamp:
Mar 28, 2016, 3:22:58 PM (3 years ago)
Author:
jeanmarie.listes@…
Message:

Ajout d'un formulaire de configuration depuis l'espace privé (merci b_b)

Location:
_plugins_/responsivenav/trunk
Files:
5 added
1 deleted
6 edited

Legend:

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

    r96168 r96263  
    3737}
    3838
    39 @media screen and (min-width: #EVAL{_RESPONSIVENAV_BREAKPOINT}) {
     39@media screen and (min-width: #CONFIG{responsivenav/breakpoint,40em}) {
    4040        .js-responsivenav .nav-collapse {
    4141                position: relative;
  • _plugins_/responsivenav/trunk/css/responsive-nav.spip.css.html

    r96262 r96263  
    88]
    99
    10 @media screen and (min-width: #EVAL{_RESPONSIVENAV_BREAKPOINT} ) {
     10@media screen and (min-width: #CONFIG{responsivenav/breakpoint,40em}) {
    1111        .nav-collapse ul li.nav-item {display:inline;} /* Pour SPIP 3.1 dist */
    1212        .nav-collapse ul.menu-items li.item {width:auto;} /* Pour ZDist V1 + V2 */
    1313}
    1414
    15 @media screen and (max-width: #EVAL{_RESPONSIVENAV_BREAKPOINT}) {
     15@media screen and (max-width: #CONFIG{responsivenav/breakpoint,40em}) {
    1616        a.nav-toggle {display:block;}
    1717        #nav ul li a {float:none;}  /* Pour SPIP 3.0 dist */
     
    2121
    2222[(#EVAL{_RESPONSIVENAV_MENUBURGER}|=={true}|oui)
    23 @media screen and (max-width: #EVAL{_RESPONSIVENAV_BREAKPOINT}) {
     23@media screen and (max-width: #CONFIG{responsivenav/breakpoint,40em}) {
    2424        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;}
    2525        a.nav-toggle.active, a.nav-toggle.active:focus {background-position: bottom center !important;}
  • _plugins_/responsivenav/trunk/lang/responsivenav_fr.php

    r96168 r96263  
    66$GLOBALS[$GLOBALS['idx_lang']] = array(
    77
    8         // R
    9         'responsivenav_titre' => 'Responsive Nav',
     8        'breakpoint' => 'Breakpoint',
     9        'breakpoint_explication' => 'Taille de la fenêtre pour déclencher le menu.',
     10        'insert' => 'Position du bouton',
     11        'insert_explication' => 'Position du bouton par rapport au menu.',
     12        'jsclass' => 'Classe JS',
     13        'label' => 'Label',
     14        'label_explication' => 'Texte du bouton.',
     15        'selector' => 'Sélecteur',
     16        'selector_explication' => 'Indiquer le sélecteur cible.',
     17        'titre_responsivenav' => 'Responsive Nav'
    1018
    1119);
  • _plugins_/responsivenav/trunk/paquet.xml

    r96220 r96263  
    1818        <licence>Creative Commons by-sa</licence>
    1919
     20        <necessite nom="saisies" compatibilite="[2.4.0;]" />
     21
    2022        <pipeline nom="insert_head_css" inclure="responsivenav_pipelines.php" />
    2123        <pipeline nom="insert_head" inclure="responsivenav_pipelines.php" />
  • _plugins_/responsivenav/trunk/responsivenav_fonctions.php

    r96219 r96263  
    33if (!defined('_ECRIRE_INC_VERSION')) return;
    44
    5 // On définit les principales valeurs par défaut.
     5// On définit la classe par défaut ajoutée par le plugin.
    66// Surchargeable dans squelettes/mes_fonctions.php
    7 define('_RESPONSIVENAV_BREAKPOINT', '40em');
    8 define('_RESPONSIVENAV_SELECTOR', '#nav');
    9 define('_RESPONSIVENAV_LABEL', '&#9776; Menu');
    107define('_RESPONSIVENAV_JSCLASS', 'js-responsivenav');
    118
  • _plugins_/responsivenav/trunk/responsivenav_pipelines.php

    r96217 r96263  
    2424function responsivenav_insert_head($flux) {
    2525        $flux .= '<script type="text/javascript" src="'.find_in_path('javascript/responsive-nav.js').'"></script>';
    26         $flux .= '<script>/*<![CDATA[*/ ;(function($){ $(function(){ var nav = responsiveNav("'. _RESPONSIVENAV_SELECTOR .'",{jsClass: "'. _RESPONSIVENAV_JSCLASS.'"' ;
     26        $flux .= '<script>/*<![CDATA[*/ ;(function($){ $(function(){ 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;}
    29         if (defined('_RESPONSIVENAV_LABEL')) {$flux .= ',label: "'._RESPONSIVENAV_LABEL.'"';}
    30         if (defined('_RESPONSIVENAV_INSERT')) {$flux .= ',insert: "'._RESPONSIVENAV_INSERT.'"';}
    3129        if (defined('_RESPONSIVENAV_CUSTOMTOGGLE')) {$flux .= ',customToggle: "'._RESPONSIVENAV_CUSTOMTOGGLE.'"';}
    3230        if (defined('_RESPONSIVENAV_CLOSEONNAVCLICK')) {$flux .= ',closeOnNavClick: '._RESPONSIVENAV_CLOSEONNAVCLICK;}
Note: See TracChangeset for help on using the changeset viewer.