templates/front/product.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block metaTags %}
  3.     <meta name="description" content="{{ product.metaDescription ? product.metaDescription : product.description}}">
  4.     <title>{{ product.metaTitle ? product.metaTitle : product.title ~ " - DMD INOX"}}</title>
  5.     <meta property="og:title" content="{{ product.metaTitle ? product.metaTitle : product.title }}">
  6.     <meta property="og:description" content="{{ product.metaDescription ? product.metaDescription : product.description}}">
  7.     <meta property="og:image" content="{{ absolute_url(asset(product.productFileName ? vich_uploader_asset(product, 'productFile') : 'assets/img/sans-img-1-dmd-inox.jpg')) }}">
  8. {% endblock %}
  9. {% block body %}
  10.     {% include "front/menuBg.html.twig" with {'menu':getProductMenu(product)} %}
  11.     <section class="container mat-30 text-center text-sm-left">
  12.         <h1 class="title mab-30">{{ product.title }}</h1>
  13.     </section>
  14.     <div class="inverseMobile">
  15.         <section class="container mat-30 text-center text-sm-left {{ productSchemas|length > 0 or product.productSchemaFileName ? 'mab-50' }}">
  16.             <div class="row">
  17.                 {% if product.productMedia|length > 0 or product.productSchemaFileName %}
  18.                     {% include "front/prodPhotCol.html.twig" with {'productPhotos':null,'title':product.photoTitle, "img":asset(product.productFileName ? vich_uploader_asset(product, 'productFile') : 'assets/img/sans-img-1-dmd-inox.jpg') | imagine_filter('medium'), "id":"nhehft"} %}
  19.                     {% include "front/prodPhotCol.html.twig" with {'productPhotos':product.productMedia, 'title':product.schemaTitle, "img":(product.productSchemaFileName ? (asset(vich_uploader_asset(product, 'productSchemaFile')) | imagine_filter('medium')) : null), "id":"utjoqt", "schema":"schema"} %}
  20.                 {% else %}
  21.                     <div class="col-sm-6">
  22.                         {% include "front/prodInfo.html.twig" %}
  23.                         {% if productDocuments %}
  24.                             {% include "front/prodDoc.html.twig" %}
  25.                         {% endif %}
  26.                     </div>
  27.                     {% include "front/prodPhotCol.html.twig" with {'title':product.photoTitle, "img":asset(product.productFileName ? vich_uploader_asset(product, 'productFile') : 'assets/img/sans-img-1-dmd-inox.jpg') | imagine_filter('medium'), "id":"nhehft"} %}
  28.                 {% endif %}
  29.             </div>
  30.         </section>
  31.         {% if productSchemas|length > 0 or product.productSchemaFileName %}
  32.             <section class="bgc-F1F5F6 pay-50 text-center text-sm-left">
  33.                 <div class="container">
  34.                     <div class="row">
  35.                         <div class="col-sm-6">
  36.                             {% include "front/prodInfo.html.twig" %}
  37.                         </div>
  38.                         {% if productDocuments %}
  39.                             <div class="col-sm-6">
  40.                                 {% include "front/prodDoc.html.twig" %}
  41.                             </div>
  42.                         {% endif %}
  43.                     </div>
  44.                 </div>
  45.             </section>
  46.         {% endif %}
  47.     </div>
  48.     {% if product.descriptionSpreadsheet %}
  49.         <section class="pat-60 container tableProductContainer">
  50.             <h2 class="fetpdc mab-30">
  51.                 <i class="fa-solid fa-objects-column mar-5"></i>
  52.                 {{ "product.car.title"|trans|raw }}
  53.             </h2>
  54.             {% if product.descriptionSpreadsheet %}
  55.                 <div class="mab-30 container-table">
  56.                     {{ product.descriptionSpreadsheet|raw }}
  57.                 </div>
  58.             {% endif %}
  59. {#            <div class="max--15">#}
  60. {#                {% for productSpreadsheet in product.productSpreadsheets %}#}
  61. {#                    <div class="col mab-30">#}
  62. {#                        <div class="bgc-F1F5F6 pa-15 text-center title1">#}
  63. {#                            {{ productSpreadsheet.title }}#}
  64. {#                        </div>#}
  65. {#                        <div class="tableProduct">#}
  66. {#                            <div class="header line">#}
  67. {#                                {% for headerValue in productSpreadsheet.headers %}#}
  68. {#                                    <div class="bgc-355763 zytnbh value {% if loop.last %}strong{% endif %}">#}
  69. {#                                        {{ headerValue }}#}
  70. {#                                    </div>#}
  71. {#                                {% endfor %}#}
  72. {#                            </div>#}
  73. {#                            {% for spreadsheetLine in productSpreadsheet.spreadsheetLines %}#}
  74. {#                                <div class="line {% if loop.index is even %}even{% endif %}">#}
  75. {#                                    {% for field in spreadsheetLine.fields %}#}
  76. {#                                        <div class="nfyfci value {% if loop.last %}strong{% endif %}">#}
  77. {#                                            {{ field }}#}
  78. {#                                        </div>#}
  79. {#                                    {% endfor %}#}
  80. {#                                </div>#}
  81. {#                            {% endfor %}#}
  82. {#                        </div>#}
  83. {#                    </div>#}
  84. {#                {% endfor %}#}
  85. {#            </div>#}
  86.             <div class="bgc-355763 pa-15 text-center jzcxjf mab-60">
  87.                 <i class="fa fa-circle-info mar-5"></i>
  88.                 <span class="font-italic">{{ "product.car.info"|trans|raw }}</span>
  89.             </div>
  90.         </section>
  91.     {% endif %}
  92.     <section class="container mab-65 text-center text-sm-left">
  93.         <div class="bgp-top bgs-cover w-100 pay-50 pax-65"
  94.              style="background-image:url({{ asset('assets/img/prodconta.png')|imagine_filter('large') }})">
  95.             <div class="cmzchw mab-4">
  96.                 {{ "product.contact.subtitle"|trans|raw }}
  97.             </div>
  98.             <h2 class="title2 mab-12">
  99.                 {{ "product.contact.title"|trans|raw }}
  100.             </h2>
  101.             <div class="cdowax mab-25">
  102.                 {{ "product.contact.content"|trans|raw }}
  103.             </div>
  104.             <div>
  105.                 <a href="{{ path('front_contact', {'slug':0, "productSlug":product.slug}) }}" class="btn btn1">
  106.                     <i class="fa fa-envelope mar-5"></i>
  107.                     {{ "product.contact.btn"|trans|raw }}
  108.                 </a>
  109.             </div>
  110.         </div>
  111.     </section>
  112.     <section class="d-flex justify-content-center align-items-center cg-20 mab-60">
  113.         <img src="{{ asset('assets/img/line.png')|imagine_filter('large') }}" alt="DMD INOX"
  114.              class="w-100 flex-shrink-1"/>
  115.         <div class="flex-shrink-0">
  116.             <h2 class="ewbbhw">
  117.                 {{ "product.share.title"|trans|raw }}
  118.             </h2>
  119.             <div id="share" class="text-center"
  120.                  data-facebook="{{ asset('assets/img/facebook-brands.svg') }}"
  121.                  data-linkedin="{{ asset('assets/img/linkedin-brands.svg') }}"
  122.                  data-twitter="{{ asset('assets/img/twitter-brands.svg') }}"
  123.                  ></div>
  124.         </div>
  125.         <img src="{{ asset('assets/img/line.png')|imagine_filter('large') }}" alt="DMD INOX"
  126.              class="w-100 flex-shrink-1"/>
  127.     </section>
  128.     {% if relatedProducts and not product.isCustom %}
  129.         {% include "front/prodSlickSection.html.twig" with {'products':relatedProducts, "subtitle":"product.related.subtitle"|trans,"title":"product.related.title"|trans,"related":true} %}
  130.     {% endif %}
  131. {% endblock %}