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

Open in your IDE?
  1. {% if editmode %}
  2.     <br><br>
  3.     {% embed 'Includes/editmode-settings.html.twig' %}
  4.         {% block additionalInfo %}
  5.             <div>
  6.                 <div style="margin-bottom: 10px;">
  7.                     <label>Full Width: </label>
  8.                     {{ pimcore_checkbox('fullwidth') }}
  9.                 </div>
  10.              
  11.                 <label>URL: </label>
  12.                 {{ pimcore_input('link') }}
  13.                 <label>Height desktop: </label>
  14.                 {{ pimcore_numeric('height', {
  15.                     minValue: 0,
  16.                 }) }}
  17.                 <label>Height mobil: </label>
  18.                 {{ pimcore_numeric('height_mobile', {
  19.                     minValue: 0,
  20.                 }) }}
  21.             </div>
  22.         {% endblock %}
  23.     {% endembed %}
  24.     {{  include('Includes/title-block-editable.html.twig') }}
  25. {% else %}
  26.     <section class="iframe-area {{ not pimcore_checkbox('fullwidth').checked() ? 'container ' }} content-block js-fade-in {{ not pimcore_input('anchorTitle').empty ? 'js-anchor-nav__item' : '' }}"
  27.         {% if not pimcore_input('anchorTitle').empty %}data-anchor-nav-title="{{ pimcore_input('anchorTitle').frontend }}"{% endif %}>
  28.         {{  include('Includes/title-block-editable.html.twig', {
  29.             isCentered: true
  30.         }) }}
  31.         <iframe width="100%" frameborder="0" height="{{ pimcore_device().isPhone() ? pimcore_numeric('height_mobile').data : pimcore_numeric('height').data }}" src="{{  pimcore_input('link').data }}"></iframe>
  32.     </section>
  33. {% endif %}