Add id to list element
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
fd830b90eb
commit
2b6c00fc0f
|
@ -166,8 +166,8 @@ class SimpleMenuAction implements IMenuAction {
|
|||
public function render(): string {
|
||||
$detailContent = ($this->detail !== '') ? ' <span class="download-size">(' . Util::sanitizeHTML($this->detail) . ')</span>' : '';
|
||||
return sprintf(
|
||||
'<li><a href="%s"><span class="icon %s"></span>%s %s</a></li>',
|
||||
Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), Util::sanitizeHTML($detailContent)
|
||||
'<li id="%s"><a href="%s"><span class="icon %s"></span>%s %s</a></li>',
|
||||
Util::sanitizeHTML($this->id), Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), $detailContent
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue