templates/mens/base/base_mens.twig line 1

  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     {% block head %}
  4.         {% include 'mens/base/head.html.twig' %}
  5.     {% endblock %}
  6.     {# GLOBAL STYLES #}
  7.         <link rel="stylesheet" type="text/css" href="{{ asset('assets/css/custom.css') }}">
  8.         <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" />
  9.         <script src="{{ asset("assets/js/cart.js") }}"></script>
  10.         <link rel="stylesheet" type="text/css" href="{{ asset('assets/css/responsive.css') }}">
  11.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  12.     {% block body %}
  13.         <body class="theme-color-18">
  14.            {% block header %}
  15.                    {% include 'mens/base/header_mens.twig' %}
  16.            {% endblock %}
  17.            {% block breadcrumb %}
  18.            {% endblock %}
  19.            {% block main %}
  20.            {% endblock %}
  21.         {% block newsletter %}
  22.                 {# {% include 'front_end/base/newsletter.twig' %} #}
  23.         {% endblock %}
  24.             {% block footer %}
  25.                 {% include 'mens/base/footer.twig' %}
  26.             {% endblock %}
  27.                    {% block cart_popup %}
  28.                 <!-- Add to cart bar -->
  29.                 <div id="cart_side" class=" add_to_cart right">
  30.                         <a href="javascript:void(0)" class="overlay" onclick="closeCart()"></a>
  31.                         <div class="cart-inner">
  32.                         <div class="cart_top">
  33.                                 <h3>{{ 'my cart' | trans({},'templates') }}</h3>
  34.                                 <div class="close-cart">
  35.                                 <a href="javascript:void(0)" onclick="closeCart()">
  36.                                         <i class="fa fa-times"></i>
  37.                                 </a>
  38.                                 </div>
  39.                         </div>
  40.                         <div class="cart_media">
  41.                         {% if app.session.get('cart') %}
  42.                                 <ul class="cart_product">
  43.                                         {% for cartItem in app.session.get('cart') %}
  44.                                                 <li>
  45.                                                         <div class="media">
  46.                                                         <a href="#">
  47.                                                                 <img alt="" class="me-3" src="{{ cartItem.image }}">
  48.                                                         </a>
  49.                                                         <div class="media-body">
  50.                                                                 <a href="#">
  51.                                                                 <h4>{{ cartItem.name }}</h4>
  52.                                                                 </a>
  53.                                                                 <h4>
  54.                                                                 <span>{{ cartItem.quantity }} x {{ cartItem.price }} EUR</span>
  55.                                                                 </h4>
  56.                                                         </div>
  57.                                                         </div>
  58.                                                         <div class="close-circle">
  59.                                                         <a href="#" onclick="cart.removeFromCart({{cartItem.id}},this)">
  60.                                                                 <i class="ti-trash"></i>
  61.                                                         </a>
  62.                                                         </div>
  63.                                                 </li>
  64.                                         {% endfor %}
  65.                                 </ul>
  66.                                 {% if app.session.get('total_price') %}
  67.                                 <ul class="cart_total">
  68.                                         <li>
  69.                                                 <div class="total">
  70.                                                 <h5>{{ 'Subtotal' | trans({},'templates') }} : <span id="cart_total">{{ app.session.get('total_price') }} EUR</span></h5>
  71.                                                 </div>
  72.                                         </li>
  73.                                         <li>
  74.                                                 <div class="buttons">
  75.                                                 <a href="{{ path('app_cart_index',{"gender": "mens"}) }}" class="btn btn-solid btn-xs view-cart">{{ 'view cart' | trans({},'templates') }}</a>
  76.                                                 {# <a href="#" class="btn btn-solid btn-xs checkout">checkout</a> #}
  77.                                                 </div>
  78.                                         </li>
  79.                                 </ul>
  80.                                 {% endif %} 
  81.                         {% else %}
  82.                                 <ul class="cart_product">
  83.                                 </ul>
  84.                                 <ul class="cart_total">
  85.                                 </ul>
  86.                                 <h5 id="cart_empty_msg"><span> {{ 'There are no items in your cart' | trans({},'templates') }}</span></h5>
  87.                          {% endif %}
  88.                         </div>
  89.                         </div>
  90.                 </div>
  91.                 <!-- Add to cart bar end-->
  92.         {% endblock %}
  93.            {% block js %}
  94.                    {% include 'mens/base/js.twig' %}
  95.            {% endblock %}
  96.         <script src="{{ asset('assets/js/addtocart.js') }}"></script>
  97.         <script src="{{ asset("assets/js/cart.js") }}"></script>
  98.         </body>
  99.     {% endblock %}
  100. </html>