{% comment %} Creates a gallery of thumbnails images or icons for each child item in a compound object. The thumb defaults to image_thumb or image_small, otherwise an icon is added based on the display_template or format of the child item. Each child item is given a popup modal with full display and metadata information. The display is chosen based on the display_template of the child item. This include requires the Liquid object "child" to be present! The item display requires the compound object item includes in "item/child/". {% endcomment %}
{% for child in children %}
{% if child.title %}
{{ child.title | truncatewords: 4 }}
{% endif %}
{% if child.image_thumb or child.image_small %} {{ child.image_alt_text | default: child.description | default: child.title | escape }} {% else %} {{ child.title | escape }} - {{ child.format }} {% endif %}
{{ child.display_template | upcase | default: "Item" }}
{% endfor %}