templates/alkanbari/document/document.html.twig line 1

Open in your IDE?
  1. {% extends 'alkanbari_document.html.twig' %}
  2. {% block main_content %}
  3.   {% set bgImgDesktop = pimcore_relation('banner-image').getFullPath() ? pimcore_relation('banner-image').getFullPath() : '' %}        
  4.   {% set bgImgMobile = pimcore_relation('banner-mobile-image').getFullPath() ? pimcore_relation('banner-mobile-image').getFullPath() : '' %}  
  5.   <section class="section banner-section page-banner" id="start">
  6.     <div class="banner-border">   
  7.       <img class="d-none d-lg-block" src="{{ bgImgDesktop }}" loading="lazy" /><img class="d-block d-lg-none" src="{{ bgImgMobile }}" loading="lazy" />    
  8.       <h2 class="banner-header">{{ pimcore_input('banner-headline', {"placeholder":"Willkommen"}) }}</h2>
  9.       <div class="banner-subheader">
  10.         <h3 class="header-line">
  11.           <span>{{ pimcore_input('banner-subheadline-1', {"placeholder":"bei Alkanbari"}) }}</span>
  12.         </h3>    
  13.         <h3 class="header-line">
  14.           <span class="{% if not editmode and pimcore_input('banner-subheadline-2').getData()=='' %}bg-transparent{% endif %}">{{ pimcore_input('banner-subheadline-2', {"placeholder":"Polstereifachbetrieb"}) }}</span>
  15.         </h3>    
  16.       </div>     
  17.     </div>
  18.   </section>
  19.   {% if editmode %}
  20.   <div class="pim-tooltip">
  21.     <div>
  22.       Banner f&uuml;r Desktop:<br />
  23.       {{ pimcore_relation('banner-image', {
  24.           "reload" : true
  25.       }) }}
  26.     </div>
  27.     <div>
  28.       Banner f&uuml;r Mobiles:<br />
  29.       {{ pimcore_relation('banner-mobile-image', {
  30.           "reload" : true
  31.       }) }}
  32.     </div>
  33.   </div>
  34.   {% endif %} 
  35.   
  36.   {% set contentBlock1 = pimcore_block('contentblock1') %}    
  37.   {% for i in pimcore_block('contentblock1').iterator %}   
  38.     {% if editmode %}
  39.       {{ pimcore_select('blocktype', {
  40.           "store": [
  41.               ["panel-12", "1-spaltiges Layout"],
  42.               ["panel-6-6", "2-spaltiges Layout"],
  43.               ["panel-4-4-4", "3-spaltiges Layout"],
  44.               ["panel-3-3-3-3", "4-spaltiges Layout"],
  45.               ["horizontal-line", "Horizontale Trennlinie"],
  46.               ["panel-contact", "Kontaktformular"],
  47.           ],
  48.           "defaultValue": "panel-12",
  49.           "width": 300,
  50.           "reload": true
  51.       }) }}
  52.     {% endif %}
  53.     {% if not pimcore_select('blocktype').isEmpty() %}          
  54.         {{ include('alkanbari/_includes/content-blocks/' ~ pimcore_select('blocktype').getData() ~ '.html.twig') }}          
  55.     {% endif %}
  56.   {% endfor %}
  57. {% endblock %}