custom/plugins/clerkio64/src/Resources/views/storefront/layout/header/header.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
  2. {% block layout_header %}
  3.     {{ parent() }}
  4.     {% if config('clerkio64.config.exitIntentRecommendationsEnabled') == 'true' %}
  5.         <link href="{{ asset('bundles/clerkio64/css/exit-intent.css') }}" rel="stylesheet">
  6.         {% set contents = config('clerkio64.config.exitIntentRecommendationsContent') | split(',') %}
  7.         {% for content in contents %}
  8.             <span class="clerk clerk-popup clerk-popup-hidden container"
  9.                   data-template="@{{ content | replace({ ' ': '' }) }}"
  10.                   data-exit-intent="true"></span>
  11.             <script>
  12.                 Clerk('on', 'rendered', '#exit-intent', function (content, data) {
  13.                     Clerk('ui', 'popup', '#exit-intent', 'show');
  14.                 });
  15.             </script>
  16.         {% endfor %}
  17.     {% endif %}
  18. {% endblock %}