templates/module/Content/__content-code.html.twig line 1

Open in your IDE?
  1. {% block content %}
  2. {% if editmode %}
  3.     {{ include("includes/backend-kopf.html.twig") }}
  4.     <div id="content" style="padding: 20px; margin-top: 20px;">
  5.         <p class="hl">Embed Code:</p>
  6.          <span class="parentbox">
  7.         {{ pimcore_textarea('embed_code', {
  8.             'width': 900,
  9.             'height': 280,
  10.             'nl2br': false,
  11.             'placeholder': '<script src="..."></script>\n<script></script>\n<!-- or <iframe ...></iframe> -->'
  12.         }) }}
  13.         </span>
  14.         <p style="margin-top: 8px; font-size: 0.9rem; color: #666">
  15.             Paste scripts, iframes, widgets. On the live site this renders unescaped.
  16.         </p>
  17.     </div>
  18.     {{ include("includes/backend-fuss.html.twig") }}
  19. {% else %}
  20.     {% set code = pimcore_textarea('embed_code').getData() %}
  21.     {% if code is not empty %}
  22.         {{ code|raw }}
  23.     {% endif %}
  24. {% endif %}
  25. {% endblock %}