Skip to content
Extraits de code Groupes Projets
Valider 770eb03f rédigé par ARNO*'s avatar ARNO*
Parcourir les fichiers

Barre de raccourcis: deplacements vers public. Plus icone "Aide"

parent b3608fd5
Branches
Étiquettes
Aucune requête de fusion associée trouvée
Affichage de
avec 30 ajouts et 21 suppressions
...@@ -45,6 +45,18 @@ IMG/icones/xcf-dist.png -text ...@@ -45,6 +45,18 @@ IMG/icones/xcf-dist.png -text
IMG/icones/xls-dist.png -text IMG/icones/xls-dist.png -text
IMG/icones/xml-dist.png -text IMG/icones/xml-dist.png -text
IMG/icones/zip-dist.png -text IMG/icones/zip-dist.png -text
IMG/icones_barre/barre-a-grave.png -text
IMG/icones_barre/barre-bold.png -text
IMG/icones_barre/barre-e-aigu.png -text
IMG/icones_barre/barre-euro.png -text
IMG/icones_barre/barre-guillemets.png -text
IMG/icones_barre/barre-intertitre.png -text
IMG/icones_barre/barre-italic.png -text
IMG/icones_barre/barre-lien.png -text
IMG/icones_barre/barre-note.png -text
IMG/icones_barre/barre-oe-maj.png -text
IMG/icones_barre/barre-oe.png -text
IMG/icones_barre/barre-quote.png -text
IMG/test.gif -text IMG/test.gif -text
IMG/test.jpg -text IMG/test.jpg -text
IMG/test.png -text IMG/test.png -text
...@@ -61,24 +73,11 @@ ecrire/img_pack/aide_rtl.gif -text ...@@ -61,24 +73,11 @@ ecrire/img_pack/aide_rtl.gif -text
ecrire/img_pack/article-24.gif -text ecrire/img_pack/article-24.gif -text
ecrire/img_pack/asuivre-24.gif -text ecrire/img_pack/asuivre-24.gif -text
ecrire/img_pack/asuivre-48.gif -text ecrire/img_pack/asuivre-48.gif -text
ecrire/img_pack/barre-a-grave.png -text
ecrire/img_pack/barre-blanc.gif -text ecrire/img_pack/barre-blanc.gif -text
ecrire/img_pack/barre-bold.png -text
ecrire/img_pack/barre-couleurs.gif -text ecrire/img_pack/barre-couleurs.gif -text
ecrire/img_pack/barre-d.gif -text ecrire/img_pack/barre-d.gif -text
ecrire/img_pack/barre-e-aigu.png -text
ecrire/img_pack/barre-euro.png -text
ecrire/img_pack/barre-g.gif -text ecrire/img_pack/barre-g.gif -text
ecrire/img_pack/barre-guillemets.png -text
ecrire/img_pack/barre-intertitre.png -text
ecrire/img_pack/barre-italic.png -text
ecrire/img_pack/barre-lien.png -text
ecrire/img_pack/barre-noir.gif -text ecrire/img_pack/barre-noir.gif -text
ecrire/img_pack/barre-note.png -text
ecrire/img_pack/barre-oe-maj.png -text
ecrire/img_pack/barre-oe.png -text
ecrire/img_pack/barre-quote.png -text
ecrire/img_pack/barre-wikipedia.png -text
ecrire/img_pack/base-24.gif -text ecrire/img_pack/base-24.gif -text
ecrire/img_pack/breve-24.gif -text ecrire/img_pack/breve-24.gif -text
ecrire/img_pack/cache-24.gif -text ecrire/img_pack/cache-24.gif -text
......
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
Fichier déplacé
ecrire/img_pack/barre-wikipedia.png

634 octets

