Просмотр исходного кода

#104 - Live updates engine in Comments.

AntonLV 11 лет назад
Родитель
Сommit
42a97a7cd2

+ 2 - 2
template/comments_notification.html

@@ -12,9 +12,9 @@
 						</bx_if:show_icon_empty>
 					</div>
 					<div class="__style_prefix__-notif-info bx-def-thumb-size-min-height bx-def-thumb-size-left-indent bx-def-font-small">
-						<div class="__style_prefix__-notifi-username bx-def-font-grayed">
+						<div class="__style_prefix__-notifi-username">
 							<b class="__style_prefix__-notifi-username">
-								<bx_if:show_author_link><a class="bx-def-font-grayed" href="__author_link__" title="__author_title__">__author_name__</a>: </bx_if:show_author_link>
+								<bx_if:show_author_link><a href="__author_link__" title="__author_title__">__author_name__</a>: </bx_if:show_author_link>
 								<bx_if:show_author_text>__author_name__: </bx_if:show_author_text>
 							</b>
 							__text__

+ 5 - 1
template/css/cmts.css

@@ -279,7 +279,11 @@
 
 		white-space: nowrap;
 		text-overflow: ellipsis;
-    	overflow: hidden;
+		overflow: hidden;
+	}
+	div.cmt-notifi-username,
+	div.cmt-notifi-username a {
+		color: #cccccc;
 	}
 	div.cmt-notifi-actions a {
 		text-decoration: underline;

+ 2 - 2
template/scripts/BxBaseCmtsServices.php

@@ -39,8 +39,8 @@ class BxBaseCmtsServices extends BxDol
 		bx_import('BxDolSession');
     	if((int)BxDolSession::getInstance()->getValue($sKey) == 1)
     		return false;
-    	
-		$iCountNew = $oCmts->getCommentsCount($iContentId, 0, BX_CMT_FILTER_OTHERS);
+
+		$iCountNew = $oCmts->getCommentsCount($iContentId, -1, BX_CMT_FILTER_OTHERS);
 		if($iCountNew <= $iCount)
 			return false;