Browse code

Apply column text class only to text elements

Benjamin Roth authored on15/03/2021 10:21:29
Showing1 changed files
... ...
@@ -34,7 +34,7 @@ class TemplateListener implements FrameworkAwareInterface
34 34
     {
35 35
       $template->class = trim($template->class . ' ta_'.$template->es_textAlign);
36 36
     }
37
-    if ($template->es_col_text)
37
+    if ($template->type == 'text' && $template->es_col_text)
38 38
     {
39 39
       $GLOBALS['TL_CSS'][] = $assetsDir . '/css/col_text.scss||static';
40 40
       $template->class = trim($template->class . ' layout_' . $template->es_col_text);