templates/account/offer_bar.html.twig line 1

Open in your IDE?
  1. {% if is_user_advertiser(app.user) %}
  2.     {% set offer = offer() %}
  3.     {% if offer != null and app.user.offerBarHidden == null %}
  4.         <div class="offer-bar d-none" id="offer-bar">
  5.             <p class="text">{{ offer|raw }}</p>
  6.             <button class="btn" type="button" id="close_offer_bar" onclick="closeOfferBar()"><i><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24">
  7.                         <path fill="#fff" d="M19 6.4L17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6L19 6.4z" opacity=".4"/>
  8.                     </svg></i>
  9.             </button>
  10.         </div>
  11.         <script>
  12.             function closeOfferBar() {
  13.                 fetch('{{ path('account.offer_bar.hide') }}', { method: 'POST' });
  14.             }
  15.         </script>
  16.     {% endif %}
  17. {% endif %}