templates/pages/project/section/single-project.html.twig line 1

Open in your IDE?
  1. <div id="single-project-desktop" class="page--mainwrap p-0 slideJs single-project single-project-desktop">
  2.     <div class="page--mainwrap-header">
  3.         <h1 class="page--mainwrap-header-heading">{{ "About"|trans }} {{ project.name }}</h1>
  4.         <hr>
  5.         {% include 'layouts/block/breadcrumbs.html.twig' %}
  6.     </div>
  7.     <div class="page--mainwrap-content">
  8.         <div class="page--mainwrap-content-desc single-project--content-desc mb-4">
  9.             <h2 class="single-project--content-desc-title txt--label">{{ project.name|raw }}</h2>
  10.             <div class="single-project--content-desc-txt">
  11.                 {{ project.description|raw }}
  12.             </div>
  13.         </div>
  14.         <div class="single-project--content-menus d-flex">
  15.             <div class="single-project--content-menus-item col-6 p-0">
  16.                 <h3 class="single-project--content-menus-item-title txt--label">{{ "Project details"|trans }} </h3>
  17.                 <div class="single-project--content-menus-item-txt">
  18.                     <ul>
  19.                         {% if project.kindProject  %}<li>{{ "Sector"|trans|raw }}:<a href="{{ path('pages_projects_filter_by_kind_project', { _locale:  currentLocale, kindProjectSlug: project.kindProject.slug }) }}"> {{ project.kindProject|raw }}</a></li>{% endif %}
  20.                         {% if project.architect  %}
  21.                             <li>
  22.                                 {% if project.websiteArchitect  %}
  23.                                     {{ "Architect"|trans|raw }}: <a href=" {{ project.websiteArchitect }}" target="_blank">{{ project.architect|raw }}</a>
  24.                                 {% else %}
  25.                                     {{ "Architect"|trans|raw }}: {{ project.architect|raw }}
  26.                                 {% endif %}
  27.                             </li>
  28.                         {% endif %}
  29.                         {% if project.country  %}
  30.                             {% set alpha = project.country.alpha2 %}
  31.                             <li>{{ "Country"|trans|raw }}: {{ alpha|country_name|raw }}</li>
  32.                         {% endif %}
  33.                         {% if project.photography %}<li>{{ "Photography"|trans|raw }}: {{ project.photography|raw }}</li>{% endif %}
  34.                         {% if project.installation %}<li>{{ "Installation"|trans|raw }}: {{ project.installation|raw }}</li>{% endif %}
  35.                     </ul>
  36.                 </div>
  37.             </div>
  38.             <div class="single-project--content-menus-item col-6 p-0">
  39.                 <h3 class="single-project--content-menus-item-title txt--label">{{ "Flooring details"|trans|raw }}</h3>
  40.                 <div class="single-project--content-menus-item-txt">
  41.                     <ul>
  42.                         <li>
  43.                             {{ project.products|length > 1 ? "Products"|trans|raw : "Product"|trans|raw }}:
  44.                             {% for product in project.products %}
  45.                                 {% if product.name == 'BB_Kaleido' %}
  46.                                     {{ product.name }}
  47.                                 {% else %}
  48.                                     <a href="{{ path('pages_product_details', { _locale:  currentLocale, 'collectionSlug': product.collection.slug, 'slug': product.slug, 'id': product.id }) }}">
  49.                                         {{ product.name }}
  50.                                     </a>
  51.                                     {{ loop.last ? '' : '•' }}
  52.                                 {% endif %}
  53.                             {% endfor %}
  54.                         </li>
  55.                         {% if project.areaM > 1 %}
  56.                             {% set areaM = project.areaM %}
  57.                             {% set areaF = areaM * 10.764 %}
  58.                             <li>{{ "Surface"|trans }}: {{ areaM|format_number }} ㎡ - {{ areaF|format_number }} ft²</li>
  59.                         {% endif %}
  60.                         <li>{{ project.shapes|length > 1 ? "Shapes"|trans : "Shape"|trans }}:
  61.                             {% for shape in project.shapes %}
  62.                                 <a href="{{ path('pages_2tec2Play_index', { _locale:  currentLocale }) }}">
  63.                                     {{ shape.name|trans }}
  64.                                 </a>
  65.                                 {{ loop.last ? '' : '•' }}
  66.                             {% endfor %}
  67.                         </li>
  68.                     </ul>
  69.                 </div>
  70.             </div>
  71.         </div>
  72.         {% if project is defined %}
  73.             <div class="single-project--content-magnets">
  74.                 <div class="single-project--content-magnets-container scrollableDiv scrollableX">
  75.                     <div class="scrollableX-content">
  76.                     {% for key, img in project.attachmentsFile['urls'] %}
  77.                         <div class="single-project--content-magnets-container-img modalImgList" imgfullsize="{{ img['jpg']['full'] }}" imgfullsizealt="{{ project.name }} example of utilisation">
  78.                             <picture>
  79.                                 <source srcset="{{ img['webp']['thumb_250x250'] }}" type="image/webp">
  80.                                 <source srcset="{{ img['jpg']['thumb_250x250'] }}" type="image/jpeg">
  81.                                 <img src="{{ img['jpg']['thumb_250x250'] }}" alt="{{ project.name }} photo">
  82.                             </picture>
  83.                         </div>
  84.                     {% endfor %}
  85.                     </div>
  86.                 </div>
  87.             </div>
  88.         {% endif %}
  89.         <div class="page--mainwrap-content-button single-collection--content-button d-flex justify-content-around">
  90.             {#<div class="page--mainwrap-content-button single-project--content-button d-flex justify-content-between">#}
  91.             <a rel="canonical" href="{{ path("pages_3d_simulation_index", { _locale: currentLocale }) }}" class="cta-button btn page-btn">
  92.                 {{ include('layouts/buttons/2tec2_3d_simulation.html.twig') }}
  93.                 {{ "3D Simulation" | trans }}
  94.             </a>
  95.             <a href="" class="add-project-to-download cta-button btn page-btn" data-project="{{ project.id }}">
  96.                 {{ include('layouts/buttons/2tec2_uploads.html.twig') }}
  97.                 {{ 'Images'|trans }}
  98.             </a>
  99.         </div>
  100.     </div>
  101.     <div class="page--mainwrap-arrow slideArrow">
  102.         <img src="{{ asset('build/icon/2tec2_arrow_bottom_black.svg') }}" alt="{{ 'caret down icon' | trans }}">
  103.     </div>
  104. </div>
  105. <div class="page--subwrap p-0 carouselLgDiv single-project-desktop">
  106.     <div class="page--subwrap-carousel-lg carouselLg carouselDiv">
  107.     </div>
  108. </div>