... |
... |
@@ -40,7 +40,7 @@ class TemplateListener implements FrameworkAwareInterface
|
40 |
40 |
{
|
41 |
41 |
$assetsDir = 'web/bundles/esalesmediacontenthelper';
|
42 |
42 |
$GLOBALS['TL_CSS'][] = $assetsDir . '/css/animate.scss||static';
|
43 |
|
- $GLOBALS['TL_BODY'][] = '<script src="' . $assetsDir . '/js/inView_animate.js"></script>';
|
|
43 |
+ $GLOBALS['TL_BODY'][] = Template::generateScriptTag('bundles/esalesmediacontenthelper/js/inView_animate.js');
|
44 |
44 |
|
45 |
45 |
$template->class = trim($template->class . ' is-animated ' . $template->es_animate_type);
|
46 |
46 |
|