{% extends widget.get_base_template %} {% load thumbnail %} {% block content %} {% with widget.get_size as size %} {% if widget.on_click == "open_modal" %} {% thumbnail widget.image.file "800x800" as image %} {% endthumbnail %} {% endif %} {% if widget.on_click == "go_to_page" %} {% endif %} {% if widget.size %} {% thumbnail widget.image.file size format="PNG" as thumb %} {% endthumbnail %} {% else %} {% endif %} {% if widget.on_click %} {% endif %} {% endwith %} {% endblock %}