mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 13:10:48 -04:00
Add a title attribute to the li of a menu
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user