AntonLV 6 лет назад
Родитель
Сommit
cc3f88a35c
3 измененных файлов с 10 добавлено и 32 удалено
  1. 0 31
      template/review.html
  2. 8 0
      template/review_content.html
  3. 2 1
      template/scripts/BxBaseCmtsReviews.php

+ 0 - 31
template/review.html

@@ -1,31 +0,0 @@
-<li id="cmt__id__" class="__style_prefix____class__ bx-def-padding-top bx-def-margin-bottom">
-    <a id="__anchor__" class="__style_prefix__-anchor"></a>
-    <div class="__style_prefix__-cnt__class_cnt__">
-        <div class="__style_prefix__-blink-plate"></div>
-        <div class="__style_prefix__-avatar bx-def-thumb-size">__author_unit__</div>
-        <div class="__style_prefix__-info bx-def-thumb-size-min-height bx-def-thumb-size-left-indent">
-            <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>
-                    </span>
-                </bx_if:show_reply_to>
-                <bx_if:meta><span class="__style_prefix__-meta">__meta__</span></bx_if:meta>
-            </div>
-            <div class="__style_prefix__-cont bx-def-margin-sec-topbottom">
-                <div class="__style_prefix__-cont-cnt">
-                    <bx_if:show_mood>
-                        <div class="__style_prefix__-mood">__mood__</div>
-                    </bx_if:show_mood>
-                    <div class="__style_prefix__-body bx-def-margin-sec-top">__text__<bx_if:show_more><span class="__style_prefix__-body-see-more">... <a class="bx-def-font-small" href="javascript:void(0)" onclick="__js_object__.showMore(this);"><bx_text:_see_more /></a></span><span style="display:none;"> __text_more__</span></bx_if:show_more></div>
-                    <bx_if:show_attached>
-                        <div class="__style_prefix__-attached bx-def-margin-thd-leftright-neg bx-clearfix">__attached__</div>
-                    </bx_if:show_attached>
-                    <div class="__style_prefix__-reactions">__reactions__</div>
-                </div>
-            </div>
-            __actions__
-        </div>
-    </div>
-    <ul class="cmts cmts-margin">__replies__</ul>
-</li>

+ 8 - 0
template/review_content.html

@@ -0,0 +1,8 @@
+<bx_if:show_mood>
+    <div class="__style_prefix__-mood">__mood__</div>
+</bx_if:show_mood>
+<div class="__style_prefix__-body bx-def-margin-sec-top">__text__<bx_if:show_more><span class="__style_prefix__-body-see-more">... <a class="bx-def-font-small" href="javascript:void(0)" onclick="__js_object__.showMore(this);"><bx_text:_see_more /></a></span><span style="display:none;"> __text_more__</span></bx_if:show_more></div>
+<bx_if:show_attached>
+    <div class="__style_prefix__-attached bx-def-margin-thd-leftright-neg bx-clearfix">__attached__</div>
+</bx_if:show_attached>
+<div class="__style_prefix__-reactions">__reactions__</div>

+ 2 - 1
template/scripts/BxBaseCmtsReviews.php

@@ -16,7 +16,8 @@ class BxBaseCmtsReviews extends BxDolCmtsReviews
     {
         parent::__construct($sSystem, $iId, $iInit, $oTemplate);
 
-        $this->_sTmplNameItem = 'review.html';
+        $this->_sTmplNameItemContent = 'review_content.html';
+
         $this->_sJsObjClass = 'BxDolCmtsReviews';
     }