bundles/Alea/AreabricksBundle/Resources/views/areas/section/view.html.twig line 1

Open in your IDE?
  1. {% set fullscreen = pimcore_checkbox('fullscreen') %}
  2. {% set ptd = pimcore_select('ptd').getData() %}
  3. {% set ptm = pimcore_select('ptm').getData() %}
  4. {% set pbd = pimcore_select('pbd').getData() %}
  5. {% set pbm = pimcore_select('pbm').getData() %}
  6. {% set mtd = pimcore_select('mtd').getData() %}
  7. {% set mtm = pimcore_select('mtm').getData() %}
  8. {% set mbd = pimcore_select('mbd').getData() %}
  9. {% set mbm = pimcore_select('mbm').getData() %}
  10. {% set bgColor = pimcore_select('bgColor').getData() %}
  11. {% set borderTop = pimcore_checkbox('borderTop').getData() %}
  12. {% set borderBottom = pimcore_checkbox('borderBottom').getData() %}
  13. {% set borderColor = pimcore_select('borderColor').getData() %}
  14. {% set section = pimcore_areablock('section', {'manual': true}) %}
  15. {% set decoration = pimcore_checkbox('decoration') %}
  16. {# not used in this template
  17.     {% set container = pimcore_checkbox('container') %}
  18. #}
  19. {% set sectionId = pimcore_input('sectionId') %}
  20. {% do section.start() %}
  21.     <section class="{% if not fullscreen.isChecked() %} mx-10 mx-md-40 mx-lg-70 {% endif %}
  22.         {% if ptm %} pt-{{ptm}} {% endif %}
  23.         {% if ptd %} pt-{{ptd}} {% endif %}
  24.         {% if pbm %} pb-{{pbm}} {% endif %}
  25.         {% if pbd %} pb-{{pbd}} {% endif %}
  26.         {% if mtm %} mt-{{mtm}} {% endif %}
  27.         {% if mtd %} mt-{{mtd}} {% endif %}
  28.         {% if mbm %} mb-{{mbm}} {% endif %}
  29.         {% if mbd %} mb-{{mbd}} {% endif %}
  30.         {% if bgColor %} bg-{{bgColor}} {% endif %}
  31.         {% if borderTop %} border-top {% endif %}
  32.         {% if borderBottom %} border-bottom {% endif %}
  33.         {% if borderColor %} border-{{borderColor}} {% endif %}
  34.          id="{{sectionId}}">
  35.             {% for i in section.iterator %}
  36.                 {% set info = section.buildInfoObject() %}
  37.                 {% do section.blockConstruct() %}
  38.                     {% set templateParams = section.blockStart(info) %}
  39.                     {% do section.content(info, templateParams) %}
  40.                     {% do section.blockEnd() %}
  41.                 {% do section.blockDestruct() %}
  42.             {% endfor %}
  43.     </section>
  44. {% do section.end() %}