{% extends 'cms/blocks/_block.html' %} {% load wagtailcore_tags my my_amp %} {% block block_content %}
{% for item in value.items %}
{% if item.value.icon %} {% amp_img %} Icon {{ widget_class }} {% endamp_img %} {% else %}
{% endif %}
{% include_block item with theme=value.theme %} {% if item.value.buttons %} {% for button in item.value.buttons %} {% if forloop.counter|divisibleby:2 != 0 %} {% include_block button with space='l' %} {% else %} {% include_block button with space='r' %} {% endif %} {% endfor %} {% endif %}
{% endfor %}
{% endblock %}