templates/bundles/ProviderBundle/areas/contentcontainer/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 areaClass = class ~ ' ' ~ marginTop ~ ' ' ~ marginBottom %}
  6. {% set anchorId = pimcore_input('anchor').getData() %}
  7. {# Quote block settings #}
  8. {% set type = pimcore_select('type').getData() %}
  9. {% set areaClass = areaClass ~ ' ' ~ type %}
  10. <div class="area area--contentcontainer full-width {{ areaClass }}"{% if anchorId %} id="{{ anchorId }}"{% endif %}>
  11.     {% if type == 'imageBg' %}
  12.         {% if editmode %}
  13.             {{ pimcore_relation("contentcontainer_image",{
  14.                 "types": ["asset"],
  15.                 "subtypes": {
  16.                     "asset": ["video", "image"]
  17.                 }
  18.             }) }}
  19.         {% endif %}
  20.         {% if not pimcore_relation('contentcontainer_image').isEmpty() %}
  21.             {{ pimcore_relation('contentcontainer_image').getElement().getThumbnail('headerImage').getHtml() | raw }}
  22.         {% endif %}
  23.     {% endif %}
  24.     <div class="area--contentcontainer--inner container">
  25.         {{ pimcore_areablock('contentcontainer_content', {
  26.             'controlsTrigger': 'fixed',
  27.             'sorting': conecto_get_areabricks(),
  28.             'allowed': conecto_get_areabricks(),
  29.         }) }}
  30.     </div>
  31. </div>