...@@ -31,7 +31,7 @@ function afficher_script_barre(){ ...@@ -31,7 +31,7 @@ function afficher_script_barre(){
if ($flag_script_deja_affiche != 1) { if ($flag_script_deja_affiche != 1) {
$flag_script_deja_affiche = 1; $flag_script_deja_affiche = 1;
$ret = '<script type="text/javascript" src="'.($flag_ecrire ? "" : "ecrire/").'spip_barre.js">'; $ret = '<script type="text/javascript" src="'.($flag_ecrire ? "../" : "").'spip_barre.js">';
$ret .= "</script>\n"; $ret .= "</script>\n";
return $ret; return $ret;
} }
...@@ -40,8 +40,8 @@ function afficher_script_barre(){ ...@@ -40,8 +40,8 @@ function afficher_script_barre(){
function bouton_barre_racc($action, $img, $help, $formulaire, $texte) { function bouton_barre_racc($action, $img, $help, $formulaire, $texte) {
global $flag_ecrire; global $flag_ecrire;
$champ = "document.$formulaire.$texte"; $champ = "document.$formulaire.$texte";
$champhelp = "document.$formulaire.helpbox"; $champhelp = "document.$formulaire.helpbox$texte";
return "<a href=\"".$action."\" onMouseOver=\"helpline('$help')\"><img src='".($flag_ecrire ? "" : "ecrire/")."img_pack/".$img."' border='0' height='16' title='$help'></a>"; return "<a href=\"".$action."\" onMouseOver=\"helpline('$help',$champhelp)\"><img src='".($flag_ecrire ? "../" : "")."IMG/icones_barre/".$img."' border='0' height='16' title='$help' align='middle'></a>";
} }
function afficher_barre($formulaire='',$texte='', $forum=false) { function afficher_barre($formulaire='',$texte='', $forum=false) {
...@@ -50,9 +50,10 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { ...@@ -50,9 +50,10 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
if (test_barre()) { if (test_barre()) {
$ret = afficher_script_barre(); $ret = afficher_script_barre();
$champ = "document.$formulaire.$texte"; $champ = "document.$formulaire.$texte";
$ret .= "<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; $ret .= "<table cellpadding='0' style='padding-top:2px;' cellspacing='0' border='0' width='100%'>";
$ret .= "<tr width='100%'>"; $ret .= "<tr width='100%'>";
$ret .= "<td align='left'>"; $ret .= "<td align='left'>";
$col++;
$ret .= bouton_barre_racc ("javascript:barre_raccourci('{{','}}',$champ)", "barre-bold.png", "Mettre en {{gras}}", $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_raccourci('{{','}}',$champ)", "barre-bold.png", "Mettre en {{gras}}", $formulaire, $texte);
$ret .= bouton_barre_racc ("javascript:barre_raccourci('{','}',$champ)", "barre-italic.png", "Mettre en {italique}", $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_raccourci('{','}',$champ)", "barre-italic.png", "Mettre en {italique}", $formulaire, $texte);
if (!$forum) { if (!$forum) {
...@@ -70,7 +71,8 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { ...@@ -70,7 +71,8 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
} }
$ret .= "</td>"; $ret .= "</td>";
$ret .= "<td align='right'>"; $ret .= "<td align='center'>";
$col++;
if ($spip_lang == "fr") { if ($spip_lang == "fr") {
$ret .= bouton_barre_racc ("javascript:barre_raccourci('&laquo;','&raquo;',$champ)", "barre-guillemets.png", "Insrer des &laquo; guillemets fran&ccedil;ais &raquo;", $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_raccourci('&laquo;','&raquo;',$champ)", "barre-guillemets.png", "Insrer des &laquo; guillemets fran&ccedil;ais &raquo;", $formulaire, $texte);
//$ret .= "<a href=\"javascript:barre_raccourci('&laquo;','&raquo;',$champ, 'Insrer des &laquo; guillemets fran&ccedil;ais &raquo;')\"><img src='".($flag_ecrire ? "" : "ecrire/")."img_pack/barre-guillemets.png' border='0' width='24' height='24' title='Placer entre guillemets'></a>"; //$ret .= "<a href=\"javascript:barre_raccourci('&laquo;','&raquo;',$champ, 'Insrer des &laquo; guillemets fran&ccedil;ais &raquo;')\"><img src='".($flag_ecrire ? "" : "ecrire/")."img_pack/barre-guillemets.png' border='0' width='24' height='24' title='Placer entre guillemets'></a>";
...@@ -87,8 +89,16 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { ...@@ -87,8 +89,16 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
$ret .= bouton_barre_racc ("javascript:barre_inserer('&euro;',$champ)", "barre-euro.png", "Ins&eacute;rer le symbole euro", $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_inserer('&euro;',$champ)", "barre-euro.png", "Ins&eacute;rer le symbole euro", $formulaire, $texte);
} }
$ret .= "</td>"; $ret .= "</td>";
if ($flag_ecrire) {
$ret .= "<td align='right' onMouseOver=\"helpline('En savoir plus sur les raccourcis typographiques',helpbox$texte)\">";
$col++;
$ret .= aide("raccourcis");
$ret .= "</td>";
}
$ret .= "</tr>"; $ret .= "</tr>";
$ret .= "<tr><td colspan='2'><input type='text' name='helpbox' size='45' maxlength='100' style='width:100%; font-size:10px; background-color: #eeeeee; border: 0px solid #eeeeee;' value='Utilisez les raccourcis de SPIP pour enrichir votre mise en pages' /></td></tr>"; $ret .= "<tr><td colspan='$col'><input type='text' name='helpbox".$texte."' size='45' maxlength='100' style='width:100%; font-size:10px; background-color: #eeeeee; border: 0px solid #eeeeee;' value='Utilisez les raccourcis de SPIP pour enrichir votre mise en pages' /></td></tr>";
$ret .= "</table>"; $ret .= "</table>";
} }
return $ret; return $ret;
......
...@@ -70,8 +70,8 @@ function barre_inserer(text,champ) { ...@@ -70,8 +70,8 @@ function barre_inserer(text,champ) {
} }
// Shows the help messages in the helpline window // Shows the help messages in the helpline window
function helpline(help) { function helpline(help, champ) {
document.formulaire.helpbox.value = help; champ.value = help;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter