templates/web/customer/header/parts/script_config.twig line 1

Open in your IDE?
  1. {##
  2.  # Head list children
  3.  #
  4.  # @ListChild (list="head", weight="1300")
  5.  #}
  6. <script>
  7.   var xliteConfig = {
  8.     script: '{{ this.getScript()|raw }}',
  9.     {% if this.isDisplayAdminScript() %}
  10.     admin_script: '{{ this.getAdminScript()|raw }}',
  11.     {% endif %}
  12.     zone:            'customer',
  13.     target:          '{{ this.getTarget()|raw }}',
  14.     language:        '{{ this.currentLanguage.getCode() }}',
  15.     ajax_prefix:     '{{ this.getAjaxPrefix() }}',
  16.     form_id:         '{{ this.get('xlite').formId }}',
  17.     form_id_name:    '{{ constant('XLite::FORM_ID') }}',
  18.     developer_mode:  {{ this.isDeveloperMode() ? 'true' : 'false' }},
  19.     clean_url:       'true',
  20.     clean_urls_base: '{{ this.cleansUrlsBase() }}',
  21.   };
  22. </script>