templates/areas/content-iframe/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/editmode-settings.html.twig') }}
  3. {% endif %}
  4. <section class="wysiwyg-area container-narrow content-block {{ not pimcore_input('anchorTitle').isEmpty() ? 'js-anchor-nav__item' }}"
  5.     {% if not pimcore_input('anchorTitle').isEmpty() %} data-anchor-nav-title="{{ pimcore_input('anchorTitle').getData() }}" {% endif %}
  6. >
  7.     {{ include('includes/title-blocks/title-block.html.twig', {
  8.         hideIntro: true,
  9.     }) }}
  10.     {% if editmode %}
  11.         <div class="editmode-box editmode-box--info">
  12.             <div class="editmode-box__header">
  13.                 Iframe-Höhe: {{ pimcore_input('iframe-height') }}
  14.                 Iframe-Url: {{ pimcore_input('iframe-url') }}
  15.             </div>
  16.         </div>
  17.     {% endif %}
  18.     <div class="container">
  19.         <div class="row justify-content-center">
  20.             <div class="col-md-12">
  21.                 {% if not editmode %}
  22.                     <div class="wysiwyg">
  23.                         {% embed('@ElementsCmsTools/consent-overlay.html.twig') with {
  24.                             'classNames': {
  25.                                 'overlay': 'consent__overlay ratio-item',
  26.                                 'template': 'ratio-item',
  27.                             },
  28.                             'service': 'marketing',
  29.                             'buttonText': 'cookies.Marketingcookies akzeptieren'|trans,
  30.                             'overlayText': 'cookies.Um das Anmeldeformular anzuzeigen, müssen Sie die Cookies akzeptieren'|trans
  31.                         } %}
  32.                             {% block consentIframe %}
  33.                                 <iframe src="{{ pimcore_input('iframe-url') }}" style="height:{{ pimcore_input('iframe-height') }}px; width:100%;"></iframe>
  34.                             {% endblock %}
  35.                         {% endembed %}
  36.                     </div>
  37.                 {% endif %}
  38.             </div>
  39.         </div>
  40.     </div>
  41. </section>