mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-29 04:29:20 +00:00
allow 'onclick' attribute in showMenuwithButton()
This commit is contained in:
parent
afd6a8b7f0
commit
0e1da1a730
|
|
@ -655,7 +655,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
';
|
||||
foreach($button['menuitems'] as $menuitem) {
|
||||
$content .= '
|
||||
<li><a href="'.$menuitem['link'].'">'.$menuitem['label'].'</a><li>
|
||||
<li><a';
|
||||
if(!empty($menuitem['link']))
|
||||
$content .= ' href="'.$menuitem['link'].'"';
|
||||
if(!empty($menuitem['onclick']))
|
||||
$content .= ' onclick="'.$menuitem['onclick'].'"';
|
||||
$content .= '>'.$menuitem['label'].'</a><li>
|
||||
';
|
||||
}
|
||||
$content .= '
|
||||
|
|
|
|||
|
|
@ -660,7 +660,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
';
|
||||
foreach($button['menuitems'] as $menuitem) {
|
||||
$content .= '
|
||||
<a class="dropdown-item" href="'.$menuitem['link'].'">'.$menuitem['label'].'</a>
|
||||
<a class="dropdown-item"';
|
||||
if(!empty($menuitem['link']))
|
||||
$content .= ' href="'.$menuitem['link'].'"';
|
||||
if(!empty($menuitem['onclick']))
|
||||
$content .= ' onclick="'.$menuitem['onclick'].'"';
|
||||
$content .= '>'.$menuitem['label'].'</a>
|
||||
';
|
||||
}
|
||||
$content .= '
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user