Sfoglia il codice sorgente

#3783 - Repost icon template

roman.lesnikov@gmail.com 4 anni fa
parent
commit
5b95ff6c42

+ 2 - 3
modules/boonex/timeline/classes/BxTimelineTemplate.php

@@ -1149,8 +1149,7 @@ class BxTimelineTemplate extends BxBaseModNotificationsTemplate
                 'condition' => !isset($aParams['show_counter_label_icon']) || (bool)$aParams['show_counter_label_icon'] === true,
                 'content' => array(
                     'style_prefix' => $sStylePrefix,
-                    'name' => $this->_getCounterIcon($aParams),
-                    'emoji' => ''
+                    'icon' => $this->_getCounterIcon($aParams),
                 )
             ),
             'bx_if:show_text' => array(
@@ -3118,7 +3117,7 @@ class BxTimelineTemplate extends BxBaseModNotificationsTemplate
 
     protected function _getCounterIcon($aParams = array())
     {
-        return 'redo';
+        return $this->parseHtmlByName('repost_counter_icon.html', ['emoji' => '']);
     }
 
     protected function _getCounterLabel($iCount, $aParams = array())

+ 1 - 0
modules/boonex/timeline/template/repost_counter_icon.html

@@ -0,0 +1 @@
+<i class="sys-icon redo">__emoji__</i>