AntonLV пре 9 година
родитељ
комит
9c550c57c2

+ 1 - 1
modules/base/general/classes/BxBaseModGeneralModule.php

@@ -1052,7 +1052,7 @@ class BxBaseModGeneralModule extends BxDolModule
         if (!$oCmts || !$oCmts->isEnabled())
             return false;
 
-        return $oCmts->getCommentsBlock(array(), array('in_designbox' => false));
+        return $oCmts->getCommentsBlock(array(), array('in_designbox' => false, 'show_empty' => true));
     }
 
     protected function _entitySocialSharing ($iId, $aParams = array())

+ 0 - 1
modules/boonex/english/data/langs/system/en.xml

@@ -99,7 +99,6 @@
 	<string name="_Subject"><![CDATA[Subject]]></string>
 	<string name="_Submit"><![CDATA[Submit]]></string>
 	<string name="_Success"><![CDATA[Success]]></string>
-	<string name="_There_are_no_comments_yet"><![CDATA[There are no comments yet]]></string>
 	<string name="_Times allowed"><![CDATA[Times allowed]]></string>
 	<string name="_Title"><![CDATA[Title]]></string>
 	<string name="_To"><![CDATA[to]]></string>

+ 0 - 1
modules/boonex/russian/data/langs/system/ru.xml

@@ -99,7 +99,6 @@
 	<string name="_Subject"><![CDATA[Тема]]></string>
 	<string name="_Submit"><![CDATA[Выполнить]]></string>
 	<string name="_Success"><![CDATA[Удачно]]></string>
-	<string name="_There_are_no_comments_yet"><![CDATA[Ещё нет ни одного комментария]]></string>
 	<string name="_Times allowed"><![CDATA[Сколько раз разрешено]]></string>
 	<string name="_Title"><![CDATA[Заголовок]]></string>
 	<string name="_To"><![CDATA[кому]]></string>

+ 1 - 3
template/comment_empty.html

@@ -1,3 +1 @@
-<li class="__style_prefix__-no bx-def-padding-top bx-def-margin-bottom">
-	<bx_text:_There_are_no_comments_yet />
-</li>
+<li class="__style_prefix__-no bx-def-padding-top bx-def-margin-bottom">__content__</li>

+ 1 - 1
template/comments_block.html

@@ -1,4 +1,4 @@
-<div id="cmts-box-__system__-__id__" class="bx-def-margin-topbottom-neg">
+<div id="cmts-box-__system__-__id__">
 	__post_form_top__
 	<div id="cmt0" class="cmts">
 		<a class="bx-anchor-invisible" name="__list_anchor__"></a>

+ 4 - 0
template/css/cmts.css

@@ -18,6 +18,10 @@
     li.cmt {
     	position: relative;
     }
+    li.cmt-no .bx-msg-box-container {
+        margin-top: 0px;
+        margin-bottom: 0px;
+    }
     li.cmt-err {
         color: red;
     }

+ 2 - 1
template/scripts/BxBaseCmts.php

@@ -713,7 +713,8 @@ class BxBaseCmts extends BxDolCmts
     protected function _getEmpty()
     {
         return BxDolTemplate::getInstance()->parseHtmlByName('comment_empty.html', array(
-            'style_prefix' => $this->_sStylePrefix
+            'style_prefix' => $this->_sStylePrefix,
+            'content' => MsgBox(_t('_Empty'))
         ));
     }