{# ATENTION: If menu_item has 'group' create submenus example: http://virgula.uol.com.br/ver/estaticas/nelson-rodrigues/ #}
{% for menu_item in infographic.items.all %}
{# show main description or specific item description #}
{# 'item' exists only if a slug is passed /infographics/slug/item-slug #}
{% if not item %}
{{ infographic.description|safe }}
{% else %}
{{ item.description|safe }}
{% endif %}
{# show main image or single item album or image #}
{% if not item %}
{% if infographic.main_image %}
{% endif %}
{% else %}
{% if item.timeline %}
{# Embed timeline JS #}
{% load timeline %}
{% timeline src=item.timeline.pk height=600 width=600 %}
{% elif item.album %}
{# SHOW IMAGE SLIDER USING item.album images #}
{% for image in item.album.all_images %}
{% endfor %}
{% else %}
{# if not has album show item static image #}
{% endif %}
{% endif %}
{# Load custom css and JS if needed #}
{# NOTE: Designers also can create scpecific templates for infographics.. #}
{# store in templates/infographics/infographic-slug.html #}
{% block custom_css %}
{% endblock %}
{% block custom_js %}
{% if infographic.js_path %}
{%endif%}
{% endblock %}