2021-10-24 22:45:38 +01:00
|
|
|
<hr>
|
|
|
|
|
2021-08-13 19:36:34 +01:00
|
|
|
<article class="h-entry embed">
|
|
|
|
<header>
|
2021-10-24 22:45:38 +01:00
|
|
|
<a class="p-name u-url" href="{{link.getUrl()}}">{{embed.getTitle() | escape}}</a>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
{% if attributes['has_attachment'] != false %}
|
|
|
|
{% set thumbnail_parameters = {
|
2021-12-27 02:47:04 +00:00
|
|
|
'note_id': note.getId(),
|
|
|
|
'attachment_id': embed.getAttachmentId(),
|
2021-10-24 22:45:38 +01:00
|
|
|
'size': 'medium'
|
|
|
|
} %}
|
|
|
|
<img alt="{{embed.getTitle() | escape}}" class="{{attributes['class']}}"
|
|
|
|
width="{{attributes['width']}}" height="{{attributes['height']}}"
|
2021-12-27 02:47:04 +00:00
|
|
|
src="{{ path('note_attachment_thumbnail', thumbnail_parameters) }}" />
|
2021-10-24 22:45:38 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="p-summary">
|
|
|
|
<div class="p-author">
|
2021-08-13 19:36:34 +01:00
|
|
|
{% 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>
|
2021-10-24 22:45:38 +01:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
2021-08-14 15:04:30 +01:00
|
|
|
{{ embed.getDescription() | escape }}
|
2021-08-13 19:36:34 +01:00
|
|
|
</div>
|
2021-09-23 14:51:31 +01:00
|
|
|
</article>
|