* [pref] Add build message bar html.

This commit is contained in:
wangyidong
2024-08-02 15:29:30 +08:00
committed by 孙广明
parent f22816cdfd
commit 815aa0b5e9
2 changed files with 19 additions and 0 deletions
+18
View File
@@ -3506,6 +3506,24 @@ eof;
$fetcher = helper::createLink('message', 'ajaxGetDropMenuForOld');
foreach($dotStyle as $cssKey => $cssValue) $dotStyle[$cssKey] = $cssKey . ':' . $cssValue;
$html = "<li id='messageDropdown' class='relative'>\n";
$html .= "<a class='dropdown-toggle' id='messageBar' data-fetcher='{$fetcher}' onclick='fetchMessage()'>";
$html .= "<i class='icon icon-bell'></i>";
if($unreadCount)
{
$html .= "<span class='label label-dot danger absolute";
if($showCount) $html .= ' rounded-sm';
$html .= "' style='" . implode('; ', $dotStyle) . "'>";
$html .= $showCount ? $unreadCount : '';
$html .= '</span>';
}
$html .= "</a>";
$html .= "<div class='dropdown-menu messageDropdownBox absolute' style='padding:0;left:-320px;'><div id='dropdownMessageMenu' class='not-clear-menu'></div></div>";
$html .= "</li>";
echo $html;
}
/**