|
|
@ -223,12 +223,12 @@ function toolbar_dropdown($icon, $label, $submenu, $class = ''): string
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$template =<<<EOT
|
|
|
|
$template =<<<EOT
|
|
|
|
<li class="nav-item dropdown {class}">
|
|
|
|
<li class="nav-item dropdown {class}">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
|
{icon} {label}
|
|
|
|
{icon} {label}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
|
|
{submenu}
|
|
|
|
{submenu}
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
EOT;
|
|
|
|
EOT;
|
|
|
|
|
|
|
|
|
|
|
@ -261,13 +261,13 @@ function toolbar_popover($icon, $label, $content, $class = '')
|
|
|
|
. '<small class="bi bi-caret-down-fill"></small>'
|
|
|
|
. '<small class="bi bi-caret-down-fill"></small>'
|
|
|
|
. '</a>'
|
|
|
|
. '</a>'
|
|
|
|
. '<script type="text/javascript">
|
|
|
|
. '<script type="text/javascript">
|
|
|
|
new bootstrap.Popover(document.getElementById(\'' . $dom_id . '\'), {
|
|
|
|
new bootstrap.Popover(document.getElementById(\'' . $dom_id . '\'), {
|
|
|
|
container: \'body\',
|
|
|
|
container: \'body\',
|
|
|
|
html: true,
|
|
|
|
html: true,
|
|
|
|
content: \'' . addslashes(join('', $content)) . '\',
|
|
|
|
content: \'' . addslashes(join('', $content)) . '\',
|
|
|
|
placement: \'bottom\',
|
|
|
|
placement: \'bottom\',
|
|
|
|
customClass: \'popover--userhints\'
|
|
|
|
customClass: \'popover--userhints\'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script></li>';
|
|
|
|
</script></li>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|