From b77cfe7429553673cc931f73edd7c708c36c38a5 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Fri, 18 May 2018 16:10:08 +0200 Subject: [PATCH] Minor - Load legacy js in new chamilo/symfony template --- .../Resources/views/Layout/base-layout.html.twig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ThemeBundle/Resources/views/Layout/base-layout.html.twig b/src/ThemeBundle/Resources/views/Layout/base-layout.html.twig index 7f2966176a..725c57a5f6 100644 --- a/src/ThemeBundle/Resources/views/Layout/base-layout.html.twig +++ b/src/ThemeBundle/Resources/views/Layout/base-layout.html.twig @@ -60,6 +60,7 @@ + {# chamilo.js is generated using the file webpack.config.js and using yarn read /assets/README.md for more info #} @@ -78,6 +79,12 @@ {##} {% block chamilo_header_js %} + {# Loading legacy js using the $htmlHeadXtra array #} + {% autoescape false %} + {% for js in legacy_javascript %} + {{ js }} + {% endfor %} + {% endautoescape %} {% include '@ChamiloTheme/Layout/header.js.twig' %} {% endblock %}