mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
fix html error in menu item if attributes are passed
This commit is contained in:
parent
d127b137ba
commit
c099903f12
|
@ -576,11 +576,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
if(!empty($submenuitem['divider'])) {
|
||||
$content .= " <li class=\"divider\"></li>\n";
|
||||
} else {
|
||||
$content .= "<li><a".(isset($menuitem['link']) ? " href=\"".$menuitem['link']."\"" : "").(isset($menuitem['target']) ? ' target="'.$menuitem['target'].'"' : '').">";
|
||||
$content .= "<li><a".(isset($menuitem['link']) ? " href=\"".$menuitem['link']."\"" : "").(isset($menuitem['target']) ? ' target="'.$menuitem['target'].'"' : '');
|
||||
if(!empty($menuitem['attributes']))
|
||||
foreach($menuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= $menuitem['label']."</a></li>";
|
||||
$content .= ">".$menuitem['label']."</a></li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user