templates/projekte/detail.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% block content %}
  3.     <section class="content-header projects-header beige">
  4.         {% if projektDetail.shadowImage %}
  5.             <div class="shadow-image-container project-detail" id="shadow-image-container">
  6.                 {{ projektDetail.shadowImage.thumbnail('ProjectDetailShadow').html({
  7.                     'imgAttributes': {
  8.                         'class':'detail-shadow'
  9.                     }
  10.                 }) | raw }}
  11.             </div>
  12.         {% endif %}
  13.         <div class="container">
  14.             <div class="content-container">
  15.                 {% if projektDetail.maintitle %}
  16.                 <h1 class="light colored">{{ projektDetail.maintitle | nl2br }}</h1>
  17.                 {% endif %}
  18.                 {% if projektDetail.intro %}
  19.                 <div class="colored lead">
  20.                     {{ projektDetail.intro | raw }}
  21.                 </div>
  22.                 {% endif %}
  23.                 <div class="lead table colored">
  24.                     {% if projektDetail.facts.data.beschreibung_1.name_1 %}
  25.                     <table class="facts-table">
  26.                         <tbody>
  27.                         <tr>
  28.                             {% if projektDetail.facts.data.beschreibung_1.name_1 %}
  29.                             <td><p>{{ projektDetail.facts.data.beschreibung_1.name_1 }}</p></td>
  30.                             {% endif %}
  31.                             {% if projektDetail.facts.data.beschreibung_1.name_2 %}
  32.                             <td><p>{{ projektDetail.facts.data.beschreibung_1.name_2 }}</p></td>
  33.                             {% endif %}
  34.                         </tr>
  35.                         <tr>
  36.                             {% if projektDetail.facts.data.beschreibung_2.name_1 %}
  37.                             <td><p>{{ projektDetail.facts.data.beschreibung_2.name_1 }}</p></td>
  38.                             {% endif %}
  39.                             {% if projektDetail.facts.data.beschreibung_2.name_2 %}
  40.                             <td><p>{{ projektDetail.facts.data.beschreibung_2.name_2 }}</p></td>
  41.                             {% endif %}
  42.                         </tr>
  43.                         <tr>
  44.                             {% if projektDetail.facts.data.beschreibung_3.name_1 %}
  45.                             <td><p>{{ projektDetail.facts.data.beschreibung_3.name_1 }}</p></td>
  46.                             {% endif %}
  47.                             {% if projektDetail.facts.data.beschreibung_3.name_2 %}
  48.                             <td><p>{{ projektDetail.facts.data.beschreibung_3.name_2 }}</p></td>
  49.                             {% endif %}
  50.                         </tr>
  51.                         <tr>
  52.                             {% if projektDetail.facts.data.beschreibung_4.name_1 %}
  53.                             <td><p>{{ projektDetail.facts.data.beschreibung_4.name_1 }}</p></td>
  54.                             {% endif %}
  55.                             {% if projektDetail.facts.data.beschreibung_4.name_2 %}
  56.                             <td><p>{{ projektDetail.facts.data.beschreibung_4.name_2 }}</p></td>
  57.                             {% endif %}
  58.                         </tr>
  59.                         </tbody>
  60.                     </table>
  61.                     {% endif %}
  62.                 </div>
  63.             </div>
  64.         </div>
  65.         <div class="container detail-image-container">
  66.             {% if projektDetail.video %}
  67.                 {% if projektDetail.video.type == 'youtube' %}
  68.                     <div class="main-image">
  69.                         <iframe width="100%" height="100%" src="https://www.youtube.com/embed/{{ projektDetail.video.data }}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  70.                     </div>
  71.                 {% else %}
  72.                     <div class="main-image">
  73.                         <video controls>
  74.                             <source src="{{ projektDetail.video.data }}" type="video/mp4">
  75.                             <source src="{{ projektDetail.video.data }}" type="video/ogg">
  76.                             Your browser does not support the video tag.
  77.                         </video>
  78.                     </div>
  79.                 {% endif %}
  80.             {% elseif projektDetail.image %}
  81.                  <div class="main-image">
  82.                     {{ projektDetail.image.thumbnail('FullHD').html({
  83.                         'imgAttributes': {
  84.                             'class':'main-image'
  85.                         }
  86.                     }) | raw }}
  87.                 </div>
  88.             {% endif %}
  89.             <div class="content-container">
  90.                 <div class="text-container flex">
  91.                     <div class="item lead colored item-lead">
  92.                         {{ projektDetail.textLeft | raw }}
  93.                     </div>
  94.                     <div class="item lead colored item-lead">
  95.                         {{ projektDetail.textRight | raw }}
  96.                     </div>
  97.                 </div>
  98.             </div>
  99.         </div>
  100.     </section>
  101.         <section class="teaser-swiper news-teaser projekt-teaser detail-page beige">
  102.             <div class="container teaser-container">
  103.                 {% if projektDetail.gallery.items %}
  104.                 <div class="news-swiper-container projekt-swiper-container detail-page">
  105.                     <div class="swiper newsTeaserSwiper projektTeaserSwiper">
  106.                         <div class="swiper-wrapper">
  107.                             {% for image in projektDetail.gallery %}
  108.                                 <div class="swiper-slide">
  109.                                     <div class="teaser">
  110.                                         {{ image.thumbnail('ProjektTeaser').html | raw }}
  111.                                     </div>
  112.                                 </div>
  113.                             {% endfor %}
  114.                         </div>
  115.                         <div class="swipe-controls">
  116.                             <div class="newsTeaserSwiperNext"></div>
  117.                             <div class="newsTeaserSwiperPrev"></div>
  118.                         </div>
  119.                     </div>
  120.                 </div>
  121.                 {% endif %}
  122.                 <div class="buttons-row flex project-detail-site">
  123.                     <div class="buttons-back flex">
  124.                         <button class="primary">
  125.                             <a href="/service/kontakt" target="_self" title="{{ 'Kontakt' | trans }}">
  126.                                 {{ 'Kontakt' | trans }}
  127.                                 <svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
  128.                                     <g transform="translate(0 0.354)">
  129.                                         <g transform="translate(0)">
  130.                                             <path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/>
  131.                                             <path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/>
  132.                                         </g>
  133.                                     </g>
  134.                                 </svg>
  135.                             </a>
  136.                         </button>
  137.                         <button class="primary">
  138.                             <a onclick="window.history.back()" target="_self" title="{{ 'Zurück' | trans }}">
  139.                                 {{ 'Zurück' | trans }}
  140.                                 <svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
  141.                                     <g transform="translate(0 0.354)">
  142.                                         <g transform="translate(0)">
  143.                                             <path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/>
  144.                                             <path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/>
  145.                                         </g>
  146.                                     </g>
  147.                                 </svg>
  148.                             </a>
  149.                         </button>
  150.                     </div>
  151.                     <div class="share-buttons">
  152.                         <!-- Sharingbutton Facebook -->
  153.                         <a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u={{ app.request.uri }}" target="_blank" rel="noopener" aria-label="">
  154.                             <div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
  155.                                     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z"/></svg>
  156.                                 </div>
  157.                             </div>
  158.                         </a>
  159.                         <!-- Sharingbutton E-Mail -->
  160.                         <a class="resp-sharing-button__link" href="mailto:?subject={{ projektDetail.maintitle | nl2br }}&amp;body={{ app.request.uri }}" target="_self" rel="noopener" aria-label="">
  161.                             <div class="resp-sharing-button resp-sharing-button--email resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
  162.                                     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z"/></svg>
  163.                                 </div>
  164.                             </div>
  165.                         </a>
  166.                         <!-- Sharingbutton LinkedIn -->
  167.                         <a class="resp-sharing-button__link" href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{ app.request.uri }}&amp;title={{ projektDetail.maintitle | nl2br }}&amp;summary={{ projektDetail.maintitle | nl2br }}&amp;source={{ app.request.uri }}" target="_blank" rel="noopener" aria-label="">
  168.                             <div class="resp-sharing-button resp-sharing-button--linkedin resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
  169.                                     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z"/></svg>
  170.                                 </div>
  171.                             </div>
  172.                         </a>
  173.                         <!-- Sharingbutton XING -->
  174.                         {#<a class="resp-sharing-button__link" href="https://www.xing.com/app/user?op=share;url={{ app.request.uri }};title={{ projektDetail.maintitle | nl2br }}" target="_blank" rel="noopener" aria-label="">
  175.                             <div class="resp-sharing-button resp-sharing-button--xing resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
  176.                                     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.2 9.7l-3-5.4C7.2 4 7 4 6.8 4h-5c-.3 0-.4 0-.5.2v.5L4 10 .4 16v.5c0 .2.2.3.4.3h5c.3 0 .4 0 .5-.2l4-6.6v-.5zM24 .2l-.5-.2H18s-.2 0-.3.3l-8 14v.4l5.2 9c0 .2 0 .3.3.3h5.4s.3 0 .4-.2c.2-.2.2-.4 0-.5l-5-8.8L24 .7V.2z"/></svg>
  177.                                 </div>
  178.                             </div>
  179.                         </a>#}
  180.                     </div>
  181.                 </div>
  182.             </div>
  183.         </section>
  184. {% endblock %}