templates/module/Feedback/__feedback-homes-u-shopping.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/backend-kopf.html.twig') }}
  3.     {% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
  4.     {% set tab = 1 %}
  5.     <div id="content">        
  6.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  7.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  8.             {% endif %} 
  9.             <section class="tabContent">
  10.                 <p class="hl">Optionale Einstellung:</p>
  11.                 {% set element = 'artikel' %}
  12.                 <div id="{{ element }} ">
  13.                     {{ pimcore_multiselect(element, {
  14.                             'width': 200,
  15.                             'height': 100,
  16.                             'store': [
  17.                                 ['abstand-top', 'Abstand nach oben'],
  18.                                 ['abstand-bottom', 'Abstand nach unten']
  19.                             ]
  20.                         }) }}
  21.                 </div>
  22.             </section>
  23.             {% if tabContentArray is defined and 2 in tabContentArray|keys %}
  24.                 {{ admin_tabs(2, tabContentArray) | raw }}
  25.                 <section class="tabContent">
  26.                     <div style="100%;height: 35px;">
  27.                         <div style="width: calc(100% - 20px);background-color:#f193f8; border:1px solid #cc21c1; padding:10px;">
  28.                             <strong>Achtung!</strong><br/><br/>
  29.                             Dieses Snippet muss eine Property Namens 'theme_doc' besitzen.<br/>
  30.                             Der zugewiesene Wert muss je nach Thema 'homes' oder 'shops' sein.
  31.                         </div>
  32.                     </div>
  33.                     <div style="margin-top: 100px;"><p class="hl">Hintergrundbild: (Breite 2400 x Höhe 480 Pixel)</p></div>
  34.                     <div class="dragdrop"><span class="parentbox">
  35.                         {{ pimcore_image("bg", {
  36.                             "title" : "Bild hier hereinziehen",
  37.                             "width": 600,
  38.                             "height": 90,
  39.                             "hidetext": true,
  40.                             "thumbnail": "background-image-page-edm"
  41.                         }) }}
  42.                         </span></div>
  43.                  </section>
  44.             {% endif %}
  45.     </div>
  46.     {{ include('includes/backend-fuss.html.twig') }}
  47. {% else %}
  48.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
  49.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  50.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  51.     {% set randomID = random() %}
  52.     {% set image_path = pimcore_image("bg").getSrc() %}
  53.     <div class="{{ abstandClasses }}">
  54.         {% set lang = app.request.getLocale() %}    
  55.         {% if image_path is not empty %}
  56.                 {{ imageResponsive({"src": image_path,
  57.                    "ausgabeformat": "div",
  58.                    "endtag": false,
  59.                    "class": "experten-bg",
  60.                    "language": lang }) | raw }}
  61.         {% else %}
  62.             <div class="quote-bg">
  63.         {% endif %}
  64.         <div class="owl-carousel owl-theme no-underline constrainer-inner" data-slider="{{ randomID }}">
  65.             {% for quote in feedback %}
  66.                     <div class="quote-item">
  67.                         <div class="copy font-light" style="padding-top: 25px;">
  68.                             {# <figure><img class="quote" src="/bundles/app/static/frontend/images/icons/quote.svg"/></figure> #}
  69.                             <div>
  70.                                 <img class="quote" style="width:40px!important;display: inline-block;margin-right: 1em;margin-top:-15px" src="/bundles/app/static/frontend/images/icons/quote.svg"/>
  71.                                 {{ quote }}
  72.                                 <img class="quote" style="transform: rotate(180deg);width:40px!important;display: inline-block;margin-left: 1em;margin-bottom:0px" src="/bundles/app/static/frontend/images/icons/quote.svg"/>
  73.                             </div>
  74.                         </div>
  75.                     </div>
  76.             {% endfor %}
  77.         </div>
  78.         {% if image_path is empty %}
  79.             </div>
  80.         {% endif %}
  81.     </div>
  82.      <script type="text/javascript">
  83.         (function () {
  84.             var moduleName = 'quotes_slider_{{ randomID }}_module'; // naming convention XXX_module
  85.             if (typeof selt === 'undefined') {
  86.                 selt = {
  87.                     modules: {}
  88.                 };
  89.             } else if (!selt.modules) {
  90.                 selt.modules = {};
  91.             }
  92.             selt.modules[moduleName] = {
  93.                 name: moduleName,
  94.                 init: function () {
  95.                     init();
  96.                 }
  97.             };
  98.             function init() {
  99.                 galleryEl = $('[data-slider="{{ randomID }}"]');
  100.                 galleryEl.owlCarousel({
  101.                     loop: true,
  102.                     items: 1,
  103.                     margin: 0,
  104.                     nav: true,
  105.                     autoplay:false,
  106.                     dots:false,
  107.                     autoplayTimeout:10000,
  108.                     autoplayHoverPause:true,
  109.                     autoplaySpeed: 1500,
  110.                     navText: [
  111.                         '<svg class="no-theme" viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>',
  112.                         '<svg class="no-theme" viewBox="0 0 27.2 105.2" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><polygon points="25.4,105.2 0,52 25.4,0 27.2,0.9 2.2,52 27.2,104.3"/></svg>'
  113.                     ]
  114.                 });
  115.             }
  116.         }());//EOS
  117.     </script>
  118. {% endif %}