custom/plugins/DecomTheme/src/Resources/views/storefront/element/cms-element-faq-item.html.twig line 1

Open in your IDE?
  1. {% block element_faq_item %}
  2.     {% set question = element.config.question.value %}
  3.     {% set answer = element.config.answer.value %}
  4.     {% if question %}
  5.         <div class="cms-element-{{ element.type }}" data-cms-element-id="{{ element.id }}">
  6.             <button class="faq-item-toggle collapsed" 
  7.                 aria-expanded="false" 
  8.                 data-toggle="collapse" 
  9.                 data-parent=".faq-grid-items"
  10.                 data-target="#{{ element.slot }}"
  11.                 aria-controls="{{ element.slot }}"
  12.             >
  13.                 {{ question|raw }}
  14.                 {% sw_icon 'plus-circle' style {'namespace': 'DecomTheme' } %}
  15.                 {% sw_icon 'minus-circle' style {'namespace': 'DecomTheme' } %}                
  16.             </button>
  17.             <div class="accordion-group">
  18.                 <div class="faq-item-panel collapse" id="{{ element.slot }}">
  19.                     <div class="panel-content">
  20.                         {{ answer|raw }}
  21.                     </div>
  22.                 </div>
  23.             </div>
  24.         </div>
  25.     {% endif %}
  26. {% endblock %}