nineskeletor/templates/Pagewidget/viewurl.html.twig

12 lines
384 B
Twig

{% set widgetname="url" %}
{% extends 'Pagewidget/widget.twig' %}
{% block widgetbody %}
{% if imagemedia %}
<img src="{{ url|replace({'#login#': username}) }}" width="100%" >
{% else %}
<iframe src="{{ url|replace({'#login#': username}) }}" class="{% if entity.autoajust %}frameajust {% endif %}" style="width:100%"></iframe>
{% endif %}
{% endblock %}