custom/plugins/LiamoriaBaseTheme/src/Resources/views/storefront/element/cms-element-text.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-text.html.twig' %}
  2. {% block element_text %}
  3.     {%  set config = element.fieldConfig.elements %}
  4.     <div class="cms-element-{{ element.type }}{% if config.verticalAlign.value %} has-vertical-alignment{% endif %}">
  5.         {# {{ dump(page.cmsPage.sections.elements) }}     #}
  6.         {% block element_text_alignment %}
  7.             {% if config.verticalAlign.value %}
  8.                 <div class="cms-element-alignment{% if config.verticalAlign.value == "center" %} align-self-center{% elseif config.verticalAlign.value == "flex-end" %} align-self-end{% else %} align-self-start{% endif %}">
  9.             {% endif %}
  10.                 {% block element_text_inner %}
  11.                     {{ element.data.content|raw }}
  12.                 {% endblock %}
  13.             {% if config.verticalAlign.value %}
  14.                 </div>
  15.             {% endif %}
  16.         {% endblock %}
  17.     </div>
  18. {% endblock %}