vendor/conecto/pimcore-provider/src/ProviderBundle/Resources/views/areas/text/view.html.twig line 1

Open in your IDE?
  1. {# Default block settings #}
  2. {% set class = pimcore_input('class').getData() %}
  3. {% set marginTop = pimcore_select('margin_top').getData() %}
  4. {% set marginBottom = pimcore_select('margin_bottom').getData() %}
  5. {% set containerWidth = pimcore_select('container_width').getData() %}
  6. {% set areaClass = class ~ ' ' ~ marginTop ~ ' ' ~ marginBottom ~ ' ' ~ containerWidth %}
  7. {% set anchorId = pimcore_input('anchor').getData() %}
  8. {# Text block settings #}
  9. {% set isLead = '' %}
  10. {% if pimcore_checkbox('lead').isChecked() %}
  11.     {% set isLead = 'true' %}
  12. {% endif %}
  13. <div class="area area--text {{ areaClass }}{% if isLead %} lead{% endif %}"{% if anchorId %} id="{{ anchorId }}"{% endif %}>
  14.     {{ pimcore_wysiwyg('text', {
  15.     }) }}
  16. </div>