jfu-1.0.x-dev/modules/jfu_examples/templates/components/example2.html.twig
modules/jfu_examples/templates/components/example2.html.twig
<div class="jfu-example2-wrapper{{ classes }}">
<div class="jfu-example2-item {{ json_array.options.full_width ? 'container-full-width' : 'container' }}">
{% if json_array.title is not empty %}
<div class="jfu-example2-item--title-container">
<h3 class="jfu-example2-item--title">{{ json_array.title }}</h3>
</div>
{% endif %}
{% if json_array.subtitle is not empty %}
<h4 class="jfu-example2--subtitle">{{ json_array.subtitle }}</h4>
{% endif %}
<div class="jfu-example2-item--content">
{% for key, item in json_array.items.items %}
{% if item.body.value is not empty %}
{% include '@jfu/components/jfu_' ~ item.body.type ~ '.html.twig' with {'json_array': item.body } %}
{% endif %}
{% if item.image.fid is not empty %}
{% include '@jfu/components/jfu_' ~ item.image.type ~ '.html.twig' with {'json_array': item.image } %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
