templates/templatesTheme/2_cafe/main.html.twig line 1

Open in your IDE?
  1. {% extends    dir ~ '/base.html.twig' %}
  2. {% block body %}
  3.     <div class="top">
  4.         {% set content = include('/templatesTheme/2_cafe/header.html.twig') %}
  5.         {% autoescape false %}
  6.             {{ content }}
  7.         {% endautoescape %}
  8.         <div style="background-image: url({{ settings.ImageHeader }});" class="background_top">
  9.             <div class="darkBlock"></div>
  10.         </div>
  11.         <div class="content-slide col-lg-7 col-md-10 col-12">
  12.             <h1 class="text-center"><span class="text-top-h1">
  13. {#                    Аква12 | Йошкар-Ола#}
  14.                     {{ settings.TitleHeaderH1 }}
  15.                 </span></h1>
  16.             <h3 class="text-center"><span class="text-top-h3">
  17. {#                    Питомник аквариумных растений для акваскейпинга#}
  18.                     {{ settings.TitleHeaderH2 }}
  19.                 </span>
  20.             </h3>
  21.         </div>
  22.     </div>
  23.     <div style="margin: 30px auto; display: block; text-align: center"
  24.          class="container row row_products_list row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-lg-6">
  25.         {% for item in categories %}
  26.             <a style="color: black;" href="/catalog/{{ item.id }}" class="col categ d-inline-block">
  27.                 <div class="card h-100 category_card"
  28.                      style="color: #726b6b; letter-spacing: 1px; line-height: 1;  font-weight: bold; text-align: center">
  29.                     <div class="image category-img">
  30.                         <img src="{{ item.image?item.image:'/img/no_image.png' }}"
  31.                              class="card-img-top" style="border-radius: 5px" alt="...">
  32.                     </div>
  33.                     <div class="p-1">
  34.                         <div class="">{{ item.name }}</div>
  35.                     </div>
  36.                 </div>
  37.             </a>
  38.         {% endfor %}
  39.     </div>
  40. {% endblock body %}