From 815aa0b5e9562056c4e269e309df981928b04e6f Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 2 Aug 2024 12:46:34 +0800 Subject: [PATCH] * [pref] Add build message bar html. --- module/common/model.php | 18 ++++++++++++++++++ module/index/config.php | 1 + 2 files changed, 19 insertions(+) diff --git a/module/common/model.php b/module/common/model.php index 8a790ba36e..57e46958c9 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -3506,6 +3506,24 @@ eof; $fetcher = helper::createLink('message', 'ajaxGetDropMenuForOld'); foreach($dotStyle as $cssKey => $cssValue) $dotStyle[$cssKey] = $cssKey . ':' . $cssValue; + + $html = "
  • \n"; + $html .= ""; + $html .= ""; + if($unreadCount) + { + $html .= ""; + $html .= $showCount ? $unreadCount : ''; + $html .= ''; + } + $html .= ""; + + $html .= ""; + $html .= "
  • "; + + echo $html; } /** diff --git a/module/index/config.php b/module/index/config.php index d1767179c7..0ff9b0de40 100644 --- a/module/index/config.php +++ b/module/index/config.php @@ -36,3 +36,4 @@ $config->index->oldPages[] = 'api-debug'; $config->index->oldPages[] = 'datatable-ajaxoldcustom'; $config->index->oldPages[] = 'weekly-index'; $config->index->oldPages[] = 'kanban-importticket'; +$config->index->oldPages[] = 'message-ajaxgetdropmenuforold';