templates/areas/contact-teaser/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     <div class="edit-box">
  3.         <h1>KONFIGURATIONEN FÜR DEN AREABRICK:</h1>
  4.         <div class="flex gap-20">
  5.             <div class="content flex column gap-20">
  6.                 <div class="content-box flex gap-20">
  7.                     <div class="item">
  8.                         <p class="edit-p">Anker Text:</p>
  9.                         {{ pimcore_input('anchor',{'placeholder':'Anker Text','width':300}) }}
  10.                     </div>
  11.                 </div>
  12.             </div>
  13.         </div>
  14.     </div>
  15. {% endif %}
  16. <section class="headline-text contact-teaser light bg-orange small" {% if not pimcore_input('anchor').isEmpty() %}id="{{ pimcore_input('anchor').getData() }}"{% endif %}>
  17.     <div class="container">
  18.         {% if editmode %}
  19.             <h2>{{ pimcore_input('headline',{'placeholder':'Kontakt Person'}) }}</h2>
  20.         {% elseif not editmode and not pimcore_input('headline').isEmpty() %}
  21.             <h2>{{ pimcore_input('headline').getData() }}</h2>
  22.         {% endif %}
  23.         <div class="teaser">
  24.             {% if editmode %}
  25.                 {{ pimcore_image("ContactImage", {
  26.                     "reload": true,
  27.                     "title": "Drag your image here",
  28.                     "width": 358,
  29.                     "height": 270,
  30.                     "thumbnail": "NewsTeaser"
  31.                 }) }}
  32.             {% elseif not editmode and not pimcore_image("ContactImage").isEmpty() %}
  33.                 {{ pimcore_image("ContactImage").thumbnail('NewsTeaser').html | raw }}
  34.             {% endif %}
  35.             <div class="content">
  36.                 <p class="teaser-headline">
  37.                     {% if editmode %}
  38.                         {{ pimcore_input('position',{'placeholder':'Geschäftsleitung'}) }}
  39.                     {% elseif not editmode and not pimcore_input('position').isEmpty() %}
  40.                         {{ pimcore_input('position').getData() | u.truncate(50, '') }}
  41.                     {% endif %}
  42.                 </p>
  43.                 {% if editmode %}
  44.                     <p class="name">{{ pimcore_input('name',{'placeholder':'Felix Hodel'}) }}</p><br>
  45.                 {% elseif not editmode and not pimcore_input('name').isEmpty() %}
  46.                     <p class="name">{{ pimcore_input('name').getData() }}</p>
  47.                 {% endif %}
  48.                 <div class="links flex column gap-10">
  49.                     {% if editmode %}
  50.                         <p>{{ pimcore_input('tel',{'placeholder':'+41 79 211 63 14'}) }}</p><br>
  51.                     {% elseif not editmode and not pimcore_input('tel').isEmpty() %}
  52.                         <a href="tel:{{ pimcore_input('tel').getData() }}"><p>{{ pimcore_input('tel').getData() }}</p>
  53.                         </a>
  54.                     {% endif %}
  55.                     {% if editmode %}
  56.                         <p>{{ pimcore_input('mail',{'placeholder':'felix.hodel@hodelundpartner.ch'}) }}</p>
  57.                     {% elseif not editmode and not pimcore_input('mail').isEmpty() %}
  58.                         <a href="mailto:{{ pimcore_input('mail').getData() }}">
  59.                             <p>{{ pimcore_input('mail').getData() }}</p></a>
  60.                     {% endif %}
  61.                 </div>
  62.                 {% if editmode %}
  63.                     {{ pimcore_link('link') }}
  64.                 {% elseif not editmode and not pimcore_link('link').isEmpty() %}
  65.                     <button class="primary accent">
  66.                         <a href="{{ app.request.getSchemeAndHttpHost() }}{{ pimcore_link('link').getHref() }}"
  67.                            target="{{ pimcore_link('link').getTarget() }}">{{ pimcore_link('link').getText() }}
  68.                             <svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
  69.                                 <g transform="translate(0 0.354)">
  70.                                     <g transform="translate(0)">
  71.                                         <path class="line" d="M7.5,18h15"
  72.                                               transform="translate(-7.5 -13)" fill="none"
  73.                                               stroke="#b76e2b" stroke-linejoin="round"
  74.                                               stroke-width="1"/>
  75.                                         <path class="arrow" d="M18,7.5l5.026,5L18,17.5"
  76.                                               transform="translate(-8.027 -7.5)" fill="none"
  77.                                               stroke="#b76e2b" stroke-width="1"/>
  78.                                     </g>
  79.                                 </g>
  80.                             </svg>
  81.                         </a>
  82.                     </button>
  83.                 {% endif %}
  84.             </div>
  85.         </div>
  86.     </div>
  87. </section>