mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Fix bootstrap 5 dropdown menu
This commit is contained in:
parent
fc9a723f27
commit
8f08f2f547
1 changed files with 2 additions and 2 deletions
|
|
@ -2773,7 +2773,7 @@ function parseNode($node, $child = null)
|
|||
}
|
||||
}
|
||||
|
||||
$li .= '<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="'.htmlspecialchars(slashUrl($node->slug), FILTER_SANITIZE_URL).'">'.$node->name.'<b class="caret"></b></a>';
|
||||
$li .= '<a class="nav-link dropdown-toggle" data-toggle="dropdown" data-bs-toggle="dropdown" href="'.htmlspecialchars(slashUrl($node->slug), FILTER_SANITIZE_URL).'">'.$node->name.'<b class="caret"></b></a>';
|
||||
if (isset($node->children)) {
|
||||
$li .= parseNodes($node->children, true, null);
|
||||
}
|
||||
|
|
@ -2898,7 +2898,7 @@ function get_menu($custom = null, $auto = null)
|
|||
$subPages = get_static_subpages($filename);
|
||||
if (!empty($subPages)) {
|
||||
$menu .= '<li class="' . $class . $active .' dropdown">';
|
||||
$menu .= '<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="' . $url . '">' . ucwords($title) . '<b class="caret"></b></a>';
|
||||
$menu .= '<a class="nav-link dropdown-toggle" data-toggle="dropdown" data-bs-toggle="dropdown" href="' . $url . '">' . ucwords($title) . '<b class="caret"></b></a>';
|
||||
$menu .= '<ul class="subnav dropdown-menu" role="menu">';
|
||||
$iSub = 0;
|
||||
$countSub = count($subPages);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue