瀏覽代碼

Ticket #3766 - Artificer template (part 3): Comments.

AntonLV 4 年之前
父節點
當前提交
7ad6be5d5f

+ 2 - 2
modules/boonex/artificer/data/template/system/comment_counter.html

@@ -2,8 +2,8 @@
     <a class="sys-ac-link group p-1 pl-2" href="__href__"<bx_if:show_onclick> onclick="__onclick__"</bx_if:show_onclick>>
         <bx_repeat:profiles>__icon__</bx_repeat:profiles>
         <bx_if:show_icon>
-            <div class="sys-action-counter-icon __sp__-counter-icon bx-def-icon-size flex items-center justify-center z-10 h-6 w-6 ring-1 ring-white dark:ring-gray-700 h-6 w-6 bg-gray-200 dark:bg-gray-700 rounded-full">__icon__</div>
+            <div class="sys-action-counter-icon __style_prefix__-counter-icon bx-def-icon-size flex items-center justify-center z-10 h-6 w-6 ring-1 ring-white dark:ring-gray-700 h-6 w-6 bg-gray-200 dark:bg-gray-700 rounded-full">__icon__</div>
         </bx_if:show_icon>
-        <div class="ml-2 first:ml-0">__content__</div>
+        <div class="sys-action-counter-text __style_prefix__-counter-text ml-1.5 first:ml-0">__content__</div>
     </a>
 </div>

+ 4 - 0
modules/boonex/artificer/data/template/system/css/cmts.css

@@ -63,4 +63,8 @@ span.cmt-reply-to a .bx-def-icon-size {
 /*--- Comment Element Styles ---*/
 .cmt-counter .bx-base-pofile-unit-online {
     display: none;
+}
+.cmt-counter .cmt-counter-text {
+    margin-left: 0.5rem;
+    margin-right: 0.5rem;
 }

+ 1 - 1
template/comment_counter.html

@@ -4,6 +4,6 @@
         <bx_if:show_icon>
             <div class="sys-action-counter-icon __style_prefix__-counter-icon bx-def-icon-size bx-def-align-center"><i class="__style_prefix__-counter-icon sys-icon comment"></i></div>
         </bx_if:show_icon>
-        <div class="bx-def-margin-sec-left-auto">__content__</div>
+        <div class="sys-action-counter-text __style_prefix__-counter-text bx-def-margin-sec-left-auto">__content__</div>
     </a>
 </div>

+ 1 - 1
template/scripts/BxBaseCmts.php

@@ -774,6 +774,7 @@ class BxBaseCmts extends BxDolCmts
             $sOnclick = $aParams['overwrite_counter_link_onclick'];
 
         return $this->_oTemplate->parseHtmlByContent($this->_getTmplCounter(), array(
+            'style_prefix' => $this->_sStylePrefix,
             'id' => $this->_aHtmlIds['counter'],
             'class' => $sClass,
             'href' => $sHref,
@@ -783,7 +784,6 @@ class BxBaseCmts extends BxDolCmts
                     'onclick' => $sOnclick
                 )
             ),
-            
             'content' => $this->_getCounterLabel($iCount, $aParams),
             'bx_repeat:profiles' => $aTmplVarsProfiles,
             'bx_if:show_icon' => array(