mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 21:16:07 +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'])) {
|
if(!empty($submenuitem['divider'])) {
|
||||||
$content .= " <li class=\"divider\"></li>\n";
|
$content .= " <li class=\"divider\"></li>\n";
|
||||||
} else {
|
} 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']))
|
if(!empty($menuitem['attributes']))
|
||||||
foreach($menuitem['attributes'] as $attr)
|
foreach($menuitem['attributes'] as $attr)
|
||||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||||
$content .= $menuitem['label']."</a></li>";
|
$content .= ">".$menuitem['label']."</a></li>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user