templates/frontend/index/index.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend.html.twig' %}
  2. {% set countActivePackages = 0 %}
  3. {% block content %}
  4.     {% include 'frontend/general/customer-aboutus.html.twig' with {'customer': customer} %}
  5.     {% for areas in sortedAreasArray %}
  6.         {% if areas.CUSTOMER_PACKAGE.draft == 0 or (is_granted('ROLE_CUSTOMER_ADMIN') and customer.user.id == app.user.id and areas.CUSTOMER_PACKAGE.draft == 1) %}
  7.             {% if is_granted('ROLE_CUSTOMER_ADMIN') and customer.user.id == app.user.id and areas.CUSTOMER_PACKAGE.draft == 1 %}
  8.                 {% include 'frontend/index/customer-package/admin-preview.html.twig' %}
  9.             {% endif %}
  10.             {% set countActivePackages = countActivePackages + 1 %}
  11.             {% include 'frontend/index/customer-package/package.html.twig' with {
  12.                 'sortedAreasArray': areas,
  13.                 'customerPackage': areas.CUSTOMER_PACKAGE
  14.             } %}
  15.         {% endif %}
  16.     {% endfor %}
  17.     {% include 'frontend/index/customer-package/no-active-packages.html.twig' %}
  18.     {% include 'frontend/general/latest-sponsor.html.twig' %}
  19.     {% include 'frontend/general/how-to.html.twig' with {'customer': customer} %}
  20.     {% include 'frontend/general/faq.html.twig' with {'customer': customer} %}
  21. {% endblock %}
  22. {% block modal %}
  23.     {% include 'frontend/index/modal/modal__area-sold.html.twig' %}
  24.     {% include 'frontend/cart/modal/add-to-cart__modal-skeleton.twig' %}
  25.     {% include 'frontend/index/modal/modal__remove-from-cart.html.twig' %}
  26. {% endblock %}
  27. {% block js_bottom %}
  28.     {% apply spaceless %}
  29.     <script type="text/javascript">
  30.         $(document).ready(function () {
  31.             refreshShoppingCart();
  32.         });
  33.     </script>
  34.     {% include '/frontend/index/js/shopping-cart.html.twig' %}
  35.     {% include '/frontend/index/js/add-to-cart.html.twig' %}
  36.     {% include '/frontend/index/js/remove-from-cart.html.twig' %}
  37.     {% include '/frontend/index/js/toggle-production-and-setup.html.twig' %}
  38.     {% endapply %}
  39. {% endblock %}