custom/plugins/MoorlForms/src/Resources/views/plugin/moorl-fb/component/wrapper/wrapper.html.twig line 1

Open in your IDE?
  1. {% set sectionAttributes = ["data-moorl-fb-#{element.type}"] %}
  2. {% if sectionConfig %}
  3.     {% set sectionAttributes = sectionAttributes|merge(["data-moorl-fb-#{element.type}-options=#{sectionConfig|json_encode|raw}"]) %}
  4. {% endif %}
  5. {% if element.conditions %}
  6.     {% set sectionAttributes = sectionAttributes|merge(["data-fb-conditions=#{element.conditions|json_encode|raw }"]) %}
  7. {% endif %}
  8. {% if element.config.cssAttributes.class %}
  9.     {% set sectionClasses = sectionClasses|merge([
  10.         element.config.cssAttributes.class
  11.     ]) %}
  12. {% endif %}
  13. <div {{ sectionAttributes|join(" ") }}>
  14.     <div class="{{ sectionClasses|join(" ") }}" style="{{ fb_stylesheet(element)|join(";") }}">
  15.         {{ wrappedContent }}
  16.     </div>
  17. </div>