vendor/kunstmaan/admin-bundle/Resources/views/Default/_js_footer.html.twig line 1

Open in your IDE?
  1. {% include "@KunstmaanAdmin/Default/_ckeditor_configs.html.twig" %}
  2. <script>
  3.     CKEDITOR_BASEPATH = '/bundles/kunstmaanadmin/default-theme/ckeditor/';
  4.     MORE_BUTTON_LABEL = '{{ 'kuma_js.auto_collapse.more_button_label' | trans | e('js') }}';
  5. </script>
  6. {# Dynamically load the scripts, and only add the Polyfills when they are necessary #}
  7. <script>
  8.     {# scripts without polyfills #}
  9.     var scripts = [
  10.         '{{ asset('bundles/kunstmaanadmin/js/admin-bundle.min.js') }}',
  11.         '{{ asset('bundles/kunstmaanadmin/js/admin-bundle.next.js') }}',
  12.         {%- block extra_async_javascripts %}{% endblock -%}
  13.         {%- set jsPath = 'frontend/js/admin-bundle-extra.js' -%}
  14.         {% if file_exists(jsPath) %}'{{ asset('/' ~ jsPath) }}'{% endif %}
  15.     ];
  16.     if (!('fetch' in window &&
  17.         'Promise' in window &&
  18.         'assign' in Object &&
  19.         'keys' in Object
  20.     )) {
  21.         scripts.unshift('{{ asset('bundles/kunstmaanadmin/js/admin-bundle-polyfills.js') }}');
  22.     }
  23.     scripts.forEach(function(src) {
  24.         var scriptEl = document.createElement('script');
  25.         scriptEl.src = src;
  26.         scriptEl.async = false;
  27.         document.head.appendChild(scriptEl);
  28.     });
  29. </script>
  30. {% include "@KunstmaanAdmin/Default/_js_footer_extra.html.twig" %}