AntonLV 7 лет назад
Родитель
Сommit
4ab2fb699f

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

@@ -1633,7 +1633,8 @@
 	<string name="_error occured"><![CDATA[Error occurred]]></string>
 	<string name="_from"><![CDATA[from]]></string>
 	<string name="_hidden_comment"><![CDATA[Comment by <b>{0}</b> is hidden.]]></string>
-	<string name="_in_reply_to"><![CDATA[In reply to {0}]]></string>
+	<string name="_in_reply_to"><![CDATA[In reply to]]></string>
+        <string name="_in_reply_to_x"><![CDATA[In reply to {0}]]></string>
 	<string name="_item"><![CDATA[item]]></string>
 	<string name="_items"><![CDATA[items]]></string>
 	<string name="_member_banned"><![CDATA[Sorry, you've been banned]]></string>

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

@@ -1620,7 +1620,8 @@
 	<string name="_error occured"><![CDATA[Произошла ошибка]]></string>
 	<string name="_from"><![CDATA[от]]></string>
 	<string name="_hidden_comment"><![CDATA[Комментарий от <b>{0}</b> спрятан.]]></string>
-	<string name="_in_reply_to"><![CDATA[В ответе на {0}]]></string>
+	<string name="_in_reply_to"><![CDATA[В ответ на]]></string>
+        <string name="_in_reply_to_x"><![CDATA[В ответ на {0}]]></string>
 	<string name="_item"><![CDATA[элемент]]></string>
 	<string name="_items"><![CDATA[элементы]]></string>
 	<string name="_member_banned"><![CDATA[Извините, Вас забанили]]></string>

+ 3 - 1
template/comment.html

@@ -7,7 +7,9 @@
             <div class="__style_prefix__-head bx-clearfix">
                 <bx_if:show_reply_to>
                     <span class="__style_prefix__-reply-to">
-                        <a href="__par_cmt_link__" title="__par_cmt_title__"><i class="sys-icon reply"></i></a>
+                        <a href="__par_cmt_link__" title="__par_cmt_title__">
+                            <i class="sys-icon reply"></i> <span><bx_text:_in_reply_to /></span> __par_cmt_author_unit__ <span>__par_cmt_author__</span>
+                        </a>
                     </span>
                 </bx_if:show_reply_to>
                 <bx_if:meta><span class="__style_prefix__-meta">__meta__</span></bx_if:meta>

+ 41 - 20
template/css/cmts.css

@@ -81,31 +81,52 @@
     div.cmt-info {
     	position: realtive;
     	overflow: hidden;
-	}
-	div.cmt-blink-plate {
-		position: absolute;
-		display: none;
-		top: -10px;
-		left: -10px;
-		width: 100%;
-		height: 100%;
-		padding: 10px;
-    	background-color: rgb(255, 244, 213);
-    	background-color: rgba(255, 234, 193, 0.5);
-    }
-	div.cmt-head {
-		text-align: left;
-    	text-overflow: ellipsis;
-		white-space: nowrap;
-		overflow: hidden;
-	}
+    }
+    div.cmt-blink-plate {
+        position: absolute;
+        display: none;
+        top: -10px;
+        left: -10px;
+        width: 100%;
+        height: 100%;
+        padding: 10px;
+        background-color: rgb(255, 244, 213);
+        background-color: rgba(255, 234, 193, 0.5);
+    }
+    div.cmt-head {
+        text-align: left;
+        text-overflow: ellipsis;
+        white-space: nowrap;
+        overflow: hidden;
+    }
     span.cmt-reply-to a {
-		text-decoration: none;
+        text-decoration: none;
+    }
+    span.cmt-reply-to a > i,
+    span.cmt-reply-to a > span,
+    span.cmt-reply-to a > div {
+        vertical-align: middle;
+    }
+    span.cmt-reply-to a .bx-base-pofile-unit-wo-info {
+        display: inline-block;
+    }
+    span.cmt-reply-to a .bx-base-pofile-unit-wo-info .bx-def-unit-img .bx-base-pofile-unit-thumb {
+        display: block;
+        border-width: 1px;
+    }
+    span.cmt-reply-to a .bx-base-pofile-unit-wo-info .bx-base-pofile-unit-online {
+        display: none;
+    }
+    span.cmt-reply-to a .bx-def-icon-size {
+        width: 1.0rem;
+        height: 1.0rem;
+        line-height: 0.875rem;
+        font-size: 0.6rem;
     }
     span.cmt-posted-ago {
         text-transform: lovercase;
     }
-	span.cmt-points {
+    span.cmt-points {
         text-transform: lovercase;
     }
 

+ 7 - 3
template/scripts/BxBaseCmts.php

@@ -251,13 +251,17 @@ class BxBaseCmts extends BxDolCmts
         $aTmplReplyTo = array();
         if((int)$aCmt['cmt_parent_id'] != 0) {
             $aParent = $this->getCommentRow($aCmt['cmt_parent_id']);
-            list($sParAuthorName, $sParAuthorLink, $sParAuthorIcon) = $this->_getAuthorInfo($aParent['cmt_author_id']);
+
+            $oProfile = $this->_getAuthorObject($aParent['cmt_author_id']);
+            $sParAuthorName = $oProfile->getDisplayName();
+            $sParAuthorUnit = $oProfile->getUnit(0, array('template' => array('name' => 'unit_wo_info_links', 'size' => 'icon')));
 
             $aTmplReplyTo = array(
                 'style_prefix' => $this->_sStylePrefix,
                 'par_cmt_link' => $this->getItemUrl($aCmt['cmt_parent_id']),
-            	'par_cmt_title' => bx_html_attribute(_t('_in_reply_to', $sParAuthorName)),
-                'par_cmt_author' => $sParAuthorName
+            	'par_cmt_title' => bx_html_attribute(_t('_in_reply_to_x', $sParAuthorName)),
+                'par_cmt_author' => $sParAuthorName,
+                'par_cmt_author_unit' => $sParAuthorUnit
             );
         }