vendor/pimcore/pimcore/bundles/CoreBundle/Resources/views/Targeting/targetingCode.html.twig line 1

Open in your IDE?
  1. {% block beforeScriptTag %}{{ blocks.beforeScriptTag|raw }}{% endblock %}
  2. <script>
  3.     {% block beforeScript %}{{ blocks.beforeScript|raw }}{% endblock %}
  4.     {% block script %}
  5.     {% autoescape 'js' %}
  6.     var _ptg = _ptg || {};
  7.     _ptg.options = _ptg.options || {};
  8.     {% if inDebugMode %}
  9.     _ptg.options.log = true;
  10.     {% endif %}
  11.     {% if dataProviderKeys is not empty %}
  12.     _ptg.dataProviderKeys = {{ dataProviderKeys|json_encode|raw }};
  13.     {% endif %}
  14.     {% endautoescape %}
  15.     {% endblock %}
  16.     {% block afterScript %}{{ blocks.afterScript|raw }}{% endblock %}
  17. </script>
  18. {% block afterScriptTag %}{{ blocks.afterScriptTag|raw }}{% endblock %}
  19. {% block targetingScript %}
  20.     <script src="{{ asset('bundles/pimcorecore/js/targeting.js') }}"></script>
  21. {% endblock %}