Changeset 10225 in spip-zone
- Timestamp:
- Mar 7, 2007, 3:27:37 PM (14 years ago)
- Location:
- _plugins_/_test_/barre_typo_extensible/1_9_2
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_test_/barre_typo_extensible/1_9_2/editeur/table.js
r9836 r10225 91 91 texte += " title='Insérer une ligne au-dessus' "; 92 92 texte += " alt='Insérer une ligne au-dessus' "; 93 texte += "src=' inserer_ligne.gif' value=''></a>\n";93 texte += "src='"+tableau_edit_images_path+"inserer_ligne.gif' value=''></a>\n"; 94 94 return texte; 95 95 } … … 103 103 texte += " title='Supprimer cette ligne' "; 104 104 texte += " alt='Supprimer cette ligne' "; 105 texte += "src=' supprimer_ligne.png' value='ligne' /></a>\n";105 texte += "src='"+tableau_edit_images_path+"supprimer_ligne.png' value='ligne' /></a>\n"; 106 106 return texte; 107 107 } … … 114 114 texte+=" title='Insérer une colonne avant' "; 115 115 texte+=" alt='Insérer une colonne avant' "; 116 texte+="src=' inserer_colonne.gif' value='colonne'></a>\n";116 texte+="src='"+tableau_edit_images_path+"inserer_colonne.gif' value='colonne'></a>\n"; 117 117 return texte; 118 118 } … … 125 125 texte+=" title='Supprimer cette colonne'"; 126 126 texte+=" alt='Supprimer cette colonne'"; 127 texte+=" src=' supprimer_ligne.png' value='colonne' /></a>\n";127 texte+=" src='"+tableau_edit_images_path+"supprimer_ligne.png' value='colonne' /></a>\n"; 128 128 return texte; 129 129 } -
_plugins_/_test_/barre_typo_extensible/1_9_2/inc/barre.php
r9995 r10225 12 12 13 13 if (!defined("_ECRIRE_INC_VERSION")) return; 14 if (!defined('_DIR_PLUGIN_BARRETYPOENRICHIE')){15 $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));16 define('_DIR_PLUGIN_BARRETYPOENRICHIE',(_DIR_PLUGINS.end($p)));17 }18 14 19 15 include_spip('inc/vieilles_defs'); … … 67 63 } 68 64 69 //gestion des lignes optionnelles70 71 //creation de tableau72 function afficher_gestion_tableau($champ) {73 74 $tableau_formulaire = '<table class="spip_barre" style="width: auto; padding: 1px!important; border-top: 0px;" summary="">75 <tr><td>76 '._T('bartypenr:barre_gestion_colonne').': <input type="text" name="barre_nbcolones" style="width: 30px;" value="2" size="2" maxlength="2" /></td><td>77 '._T('bartypenr:barre_gestion_ligne').': <input type="text" name="barre_nbrangs" style="width: 30px;" value="2" size="2" maxlength="2" /></td><td>78 <input type="checkbox" name="barre_doentete" value="-1" checked="checked" /> '._T('bartypenr:barre_gestion_entete')79 .'</td><td>80 <input type="checkbox" name="barre_docaption" value="-1" checked="checked" /> '._T('bartypenr:barre_gestion_caption')81 .'</td><td>82 <input type="button" value="OK" class="fondo" onclick="javascript:83 barre_nbcolones.value = Math.abs(barre_nbcolones.value); barre_nbrangs.value84 = Math.abs(barre_nbrangs.value);85 if (!(barre_nbcolones.value == 0 || barre_nbrangs.value == 0)) {86 barre_tableau('.$champ.', barre_nbcolones.value, barre_nbrangs.value,87 barre_doentete.checked, barre_docaption.checked); } " />88 </td></tr></table>89 ';90 return produceWharf($champ,'tableau_gestion','',$tableau_formulaire);91 }92 65 93 66 // construction des liens … … 110 83 // Changer la casse 111 84 function RaccourcisMajusculesMinuscules($champ, $champhelp) { 112 return bouton_barre_racc ("barre_2Majuscules($champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/text_uppercase.png', _T('bartypenr:barre_gestion_cr_changercassemajuscules'), $champhelp) .' '113 . bouton_barre_racc ("barre_2Minuscules($champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/text_lowercase.png', _T('bartypenr:barre_gestion_cr_changercasseminuscules'), $champhelp);85 return bouton_barre_racc ("barre_2Majuscules($champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/text_uppercase.png', _T('bartypenr:barre_gestion_cr_changercassemajuscules'), $champhelp) .' ' 86 . bouton_barre_racc ("barre_2Minuscules($champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/text_lowercase.png', _T('bartypenr:barre_gestion_cr_changercasseminuscules'), $champhelp); 114 87 } 115 88 … … 201 174 $reta .= bouton_barre_racc ("barre_inserer('À',$champ)", _DIR_IMG_ICONES_BARRE."agrave-maj.png", _T('barre_a_accent_grave'), $champhelp); 202 175 $reta .= bouton_barre_racc ("barre_inserer('É',$champ)", _DIR_IMG_ICONES_BARRE."eacute-maj.png", _T('barre_e_accent_aigu'), $champhelp); 203 $reta .= bouton_barre_racc ("barre_inserer('È',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/eagrave-maj.png', _T('bartypenr:barre_e_accent_grave'), $champhelp);204 $reta .= bouton_barre_racc ("barre_inserer('æ',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/aelig.png', _T('bartypenr:barre_ea'), $champhelp);205 $reta .= bouton_barre_racc ("barre_inserer('Æ',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/aelig-maj.png', _T('bartypenr:barre_ea_maj'), $champhelp);176 $reta .= bouton_barre_racc ("barre_inserer('È',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/eagrave-maj.png', _T('bartypenr:barre_e_accent_grave'), $champhelp); 177 $reta .= bouton_barre_racc ("barre_inserer('æ',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/aelig.png', _T('bartypenr:barre_ea'), $champhelp); 178 $reta .= bouton_barre_racc ("barre_inserer('Æ',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/aelig-maj.png', _T('bartypenr:barre_ea_maj'), $champhelp); 206 179 207 180 if ($spip_lang == "fr") { 208 181 $reta .= bouton_barre_racc ("barre_inserer('œ',$champ)", _DIR_IMG_ICONES_BARRE."oelig.png", _T('barre_eo'), $champhelp); 209 182 $reta .= bouton_barre_racc ("barre_inserer('Œ',$champ)", _DIR_IMG_ICONES_BARRE."oelig-maj.png", _T('barre_eo_maj'), $champhelp); 210 $reta .= bouton_barre_racc ("barre_inserer('Ç',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/ccedil-maj.png', _T('bartypenr:barre_c_cedille_maj'), $champhelp);183 $reta .= bouton_barre_racc ("barre_inserer('Ç',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/ccedil-maj.png', _T('bartypenr:barre_c_cedille_maj'), $champhelp); 211 184 } 212 185 } … … 234 207 235 208 $reta = ''; 236 $reta .= bouton_barre_racc ("barre_raccourci('[*','*]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/miseenevidence.png', _T('bartypenr:barre_miseenevidence'), $champhelp);237 $reta .= bouton_barre_racc ("barre_raccourci('<sup>','</sup>',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/exposant.png', _T('bartypenr:barre_exposant'), $champhelp);238 $reta .= bouton_barre_racc ("barre_raccourci('<sc>','</sc>',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/petitescapitales.png', _T('bartypenr:barre_petitescapitales'), $champhelp);239 $reta .= bouton_barre_racc ("barre_raccourci('\n\n{2{','}2}\n\n',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/intertitre2.png', _T('bartypenr:barre_intertitre2'), $champhelp);240 $reta .= bouton_barre_racc ("barre_raccourci('\n\n{3{','}3}\n\n',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/intertitre3.png', _T('bartypenr:barre_intertitre3'), $champhelp);241 $reta .= bouton_barre_racc ("barre_raccourci('[|','|]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/center.png', _T('bartypenr:barre_centrer'), $champhelp);242 $reta .= bouton_barre_racc ("barre_raccourci('[/','/]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/right.png', _T('bartypenr:barre_alignerdroite'), $champhelp);243 $reta .= bouton_barre_racc ("barre_raccourci('[(',')]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/cadretexte.png', _T('bartypenr:barre_encadrer'), $champhelp);209 $reta .= bouton_barre_racc ("barre_raccourci('[*','*]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/miseenevidence.png', _T('bartypenr:barre_miseenevidence'), $champhelp); 210 $reta .= bouton_barre_racc ("barre_raccourci('<sup>','</sup>',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/exposant.png', _T('bartypenr:barre_exposant'), $champhelp); 211 $reta .= bouton_barre_racc ("barre_raccourci('<sc>','</sc>',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/petitescapitales.png', _T('bartypenr:barre_petitescapitales'), $champhelp); 212 $reta .= bouton_barre_racc ("barre_raccourci('\n\n{2{','}2}\n\n',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/intertitre2.png', _T('bartypenr:barre_intertitre2'), $champhelp); 213 $reta .= bouton_barre_racc ("barre_raccourci('\n\n{3{','}3}\n\n',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/intertitre3.png', _T('bartypenr:barre_intertitre3'), $champhelp); 214 $reta .= bouton_barre_racc ("barre_raccourci('[|','|]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/center.png', _T('bartypenr:barre_centrer'), $champhelp); 215 $reta .= bouton_barre_racc ("barre_raccourci('[/','/]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/right.png', _T('bartypenr:barre_alignerdroite'), $champhelp); 216 $reta .= bouton_barre_racc ("barre_raccourci('[(',')]',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/cadretexte.png', _T('bartypenr:barre_encadrer'), $champhelp); 244 217 $reta .= bouton_barre_racc ("barre_raccourci('<poesie>','</poesie>',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE."/img_pack/icones_barre/poesie.png", _T('bartypenr:barre_poesie'), $champhelp); 245 218 //////////////////////////// … … 288 261 $toolbox .= afficher_boutonsavances($champ, $champhelp); 289 262 $toolbox .= afficher_caracteres($champ, $spip_lang, $champhelp); 290 //$toolbox .= afficher_gestion_tableau($champ);291 263 $toolbox .= afficher_gestion_lien($champ); 292 264 $toolbox .= afficher_gestion_ancre($champ); … … 387 359 } 388 360 if ($options == "avancees") { 389 $ret .= bouton_barre_racc ("barre_raccourci('[?',']',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/barre-wiki.png', _T('bartypenr:barre_glossaire'), $champhelp);361 $ret .= bouton_barre_racc ("barre_raccourci('[?',']',$champ)", _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/barre-wiki.png', _T('bartypenr:barre_glossaire'), $champhelp); 390 362 391 363 392 364 //gestion des tableaux 393 $ret .= bouton_barre_racc("barre_tableau($champ, '"._DIR_ PLUGIN_BARRETYPOENRICHIE."')",394 _DIR_PLUGIN_BARRETYPOENRICHIE.' /img_pack/icones_barre/barre-tableau.png', _T('bartypenr:barre_tableau'),365 $ret .= bouton_barre_racc("barre_tableau($champ, '"._DIR_RESTREINT."')", 366 _DIR_PLUGIN_BARRETYPOENRICHIE.'img_pack/icones_barre/barre-tableau.png', _T('bartypenr:barre_tableau'), 395 367 $champhelp); 396 368 -
_plugins_/_test_/barre_typo_extensible/1_9_2/js/spip_barre.js
r9839 r10225 329 329 largeur=700; 330 330 propriete='scrollbars=yes,resizable=yes,width='+largeur+',height='+hauteur; 331 w=window.open(cheminediteur+' /editeur/table.html', '',propriete);331 w=window.open(cheminediteur+'?exec=tableau_edit', '',propriete); 332 332 } -
_plugins_/_test_/barre_typo_extensible/1_9_2/typo_enrichie.php
r9947 r10225 60 60 global $debut_intertitre_4, $fin_intertitre_4; 61 61 global $debut_intertitre_5, $fin_intertitre_5; 62 63 /////////////////////////// 64 //MODIFICATION 65 ////////////////////////// 62 66 63 $chercher_raccourcis=array(); 67 64 $remplacer_raccourcis=array(); … … 85 82 /* 9b */ $chercher_raccourcis[]="/(^|[^{])\{5\{/S"; 86 83 /* 10b */ $chercher_raccourcis[]="/\}5\}($|[^}])/S"; 87 /* 11 */ $chercher_raccourcis[]="/\{( §|§)\{/S"; # § Pour gerer l'unicode aussi !88 /* 12 */ $chercher_raccourcis[]="/\}( §|§)\}/S";84 /* 11 */ $chercher_raccourcis[]="/\{(�|§)\{/S"; # § Pour gerer l'unicode aussi ! 85 /* 12 */ $chercher_raccourcis[]="/\}(�|§)\}/S"; 89 86 /* 13 */ $chercher_raccourcis[]="/<-->/S"; 90 87 /* 14 */ $chercher_raccourcis[]="/-->/S"; … … 99 96 /* 23 */ $chercher_raccourcis[]="/\[([^|?][^][]*)\|((?:[^][](?!->))*)\]/S"; 100 97 101 /* 1 */ $remplacer_raccourcis[]="/$1\n\n$debut_intertitre";102 /* 2 */$remplacer_raccourcis[]="$fin_intertitre\n\n\$1";103 /* 3 */ $remplacer_raccourcis[]="/$1\n\n$debut_intertitre";104 /* 4 */$remplacer_raccourcis[]="$fin_intertitre\n\n\$1";105 /* 5 */ $remplacer_raccourcis[]="/$1\n\n$debut_intertitre_2";106 /* 6 */$remplacer_raccourcis[]="$fin_intertitre_2\n\n\$1";107 /* 7 */ $remplacer_raccourcis[]="/$1\n\n$debut_intertitre_3";108 /* 8 */$remplacer_raccourcis[]="$fin_intertitre_3\n\n\$1";109 /* 9 */ $remplacer_raccourcis[]="/$1\n\n$debut_intertitre_4";110 /* 10 */ 111 /* 9b */ $remplacer_raccourcis[]="/$1\n\n$debut_intertitre_5";112 /* 10b */ 113 /* 11 */ 114 /* 12 */ 115 /* 13 */ 116 /* 14 */ 117 /* 15 */ 118 /* 16 */ 119 /* 17 */ 120 /* 18 */ 121 /* 19 */ 122 /* 20 */ 123 /* 21 */ 124 /* 22 */ 98 /* 1 */ $remplacer_raccourcis[]="\$1\n\n$debut_intertitre"; 99 /* 2 */ $remplacer_raccourcis[]="$fin_intertitre\n\n\$1"; 100 /* 3 */ $remplacer_raccourcis[]="\$1\n\n$debut_intertitre"; 101 /* 4 */ $remplacer_raccourcis[]="$fin_intertitre\n\n\$1"; 102 /* 5 */ $remplacer_raccourcis[]="\$1\n\n$debut_intertitre_2"; 103 /* 6 */ $remplacer_raccourcis[]="$fin_intertitre_2\n\n\$1"; 104 /* 7 */ $remplacer_raccourcis[]="\$1\n\n$debut_intertitre_3"; 105 /* 8 */ $remplacer_raccourcis[]="$fin_intertitre_3\n\n\$1"; 106 /* 9 */ $remplacer_raccourcis[]="\$1\n\n$debut_intertitre_4"; 107 /* 10 */ $remplacer_raccourcis[]="$fin_intertitre_4\n\n\$1"; 108 /* 9b */ $remplacer_raccourcis[]="\$1\n\n$debut_intertitre_5"; 109 /* 10b */ $remplacer_raccourcis[]="$fin_intertitre_5\n\n\$1"; 110 /* 11 */ $remplacer_raccourcis[]="<span style=\"font-variant: small-caps\">"; 111 /* 12 */ $remplacer_raccourcis[]="</span>"; 112 /* 13 */ $remplacer_raccourcis[]="↔"; 113 /* 14 */ $remplacer_raccourcis[]="→"; 114 /* 15 */ $remplacer_raccourcis[]="←"; 115 /* 16 */ $remplacer_raccourcis[]="⇔"; 116 /* 17 */ $remplacer_raccourcis[]="⇒"; 117 /* 18 */ $remplacer_raccourcis[]="⇐"; 118 /* 19 */ $remplacer_raccourcis[]="©"; 119 /* 20 */ $remplacer_raccourcis[]="®"; 120 /* 21 */ $remplacer_raccourcis[]="™"; 121 /* 22 */ $remplacer_raccourcis[]="…"; 125 122 /* 23 */ $remplacer_raccourcis[]="@@acro@@$2@@$1@@acro@@"; 126 123 … … 265 262 266 263 function BarreTypoEnrichie_header_prive($texte) { 267 $ p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));268 $texte .= '<link rel="stylesheet" type="text/css" href="' . (_DIR_PLUGINS.end($p)) . '/css/bartypenr.css" />' . "\n";264 $texte.= '<link rel="stylesheet" type="text/css" href="' . _DIR_PLUGIN_BARRETYPOENRICHIE. 'css/bartypenr.css" />' . "\n"; 265 $texte .= '<script type="text/javascript" src="'. _DIR_PLUGIN_BARRETYPOENRICHIE.'js/spip_barre.js'.'"></script>'; 269 266 return $texte; 270 267 } -
_plugins_/_test_/barre_typo_extensible/1_9_2/typo_options.php
r9997 r10225 5 5 $GLOBALS['spip_pipeline']['BarreTypoEnrichie_avancees']=''; 6 6 $GLOBALS['spip_pipeline']['BarreTypoEnrichie_ecrire']=''; 7 $GLOBALS['barre_typo_pas_de_fausses_puces']=true; 7 8 ?>
Note: See TracChangeset
for help on using the changeset viewer.