Add a title attribute to the li of a menu

This commit is contained in:
Tim Almdal
2009-07-10 23:45:29 -07:00
parent 782431ec13
commit f1b2a14f4f
+1 -1
View File
@@ -207,7 +207,7 @@ class Menu_Core extends Menu_Element {
public function __toString() {
$html = $this->is_root ? "<ul class=\"gMenu\">" :
"<li><a href=#>$this->label</a><ul class=\"gMenu\">";
"<li title=\"$this->label\"><a href=#>$this->label</a><ul class=\"gMenu\">";
$html .= implode("\n", $this->elements);
$html .= $this->is_root ? "</ul>" : "</ul></li>";
return $html;