Changeset 84020 in spip-zone
- Timestamp:
- Aug 4, 2014, 9:07:15 PM (7 years ago)
- Location:
- _plugins_/switcher/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/switcher/trunk/head.php
r79916 r84020 3 3 if (!defined('_ECRIRE_INC_VERSION')) return; 4 4 5 function switcher_insert_head($flux){ 6 7 $flux .=' 5 function switcher_insert_head_css($flux){ 6 static $done = false; 7 if (!$done) { 8 $done = true; 9 $flux .=' 8 10 <style type="text/css" media="print"> 9 11 /* <![CDATA[ */ … … 12 14 </style> 13 15 '; 14 15 return $flux;16 16 } 17 18 ?> 17 return $flux; 18 } 19 function switcher_insert_head($flux){ 20 $flux .= switcher_insert_head_css($flux); // au cas ou il n'est pas implemente 21 return $flux; 22 } -
_plugins_/switcher/trunk/paquet.xml
r79916 r84020 2 2 prefix="switcher" 3 3 categorie="maintenance" 4 version="0.2. 3"4 version="0.2.4" 5 5 etat="test" 6 6 compatibilite="[1.9.0;3.0.*]" … … 14 14 15 15 <licence lien="http://www.gnu.org/licenses/gpl-3.0.html">GNU/GPL</licence> 16 <copyright>2006-201 3</copyright>16 <copyright>2006-2014</copyright> 17 17 18 18 <pipeline nom="affichage_final" inclure="switcher_fonctions.php" /> 19 19 <pipeline nom="insert_head" inclure="head.php" /> 20 <pipeline nom="insert_head_css" inclure="head.php" /> 20 21 21 22 <necessite nom="saisies" /> -
_plugins_/switcher/trunk/plugin.xml
r79916 r84020 4 4 <auteur>Philippe Drouot, adaptation en plugin de la contrib switcher de Fil</auteur> 5 5 <licence>© 2006, GNU/GPL</licence> 6 <version>0.2. 3</version>6 <version>0.2.4</version> 7 7 <etat>test</etat> 8 8 <icon>prive/themes/spip/images/switcher-64.png</icon> … … 35 35 <inclure>head.php</inclure> 36 36 </pipeline> 37 <pipeline> 38 <nom>insert_head_css</nom> 39 <inclure>head.php</inclure> 40 </pipeline> 37 41 <necessite id="SPIP" version="[1.9.0;3.0.99]" /> 38 42 <necessite id="saisies" /> -
_plugins_/switcher/trunk/switcher_fonctions.php
r79920 r84020 34 34 // Insertion du selecteur de squelettes 35 35 $code.='<div id="plugin_switcher" style="top: 0;left: 20px; position: absolute; background-color: transparent;z-index: 100;">'; 36 $code.='<form action=" " method="post">';36 $code.='<form action="#" method="post">'; 37 37 $code.='<fieldset style="margin:0;padding:0;border:0">'; 38 38 $code.='<select name="selecteurSkel" style="'.$styleListeSwitcher.'" onchange="gotof(this.options[this.selectedIndex].value)">'; 39 $code.='<option selected="selected"value="">Squelettes</option>';39 $code.='<option value="">Squelettes</option>'; 40 40 if (is_array($squelettes_alternatifs)) 41 41 foreach( $squelettes_alternatifs as $key => $value) { 42 42 $selected = ($key == $_COOKIE['spip_skel']) ? " selected='selected' " : ""; 43 $code.='<option value="'.parametre_url(self(),'var_skel',$key).'"'.$selected.'> - >'.$key.'</option>';43 $code.='<option value="'.parametre_url(self(),'var_skel',$key).'"'.$selected.'> -> '.$key.'</option>'; 44 44 } 45 45 $code.='</select>';
Note: See TracChangeset
for help on using the changeset viewer.