custom/apps/ShopStudioHotjarCloud/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_body_script %}
  3.     {{ parent() }}
  4.     {% block shop_studio_hotjar_cloud_base_body_script %}
  5.         {% set shopStudioHotjarCloud = config('ShopStudioHotjarCloud.config') %}
  6.         {% if shopStudioHotjarCloud is not empty and shopStudioHotjarCloud.hotjarId|trim is not empty %}
  7.             {% set shopStudioHotjarCloudConfig = {
  8.                 hotjarId: shopStudioHotjarCloud.hotjarId|trim
  9.             } %}
  10.             {% block shop_studio_hotjar_cloud_base_body_script_tag %}
  11.                 <script data-shop-studio-hotjar-cloud="true"
  12.                         data-shop-studio-hotjar-cloud-options="{{ shopStudioHotjarCloudConfig|json_encode }}"></script>
  13.             {% endblock %}
  14.         {% endif %}
  15.     {% endblock %}
  16. {% endblock %}