mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
menu item does not need a href if it has children
This commit is contained in:
parent
ca7bb77386
commit
63c90a026b
|
@ -473,14 +473,14 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
foreach($menuitems as $menuitem) {
|
foreach($menuitems as $menuitem) {
|
||||||
if(!empty($menuitem['children'])) {
|
if(!empty($menuitem['children'])) {
|
||||||
echo " <li class=\"dropdown\">\n";
|
echo " <li class=\"dropdown\">\n";
|
||||||
echo " <a href=\"".$menuitem['link']."\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText($menuitem['label'])." <i class=\"icon-caret-down\"></i></a>\n";
|
echo " <a class=\"dropdown-toggle\" data-toggle=\"dropdown\">".getMLText($menuitem['label'])." <i class=\"icon-caret-down\"></i></a>\n";
|
||||||
echo " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
echo " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||||
foreach($menuitem['children'] as $submenuitem) {
|
foreach($menuitem['children'] as $submenuitem) {
|
||||||
echo " <li><a href=\"".$submenuitem['link']."\">".getMLText($submenuitem['label'])."</a></li>\n";
|
echo " <li><a href=\"".$submenuitem['link']."\"".(isset($submenuitem['target']) ? ' target="'.$submenuitem['target'].'"' : '').">".getMLText($submenuitem['label'])."</a></li>\n";
|
||||||
}
|
}
|
||||||
echo " </ul>\n";
|
echo " </ul>\n";
|
||||||
} else {
|
} else {
|
||||||
echo "<li><a href=\"".$menuitem['link']."\">".getMLText($menuitem['label'])."</a></li>";
|
echo "<li><a href=\"".$menuitem['link']."\"".(isset($menuitem['target']) ? ' target="'.$menuitem['target'].'"' : '').">".getMLText($menuitem['label'])."</a></li>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user