nineskeletor/templates/Pagewidget/viewlink.html.twig

24 lines
949 B
Twig
Raw Normal View History

2023-01-23 09:46:34 +01:00
{% set widgetname="link" %}
{% extends 'Pagewidget/widget.twig' %}
2023-01-12 16:14:31 +01:00
2023-01-23 09:46:34 +01:00
{% block widgetbody %}
{% set url=url|replace({'#login#': username}) %}
2023-01-12 16:14:31 +01:00
{% if target == 'frame' %}
2023-01-23 09:46:34 +01:00
<a class="item-link" onClick="showItemframe(link{{ entity.id }}','{{ url }}')">
2023-01-12 16:14:31 +01:00
{% else %}
2023-01-23 09:46:34 +01:00
<a class="item-link" href="{{ url }}" target="{{ target }}">
{% endif %}
2023-01-12 16:14:31 +01:00
{% if entity.icon %}
2023-01-23 09:46:34 +01:00
<img src="{{ path('app_minio_image',{file:entity.icon.label}) }}" style="max-width: 90%; width:128px; height: auto; display: block; margin: auto; padding-top: 10px;" />
2023-01-12 16:14:31 +01:00
{% else %}
2023-01-23 09:46:34 +01:00
<img src=""{{ path('app_minio_image',{file:"icon/icon_pin.png"}) }}" style="max-width: 90%; width:128px; height: auto; display: block; margin: auto; padding-top: 10px;" />
2023-01-12 16:14:31 +01:00
{% endif %}
2023-01-23 09:46:34 +01:00
<div class="text-center mt-3 pb-1" style="font-size: 22px; font-family: var(--fonttitle); {{colorbodyfont}} !important">{{ entity.name }}</div>
2023-01-12 16:14:31 +01:00
</a>
{% endblock %}