2021-08-13 19:36:34 +01:00
|
|
|
<article class="h-entry embed">
|
|
|
|
<header>
|
2021-08-14 15:04:30 +01:00
|
|
|
{% if attributes['has_attachment'] != false %}
|
|
|
|
{% set thumbnail_parameters = {
|
|
|
|
'id': embed.getAttachmentId(),
|
|
|
|
'w': attributes['width'],
|
|
|
|
'h': attributes['height']
|
|
|
|
} %}
|
|
|
|
<img alt="{{embed.getTitle() | escape}}" class="{{attributes['class']}}"
|
|
|
|
width="{{attributes['width']}}" height="{{attributes['height']}}"
|
|
|
|
src="{{ path('attachment_thumbnail', thumbnail_parameters) }}" />
|
2021-08-13 19:36:34 +01:00
|
|
|
{% endif %}
|
|
|
|
<h5 class="p-name embed">
|
2021-08-13 20:09:20 +01:00
|
|
|
<a class="u-url" href="{{link.getUrl()}}">{{embed.getTitle() | escape}}</a>
|
2021-08-13 19:36:34 +01:00
|
|
|
</h5>
|
|
|
|
<div class="p-author embed">
|
|
|
|
{% if embed.getAuthorName() is not null %}
|
|
|
|
<div class="fn vcard author">
|
|
|
|
{% if embed.getAuthorUrl() is null %}
|
|
|
|
<p>{{embed.getAuthorName()}}</p>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{embed.getAuthorUrl()}}" class="url">{{embed.getAuthorName()}}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if embed.getProviderName() is not null %}
|
|
|
|
<div class="fn vcard">
|
|
|
|
{% if embed.getProviderUrl() is null %}
|
|
|
|
<p>{{embed.getProviderName()}}</p>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{embed.getProviderUrl()}}" class="url">{{embed.getProviderName()}}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div class="p-summary embed">
|
2021-08-14 15:04:30 +01:00
|
|
|
{{ embed.getDescription() | escape }}
|
2021-08-13 19:36:34 +01:00
|
|
|
</div>
|
|
|
|
</article>
|