Cette page contient des patchs pour ajouter des bulles d'aide aux liens générés par Wikini qui n'en contenaient pas.
Il s'agit de la propriété
title="..." des tags A. Il y en a sur la plupart des liens mais il en manque encore, notamment sur le
? qui indique que la page est à créer et qu'il faut cliquer dessus pour le faire... En fait j'adore les bulles d'aide parce que ça évite d'avoir à consulter la doc.
Les patchs s'appliquent à la version CVS. A ce jour (27/02/2005), ils sont toujours d'actualité car la version CVS n'a pas bougé.
actions/changestyle.php
--- /home/jm2/wikini/wikini/actions/changestyle.php 2004-07-20 07:46:34.000000000 +0200
+++ /home/jm2/wikini2/wikini/actions/changestyle.php 2005-01-15 22:43:45.000000000 +0100
@@ -47,7 +47,7 @@
if ($this->GetParameter(link))
{
- echo "<a href=\"".$this->href()."&set=".$this->GetParameter(link)."\">";
+ echo "<a href=\"".$this->href()."&set=".$this->GetParameter(link)."\" title=\"Cliquer pour changer le style de la page\">";
echo (!$this->GetParameter(title))?"Feuille de style ".$this->GetParameter(link):$this->GetParameter(title);
echo "</a>";
}
actions/footer.php
actions/header.php
--- /home/jm2/wikini/wikini/actions/header.php 2004-12-29 17:10:34.000000000 +0100
+++ /home/jm2/wikini2/wikini/actions/header.php 2005-01-15 22:39:04.000000000 +0100
@@ -65,7 +65,7 @@
<h1 class="page_name">
-<a href="<?php echo $this->config["base_url"] ?>RechercheTexte&phrase=<?php echo urlencode($this->GetPageTag()); ?>">
+<a href="<?php echo $this->config["base_url"] ?>RechercheTexte&phrase=<?php echo urlencode($this->GetPageTag()); ?>" title="Rechercher ce nom de page">
<?php echo $this->GetPageTag(); ?>
</a>
</h1>
@@ -74,7 +74,7 @@
<div class="header">
<?php echo $this->ComposeLinkToPage($this->config["root_page"]); ?> ::
<?php echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: \n" : "" ?>
-Vous êtes <?php echo $this->Format($this->GetUserName()); if ($user = $this->GetUser()) echo " (<a href=\"".$this->config["base_url"] ."ParametresUtilisateur&action=logout\">Déconnexion</a>)\n"; ?>
+Vous êtes <?php echo $this->Format($this->GetUserName()); if ($user = $this->GetUser()) echo " (<a href=\"".$this->config["base_url"] ."ParametresUtilisateur&action=logout\" title=\"Cliquer pour fermer sa session utilisateur\">Déconnexion</a>)\n"; ?>
</div>
actions/recentcomments.php
--- /home/jm2/wikini/wikini/actions/recentcomments.php 2005-01-10 22:06:37.000000000 +0100
+++ /home/jm2/wikini2/wikini/actions/recentcomments.php 2005-01-15 22:36:10.000000000 +0100
@@ -44,7 +44,7 @@
}
// echo entry
- echo " (",$comment["time"],") <a href=\"",$this->href("", $comment["comment_on"], "show_comments=1"),"#",$comment["tag"],"\">",$comment["comment_on"],"</a> . . . . ",$this->Format($comment["user"]),"<br />\n" ;
+ echo " (",$comment["time"],") <a href=\"",$this->href("", $comment["comment_on"], "show_comments=1"),"#",$comment["tag"],"\" title=\"Cliquer pour voir le commentaire\">",$comment["comment_on"],"</a> . . . . ",$this->Format($comment["user"]),"<br />\n" ;
}
}
else
actions/recentlycommented.php
--- /home/jm2/wikini/wikini/actions/recentlycommented.php 2005-01-10 22:06:46.000000000 +0100
+++ /home/jm2/wikini2/wikini/actions/recentlycommented.php 2005-01-15 22:35:12.000000000 +0100
@@ -46,7 +46,7 @@
foreach ($pages as $page)
{
// echo entry
- echo "(",$page["comment_time"],") <a href=\"",$this->href("", $page["tag"], "show_comments=1"),"#",$page["comment_tag"],"\">",$page["tag"],"</a> . . . . dernier commentaire par ",$this->Format($page["comment_user"]),"<br />\n" ;
+ echo "(",$page["comment_time"],") <a href=\"",$this->href("", $page["tag"], "show_comments=1"),"#",$page["comment_tag"],"\" title=\"Cliquer pour voir le commentaire\">",$page["tag"],"</a> . . . . dernier commentaire par ",$this->Format($page["comment_user"]),"<br />\n" ;
}
}
else
@@ -64,7 +64,7 @@
}
// echo entry
- echo " (",$time,") <a href=\"",$this->href("", $page["tag"], "show_comments=1"),"#",$page["comment_tag"],"\">",$page["tag"],"</a> . . . . dernier commentaire par ",$this->Format($page["comment_user"]),"<br />\n" ;
+ echo " (",$time,") <a href=\"",$this->href("", $page["tag"], "show_comments=1"),"#",$page["comment_tag"],"\" title=\"Cliquer pour voir le commentaire\">",$page["tag"],"</a> . . . . dernier commentaire par ",$this->Format($page["comment_user"]),"<br />\n" ;
}
}
}
handlers/page/show.php
../..