templates/website/page/shop.html.twig line 1

  1. {% extends '@web/base.html.twig' %}
  2. {% if page is defined and page is not empty %}
  3.     {% set metaParams = {
  4.         'title': page.metaTitle ? page.metaTitle : page.title,
  5.         'metaDescription': page.metaDescription,
  6.         'metaKeywords': page.metaKeywords,
  7.         'image':(page.metaImage is defined ? page.metaImage : page.image is defined ? page.image : null)
  8.     } %}
  9. {% else %}
  10.     {% set metaParams = {} %}
  11. {% endif %}
  12. {% block meta %}
  13.     {% include '@web/parts/meta.html.twig' with metaParams %}
  14. {% endblock meta %}
  15. {% block content %}
  16.     <section class="section-shop"
  17.             {% if page and page.backgroundImage is not null %}
  18.         style="background-image: url('{{ page.backgroundImage }}');"
  19.             {% endif %}>
  20.         {% block header %}
  21.             {% include '@web/parts/header.html.twig' %}
  22.         {% endblock %}
  23.         <div class="my-container-fluid">
  24.         <div class="shop-wrapper">
  25.                     {% if shopSlider  is not empty %}
  26.                         <div class="slider slider-banner menuCourt-slick">
  27.                             {% for item in shopSlider %}
  28.                                 <div class="slick-slide">
  29.                                     <div class="item">
  30.                                         <img src="{{ item.image|imagine_filter('thumbnail_view') }}" width="100%" alt="{{ item.id }}">
  31.                                     </div>
  32.                                 </div>
  33.                             {% endfor %}
  34.                         </div>
  35.                     {% endif %}
  36.             <div class="title mt-4 mb-4 for-delivery">
  37.                 <span class=" color-darkblue">{{'Առաքման համար զանգահարել'|trans}}</span>
  38.                 <a class="color-darkblue" href="tel:{{ get_contacts().deliveryPhone|striptags }}">
  39.                     <span>{{ get_contacts().deliveryPhone|striptags }}</span>
  40.                 </a>
  41.             </div>
  42.                     {% if shop is not empty %}
  43.                         <div>
  44.                             <div class="shop-content" id="shop-content">
  45.                                 {% for item in shop %}
  46.                                     <div class="product">
  47.                                         <img src="{{ item.image is not empty ?  item.image|imagine_filter('thumbnail_slide') : '' }}" alt="{{ item.title }}">
  48.                                         <div class="info">
  49.                                             <div class="title color-darkblue">{{ item.title }}</div>
  50.                                             <div class="prices">
  51.                                                 {% if item.discountedPrice > 0 %}
  52.                                                     <div class="old">{{ item.discountedPrice }} ֏</div>
  53.                                                 {% endif %}
  54.                                                 <div class="new">{{ item.price }} ֏</div>
  55.                                             </div>
  56.                                         </div>
  57.                                     </div>
  58.                                 {% endfor %}
  59.                             </div>
  60.                             <button id="see-more-shop" class="btn-red see-more m-auto d-block">{{'Տեսնել ավելին'|trans}}</button>
  61.                         </div>
  62.                     {% endif %}
  63.                 </div>
  64.         </div>
  65.         {% block footer %}
  66.             {% include '@web/parts/footer.html.twig' %}
  67.         {% endblock %}
  68.         <div class="phone-call-wrapper">
  69.             <a href="tel:{{ get_contacts().deliveryPhone|striptags }}">
  70.             <div class="pulse">
  71.                  <i class="fa fa-phone"></i>
  72.             </div>
  73.             </a>
  74.         </div>
  75.     </section>
  76. {% endblock %}
  77. {% block javascripts %}
  78.     {{ parent() }}
  79.     <script src="{{ asset('scripts/ajaxRequests.js') }}"></script>
  80. {% endblock %}