Changeset 96263 in spip-zone
- Timestamp:
- Mar 28, 2016, 3:22:58 PM (5 years ago)
- 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 37 37 } 38 38 39 @media screen and (min-width: # EVAL{_RESPONSIVENAV_BREAKPOINT}) {39 @media screen and (min-width: #CONFIG{responsivenav/breakpoint,40em}) { 40 40 .js-responsivenav .nav-collapse { 41 41 position: relative; -
_plugins_/responsivenav/trunk/css/responsive-nav.spip.css.html
r96262 r96263 8 8 ] 9 9 10 @media screen and (min-width: # EVAL{_RESPONSIVENAV_BREAKPOINT}) {10 @media screen and (min-width: #CONFIG{responsivenav/breakpoint,40em}) { 11 11 .nav-collapse ul li.nav-item {display:inline;} /* Pour SPIP 3.1 dist */ 12 12 .nav-collapse ul.menu-items li.item {width:auto;} /* Pour ZDist V1 + V2 */ 13 13 } 14 14 15 @media screen and (max-width: # EVAL{_RESPONSIVENAV_BREAKPOINT}) {15 @media screen and (max-width: #CONFIG{responsivenav/breakpoint,40em}) { 16 16 a.nav-toggle {display:block;} 17 17 #nav ul li a {float:none;} /* Pour SPIP 3.0 dist */ … … 21 21 22 22 [(#EVAL{_RESPONSIVENAV_MENUBURGER}|=={true}|oui) 23 @media screen and (max-width: # EVAL{_RESPONSIVENAV_BREAKPOINT}) {23 @media screen and (max-width: #CONFIG{responsivenav/breakpoint,40em}) { 24 24 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;} 25 25 a.nav-toggle.active, a.nav-toggle.active:focus {background-position: bottom center !important;} -
_plugins_/responsivenav/trunk/lang/responsivenav_fr.php
r96168 r96263 6 6 $GLOBALS[$GLOBALS['idx_lang']] = array( 7 7 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' 10 18 11 19 ); -
_plugins_/responsivenav/trunk/paquet.xml
r96220 r96263 18 18 <licence>Creative Commons by-sa</licence> 19 19 20 <necessite nom="saisies" compatibilite="[2.4.0;]" /> 21 20 22 <pipeline nom="insert_head_css" inclure="responsivenav_pipelines.php" /> 21 23 <pipeline nom="insert_head" inclure="responsivenav_pipelines.php" /> -
_plugins_/responsivenav/trunk/responsivenav_fonctions.php
r96219 r96263 3 3 if (!defined('_ECRIRE_INC_VERSION')) return; 4 4 5 // On définit l es principales valeurs par défaut.5 // On définit la classe par défaut ajoutée par le plugin. 6 6 // Surchargeable dans squelettes/mes_fonctions.php 7 define('_RESPONSIVENAV_BREAKPOINT', '40em');8 define('_RESPONSIVENAV_SELECTOR', '#nav');9 define('_RESPONSIVENAV_LABEL', '☰ Menu');10 7 define('_RESPONSIVENAV_JSCLASS', 'js-responsivenav'); 11 8 -
_plugins_/responsivenav/trunk/responsivenav_pipelines.php
r96217 r96263 24 24 function responsivenav_insert_head($flux) { 25 25 $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','☰ Menu').'",insert: "'.lire_config('responsivenav/insert','before').'"' ; 27 27 if (defined('_RESPONSIVENAV_ANIMATE')) {$flux .= ',animate: '._RESPONSIVENAV_ANIMATE;} 28 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 29 if (defined('_RESPONSIVENAV_CUSTOMTOGGLE')) {$flux .= ',customToggle: "'._RESPONSIVENAV_CUSTOMTOGGLE.'"';} 32 30 if (defined('_RESPONSIVENAV_CLOSEONNAVCLICK')) {$flux .= ',closeOnNavClick: '._RESPONSIVENAV_CLOSEONNAVCLICK;}
Note: See TracChangeset
for help on using the changeset viewer.