{% extends widget.get_base_template %} {% load thumbnail %} {% block content %} {% with widget.get_size as size %} {% if widget.detail == "open_modal" %} {% thumbnail widget.image.file size as image %} {% endthumbnail %} {% endif %} {% if widget.detail == "open_new_window" %} {% if widget.size %} {% thumbnail widget.image.file size format="PNG" as thumb %} {{ widget.image.default_caption|default: {% endthumbnail %} {% else %} {{ widget.image.default_caption|default: {% endif %} {% endif %} {% if widget.detail == "go_to_page" %} {% endif %} {% if widget.size %} {% thumbnail widget.image.file size format="PNG" as thumb %} {{ widget.image.default_caption|default: {% endthumbnail %} {% else %} {{ widget.image.default_caption|default: {% endif %} {% if widget.detail %} {% endif %} {% endwith %} {% endblock %}