templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}AFI importExport Market{% endblock %}
  3. {% block body %}
  4.     <div style="background: #f3f3f3; padding-top: 7px">
  5.         {% if homeSlider %}
  6.             {{ include('partials/home_slider.html.twig') }}
  7.         {% else %}
  8.         {% endif %}
  9.         <div class="d-none d-xl-block pl-5 pr-5" style="margin-top: 17px">
  10.             <div class="row  justify-content-center">
  11.                 {% for market in mymarkets|shuffle|slice(0,4) %}
  12.                     {% if market|length > 0 %}
  13.                         <div class="col-3" style="border: 6px solid #f3f3f3">
  14.                             <div class="row justify-content-center" style="background: #fff; border-radius: 10px">
  15.                                 <div class="col-12 font-weight-bold font-monospace  p-2" >
  16.                                     &nbsp; &nbsp;<img width="40px" height="40px" style="border-radius: 50%" src="/assets/uploads/mymarket/{{ market.image }}"> {{ market.name|upper|trans }}
  17.                                 </div>
  18.                                 {% for category in market.categories|toArray|shuffle|slice(0,1) %}
  19.                                     {% for product in category.products|toArray|shuffle|slice(0,2) %}
  20.                                         <div class=" col-6" >
  21.                                             {{ include('partials/product_item_tag_or_categorie_market.html.twig',{'product': product}) }}
  22.                                         </div>
  23.                                     {% else %}
  24.                                         <div class=" col-6 ">
  25.                                             {{ include('partials/default.html.twig') }}
  26.                                         </div>
  27.                                     {% endfor %}
  28.                                 {% else %}
  29.                                     <div class="col-6">
  30.                                         {{ include('partials/default.html.twig') }}
  31.                                     </div>
  32.                                 {% endfor %}
  33.                             </div>
  34.                         </div>
  35.                     {% endif %}
  36.                 {% endfor %}
  37.             </div>
  38.         </div>
  39.         <div class="row product_index">
  40.             <div class="col-lg-6">
  41.                 <h2 style="background: white" class="ml-4 mr-4  p-3">{{ 'Special Offer'|trans }} <b>{{ 'Products'|trans }}</b></h2>
  42.                 <div class="" style="margin-top: -100px">
  43.                     <div class="card-body">
  44.                         <div class="row ">
  45.                             <div class="col-12" style="background: #f3f3f3">
  46.                                 <div class="releted_prslider  slick_slider_3 mt-4" data-margin="20" data-slides-to-show="6" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
  47.                                     {% for product in productSpecialOffer|shuffle|slice(0,24) %}
  48.                                         {{ include('partials/product_item.html.twig',{'product': product}) }}
  49.                                     {% endfor %}
  50.                                 </div>
  51.                             </div>
  52.                         </div>
  53.                     </div>
  54.                 </div>
  55.             </div>
  56.             <div class="col-lg-6">
  57.                 <h2 style="background: white" class="ml-4 mr-4  p-3">{{ 'In promotional'|trans }} <b>{{ 'Products'|trans }}</b></h2>
  58.                 <div class="" style="margin-top: -100px">
  59.                     <div class="card-body">
  60.                         <div class="row ">
  61.                             <div class="col-12" style="background: #f3f3f3">
  62.                                 <div class="releted_prslider  slick_slider_3 mt-4" data-margin="20" data-slides-to-show="6" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
  63.                                     {% for product in Promotional|shuffle|slice(0,24) %}
  64.                                         {{ include('partials/product_item_promotianal.html.twig',{'product': product}) }}
  65.                                     {% endfor %}
  66.                                 </div>
  67.                             </div>
  68.                         </div>
  69.                     </div>
  70.                 </div>
  71.             </div>
  72.         </div>
  73.         <div class="d-none d-xl-block product_index" style="margin-top: -25px">
  74.             <h2>{{ 'Categories of '|trans }} <b>{{ 'Products'|trans }}</b></h2>
  75.             <div class="row  justify-content-center" style="margin-top: -50px">
  76.                 {% for market in mymarkets|shuffle|slice(0,3) %}
  77.                     {% for category in market.categories|toArray|shuffle|slice(0,1) %}
  78.                         {% if category|length > 0 %}
  79.                             <div class="col-3" style="border: 6px solid #f3f3f3">
  80.                                 <div class="row justify-content-center" style="background: #fff; border-radius: 10px">
  81.                                     <div class="col-12 font-weight-bold font-monospace  p-2" >
  82.                                         &nbsp; &nbsp;<img width="40px" height="40px" style="border-radius: 50%" src="/assets/uploads/categories/{{ category.image }}"> {{ category.name|upper|trans }}
  83.                                     </div>
  84.                                     {% for product in category.products|toArray|shuffle|slice(0,6) %}
  85.                                         <div class=" col-4" >
  86.                                             {{ include('partials/product_item_tag_or_categorie_market.html.twig',{'product': product}) }}
  87.                                         </div>
  88.                                     {% else %}
  89.                                         <div class=" col-4 ">
  90.                                             {{ include('partials/default.html.twig') }}
  91.                                         </div>
  92.                                     {% endfor %}
  93.                                 </div>
  94.                             </div>
  95.                         {% endif %}
  96.                     {% endfor %}
  97.                 {% endfor %}
  98.             </div>
  99.         </div>
  100.         <div class="container product_index">
  101.             <h2>{{ 'New Arrival'|trans }} <b>{{ 'Products'|trans }}</b></h2>
  102.             <div class="row justify-content-center" style="margin-top: -40px">
  103.                 {% for product in productNewArrival|shuffle|slice(0,8) %}
  104.                     {% if product.etat == true %}
  105.                         <div class="col-xl-3 col-lg-3 col-md-4 col-sm-6 col-xs-12 col-12">
  106.                             {{ include('partials/product_no_quick_view.html.twig',{'product':product}) }}
  107.                         </div>
  108.                     {% endif %}
  109.                 {% endfor %}
  110.             </div>
  111.         </div>
  112.         <div class=" product_index" style="background: #e7f0fe; margin-top: -7px">
  113.             <div class="primary-overlay parallax-container ">
  114.                 <div class="parallax-content section-xl bg-white text-dark text-md-left">
  115.                     <div class="container ">
  116.                         <div class="row justify-content-end">
  117.                             <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6 ">
  118.                                 <div class="cta-moder p-5">
  119.                                     <h3 class="cta-modern-title wow fadeInRight font-weight-bolder font-monospace">{{ 'WHY CHOOSE US ?'|trans|upper }}</h3>
  120.                                     <p class="lead text-dark">{{ 'Alliance Force internationale offer you the best and high quality of service.'|trans }}</p>
  121.                                     <p class="cta-modern-text text-danger oh-desktop" data-wow-delay=".1s"><span class="cta-modern-decor wow slideInLeft"></span><span class="d-inline-block wow slideInDown text-dark font-monospace">AFI SARL</span></p><a class="btn btn-fill-line font-monospace font-weight-bold  text-white" href="{{ path('shop') }}" data-wow-delay=".2s"><i class="linearicons-cart-exchange"></i> {{ 'Go to shop page'|trans }}</a>
  122.                                 </div>
  123.                             </div>
  124.                             <div class="col-sm-4 col-md-5 col-lg-6 pl-lg-3 text-left p-5 d-none d-xl-block d-lg-block">
  125.                                 <ul style="list-style: none;" class="d-inline-block d-sm-block wow fadeInUp">
  126.                                     <li style="font-size: 20pt;padding-top: 0pt">&nbsp;&nbsp;&nbsp;<span class="badge badge-dark bg-gray-7 text-white text-bold"><a class="linearicons-sun"></a></span>&nbsp;&nbsp;&nbsp; {{ 'Speed in work'|trans }} </li>
  127.                                     <li style="font-size: 20pt;padding-top: 40pt">&nbsp;&nbsp;&nbsp;<span class="badge badge-dark bg-gray-7 text-white text-bold"><a class="linearicons-inbox"></a></span>&nbsp;&nbsp;&nbsp; {{ 'Reliability and Confidence'|trans }} </li>
  128.                                     <li style="font-size: 20pt;padding-top: 40pt">&nbsp;&nbsp;&nbsp;<span class="badge badge-dark bg-gray-7 text-white text-bold"><a class="linearicons-thumbs-up"></a></span>&nbsp;&nbsp;&nbsp; {{ 'High quality of service'|trans }} </li>
  129.                                 </ul>
  130.                             </div>
  131.                         </div>
  132.                     </div>
  133.                 </div>
  134.             </div>
  135.         </div>
  136.         <div class="row product_index">
  137.             <div class="col-lg-6">
  138.                 <h2>{{ 'Best Seller'|trans }} <b>{{ 'Products'|trans }}</b></h2>
  139.                 <div class="" style="margin-top: -80px">
  140.                     <div class="card-body">
  141.                         <div class="row ">
  142.                             <div class="col-12" style="background: #f3f3f3">
  143.                                 <div class="releted_prslider  slick_slider_3 mt-4" data-margin="20" data-slides-to-show="3" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
  144.                                     {% for product in productBestSeller|shuffle|slice(0,24) %}
  145.                                         {{ include('partials/product_item_BestSeller.html.twig',{'product': product}) }}
  146.                                     {% endfor %}
  147.                                 </div>
  148.                             </div>
  149.                         </div>
  150.                     </div>
  151.                 </div>
  152.             </div>
  153.             <div class="col-lg-6">
  154.                 <h2>{{ 'Featured'|trans }} <b>{{ 'Products'|trans }}</b></h2>
  155.                 <div class="" style="margin-top: -80px">
  156.                     <div class="card-body" >
  157.                         <div class="row ">
  158.                             <div class="col-12" style="background: #f3f3f3">
  159.                                 <div class="releted_prslider  slick_slider_3 mt-4" data-margin="20" data-slides-to-show="3" data-responsive='{"0":{"items": "1"}, "481":{"items": "2"}, "768":{"items": "3"}, "1199":{"items": "4"}}'>
  160.                                     {% for product in productFeatured|shuffle|slice(0,24) %}
  161.                                         {{ include('partials/product_item_Featured.html.twig',{'product': product}) }}
  162.                                     {% endfor %}
  163.                                 </div>
  164.                             </div>
  165.                         </div>
  166.                     </div>
  167.                 </div>
  168.             </div>
  169.         </div>
  170.         <div class="container product_index" style="margin-top: 10px">
  171.             <h2>{{ 'AFI SARL'|trans }} <b>{{ 'Import Export'|trans }}</b></h2>
  172.             <div class="row">
  173.                 <div class="col-lg-6">
  174.                     <div class="card" style="background:#fff; ">
  175.                         <div class="card-body">
  176.                             <div class="message-flash">
  177.                                 <div id="alert-msg" class="col-md-12" role="alert"></div>
  178.                             </div>
  179.                             <div id="div_field_form_id">
  180.                                 {{ render(path('contact_form')) }}
  181.                             </div>
  182.                         </div>
  183.                     </div>
  184.                 </div>
  185.                 <div class="col-lg-6">
  186.                     <div class="row">
  187.                         <div class="col-xl-12 col-lg-12 col-md-12">
  188.                             <div class="contact_wrap bg-white contact_style3">
  189.                                 <div class="contact_icon">
  190.                                     <i class="linearicons-map-marker"></i>
  191.                                 </div>
  192.                                 <div class="contact_text">
  193.                                     <span>{{ 'CHINA - GUANGZHOU' }}</span>
  194.                                     <p>XIAO BEI LU N°63, HUAYU BUILDING ROOM 13K, YUE XIU DISTRICT</p>
  195.                                 </div>
  196.                             </div>
  197.                         </div>
  198.                         <div class="col-xl-12 col-lg-12 col-md-12">
  199.                             <div class="contact_wrap contact_style3 bg-white">
  200.                                 <div class="contact_icon">
  201.                                     <i class="linearicons-map-marker"></i>
  202.                                 </div>
  203.                                 <div class="contact_text">
  204.                                     <span>{{ 'CHINA - YIWU' }}</span>
  205.                                     <p>YONGSHENG XIAOQU, BLOCK 96, 3<sup>ème</sup>NIVEAU</p>
  206.                                 </div>
  207.                             </div>
  208.                         </div>
  209.                         <div class="col-xl-12 col-lg-12 col-md-12">
  210.                             <div class="contact_wrap contact_style3 bg-white">
  211.                                 <div class="contact_icon">
  212.                                     <i class="linearicons-map-marker"></i>
  213.                                 </div>
  214.                                 <div class="contact_text">
  215.                                     <span>{{ 'RD CONGO - LUBUMBASHI' }}</span>
  216.                                     <p>1138, AV KASAI COIN TABORA COMMUNE LUBUMBASHI</p>
  217.                                 </div>
  218.                             </div>
  219.                         </div>
  220.                         <div class="col-xl-12 col-lg-12 col-md-12">
  221.                             <div class="contact_wrap contact_style3 bg-white">
  222.                                 <div class="contact_icon">
  223.                                     <i class="linearicons-map-marker"></i>
  224.                                 </div>
  225.                                 <div class="contact_text">
  226.                                     <span>{{ 'RD CONGO - KINSHASA' }}</span>
  227.                                     <p>254, KINSHASA NGOMBE</p>
  228.                                 </div>
  229.                             </div>
  230.                         </div>
  231.                     </div>
  232.                 </div>
  233.             </div>
  234.         </div>
  235.         <br>
  236.         <br>
  237.         <br>
  238.         {{ include('partials/modalQuickView.html.twig') }}
  239.     </div>
  240. {% endblock %}
  241. {% block javascripts %}
  242.     <script type="text/javascript">
  243.         var input = document.querySelector("#contact_phone"),
  244.             output = document.querySelector("#error-msg");
  245.         var iti = window.intlTelInput(input, {
  246.             nationalMode: true,
  247.             preferredCountries: [ "cd", "cn" ],
  248.             separateDialCode: true,
  249.             autoHideDialCode: true,
  250.             utilsScript: "assets/js/utils.js?1613236686837"
  251.         });
  252.         var handleChange = function() {
  253.             var text = (iti.isValidNumber()) ? "International: " + iti.getNumber() : "Please enter a number below";
  254.             var textNode = document.createTextNode(text);
  255.             output.innerHTML = "";
  256.             input.value = iti.getNumber();
  257.         };
  258.         // listen to "keyup", but also "change" to update when the user selects a country
  259.         input.addEventListener('change', handleChange);
  260.         input.addEventListener('keyup', handleChange);
  261.         $(document).ready(function(){
  262.             $('.js-categories-multiple').select2({
  263.                 width: 'resolve',
  264.                 theme: 'classic',
  265.                 placeholder: 'Select option'
  266.             });
  267.         })
  268.     </script>
  269. {% endblock %}