templates/front_end/base/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     {% block head %}
  4.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  5.         {% include 'front_end/base/_head.html.twig' %}
  6.     {% endblock %}
  7.     {% block body %}
  8.         <body class="theme-color-18">
  9.            {% block header %}
  10.                    {% include 'front_end/base/_header.html.twig' %}
  11.            {% endblock %}
  12.            {% block breadcrumb %}
  13.            {% endblock %}
  14.            {% block main %}
  15.            {% endblock %}
  16.         {% block newsletter %}
  17.                 {# {% include 'front_end/base/newsletter.twig' %} #}
  18.         {% endblock %}
  19.             {% block footer %}
  20.                 {% include 'front_end/base/_footer.html.twig' %}
  21.             {% endblock %}
  22.         {% block cart_popup %}
  23.                 <!-- Add to cart bar -->
  24.                 <div id="cart_side" class=" add_to_cart right">
  25.                         <a href="javascript:void(0)" class="overlay" onclick="closeCart()"></a>
  26.                         <div class="cart-inner">
  27.                         <div class="cart_top">
  28.                                 <h3>{{ 'my cart' | trans({},'templates')}}</h3>
  29.                                 <div class="close-cart">
  30.                                 <a href="javascript:void(0)" onclick="closeCart()">
  31.                                         <i class="fa fa-times"></i>
  32.                                 </a>
  33.                                 </div>
  34.                         </div>
  35.                         <div class="cart_media">
  36.                         {% if app.session.get('cart') %}
  37.                                 <ul class="cart_product">
  38.                                         {% for cartItem in app.session.get('cart') %}
  39.                                         <li>
  40.                                                 <div class="media">
  41.                                                 <a href="#">
  42.                                                         <img alt="" class="me-3" src="{{ cartItem.image }}">
  43.                                                 </a>
  44.                                                 <div class="media-body">
  45.                                                         <a href="#">
  46.                                                         <h4>{{ cartItem.name }}</h4>
  47.                                                         </a>
  48.                                                         <h4>
  49.                                                         <span>{{ cartItem.quantity }} x {{ cartItem.price }} EUR</span>
  50.                                                         </h4>
  51.                                                 </div>
  52.                                                 </div>
  53.                                                 <div class="close-circle">
  54.                                                 <a href="#" onclick="cart.removeFromCart({{cartItem.id}},this)">
  55.                                                         <i class="ti-trash"></i>
  56.                                                 </a>
  57.                                                 </div>
  58.                                         </li>
  59.                                         {% endfor %}
  60.                                 </ul>
  61.                                  {% if app.session.get('total_price') %}
  62.                                         <ul class="cart_total">
  63.                                                 <li>
  64.                                                         <div class="total">
  65.                                                         <h5>{{ 'subtotal' | trans({},'templates') }} : <span>{{ app.session.get('total_price') }}</span></h5>
  66.                                                         </div>
  67.                                                 </li>
  68.                                                 <li>
  69.                                                         <div class="buttons">
  70.                                                         <a href="{{ path('app_cart_index_home') }}" class="btn btn-solid btn-xs view-cart">{{ 'view cart' | trans({},'templates') }}</a>
  71.                                                         {# <a href="#" class="btn btn-solid btn-xs checkout">checkout</a> #}
  72.                                                         </div>
  73.                                                 </li>
  74.                                         </ul>
  75.                                 {% endif %}
  76.                          {% else %}
  77.                                 <h5><span> {{ 'There are no items in your cart' | trans({},'templates') }}</span></h5>
  78.                          {% endif %}
  79.                         </div>
  80.                         </div>
  81.                 </div>
  82.                 <!-- Add to cart bar end-->
  83.         {% endblock %}
  84.            {% block js %}
  85.                    {% include 'front_end/base/_js.html.twig' %}
  86.            {% endblock %}
  87.         </body>
  88.     {% endblock %}
  89.     <script src="{{ asset("assets/js/cart.js") }}"></script>
  90.     <script src="{{ asset('assets/js/modules.js') }}"></script>
  91. </html>