templates/web/admin/header/parts/js_static.twig line 1

Open in your IDE?
  1. {##
  2.  # Header part
  3.  #
  4.  # @ListChild (list="head", weight="100")
  5.  #}
  6. {# TODO : Remove the whole static code into the comment model#}
  7. <script type="text/javascript">
  8. var xliteConfig = {
  9.   script:                        '{{ this.getAdminScript()|raw }}',
  10.   target:                        '{{ this.getTarget()|raw }}',
  11.   language:                      '{{ this.currentLanguage.getCode() }}',
  12.   success_lng:                   '{{ t('Success') }}',
  13.   base_url:                      '{{ this.getBaseShopURL() }}',
  14.   form_id:                       '{{ this.get('xlite').formId }}',
  15.   form_id_name:                  '{{ constant('XLite::FORM_ID') }}',
  16.   zone:                          'admin',
  17.   role:                          '{{ this.getLoggedUserRole() }}',
  18.   developer_mode:                {{ this.isDeveloperMode() ? 'true' : 'false' }},
  19.   display_upgrade_notifications: {{ this.isUpgradeFunctionalityDisplayed() ? 'true' : 'false' }},
  20.   marketplace_api_url:           '{{ this.getMarketplaceApiUrl() }}'
  21. };
  22. </script>