mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
showNavigationListWithBadges() skips badge if not set, fix creating link
This commit is contained in:
parent
7172aad62b
commit
ebf4f5a829
|
@ -600,13 +600,14 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
foreach($menuitems as $menuitem) {
|
||||
$content .= " <li class=\"".(!empty($menuitem['active']) ? ' active' : '')."\">\n";
|
||||
$content .= ' <a';
|
||||
$content .= !empty($menuitem['link']) ? 'href="'.$menuitem['link'].'"' : '';
|
||||
$content .= !empty($menuitem['link']) ? ' href="'.$menuitem['link'].'"' : '';
|
||||
if(!empty($menuitem['attributes']))
|
||||
foreach($menuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= '>';
|
||||
$content .= $menuitem['label'];
|
||||
$content .= '<span class="badge badge-right">'.$menuitem['badge']."</span>";
|
||||
if(!empty($menuitem['badge']))
|
||||
$content .= '<span class="badge badge-right">'.$menuitem['badge']."</span>";
|
||||
$content .= ' </a>'."\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
|
|
@ -605,14 +605,15 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
foreach($menuitems as $menuitem) {
|
||||
$content .= " <li class=\"list-group-item d-flex justify-content-between align-items-center".(!empty($menuitem['active']) ? ' active' : '')."\">\n";
|
||||
$content .= ' <a';
|
||||
$content .= !empty($menuitem['link']) ? 'href="'.$menuitem['link'].'"' : '';
|
||||
$content .= !empty($menuitem['link']) ? ' href="'.$menuitem['link'].'"' : '';
|
||||
if(!empty($menuitem['attributes']))
|
||||
foreach($menuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= '>';
|
||||
$content .= $menuitem['label'];
|
||||
$content .= ' </a>'."\n";
|
||||
$content .= '<span class="badge badge-primary badge-pill">'.$menuitem['badge']."</span>";
|
||||
if(!empty($menuitem['badge']))
|
||||
$content .= '<span class="badge badge-primary badge-pill">'.$menuitem['badge']."</span>";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user