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