app/Plugin/Gift42/Resource/template/front/Product/detail.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of the Gift42 Plugin
  3. Copyright (C) 2023 Diezon.
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% block stylesheet %}
  8.     {% if isGiftDisableProduct(Product) %}
  9.         <style>
  10.             .detail-gift-explanation {
  11.                 margin-bottom: 8px;
  12.             }
  13.         </style>
  14.     {% endif %}
  15. {% endblock %}
  16. {% block javascript %}
  17.     {% if isGiftDisableProduct(Product) %}
  18.         <script>
  19.             $(function () {
  20.                 $('.detail-gift-explanation').insertAfter('.ec-productRole__actions');
  21.             });
  22.         </script>
  23.     {% endif %}
  24. {% endblock javascript %}
  25. {% block main %}
  26.     {% if isGiftDisableProduct(Product) %}
  27.         <div class="detail-gift-explanation">
  28.             {{ 'front.product_detail.gift_disable_product_description'|trans }}
  29.         </div>
  30.     {% endif %}
  31. {% endblock %}