AntonLV 9 лет назад
Родитель
Сommit
e5c2f9b91e
2 измененных файлов с 12 добавлено и 4 удалено
  1. 6 4
      inc/classes/BxDolTemplate.php
  2. 6 0
      modules/boonex/timeline/template/css/view.css

+ 6 - 4
inc/classes/BxDolTemplate.php

@@ -1872,7 +1872,8 @@ class BxDolTemplate extends BxDolFactory implements iBxDolSingleton
                     else if(is_string($aValues[$i]))
                         $sValue = $aValues[$i];
                 }
-            } else if (strncmp($aKeys[$i], 'bx_if:', 6) === 0) {
+            } 
+            else if (strncmp($aKeys[$i], 'bx_if:', 6) === 0) {
                 $sKey = "'<" . $aKeys[$i] . ">(.*)<\/" . $aKeys[$i] . ">'s";
 
                 $aMatches = array();
@@ -1882,13 +1883,14 @@ class BxDolTemplate extends BxDolFactory implements iBxDolSingleton
                 if(isset($aMatches[1]) && !empty($aMatches[1]))
                     if(is_array($aValues[$i]) && isset($aValues[$i]['content']) && isset($aValues[$i]['condition']) && $aValues[$i]['condition'])
                         $sValue .= $this->parseHtmlByContent($aMatches[1], $aValues[$i]['content'], $mixedKeyWrapperHtml);
-            } else {
+            } 
+            else {
                 $sKey = "'" . $aKeyWrappers['left'] . $aKeys[$i] . $aKeyWrappers['right'] . "'s";
-                $sValue = str_replace('$', '\\$', $aValues[$i]);
+                $sValue = $aValues[$i];
             }
 
             $aKeys[$i] = $sKey;
-            $aValues[$i] = $sValue;
+            $aValues[$i] = str_replace('$', '\\$', $sValue);
         }
 
         try {

+ 6 - 0
modules/boonex/timeline/template/css/view.css

@@ -94,6 +94,12 @@ div.bx-tl-item div.bx-tl-owner-name .bx-tl-pinned .sys-icon {
     cursor: default;
 }
 
+/*--- Item Content Style ---*/
+div.bx-tl-item-content div.bx-tl-title {
+	text-overflow: ellipsis;
+    overflow: hidden;
+}
+
 /*--- Item Images Style ---*/
 div.bx-tl-item div.bx-tl-item-images {
     position: relative;