2019-08-06 11:41:16 +02:00
|
|
|
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon with context %}
|
|
|
|
|
2020-06-28 20:40:48 +02:00
|
|
|
{{- result_header(result, favicons, loop.index) -}}
|
|
|
|
{{- result_sub_header(result, loop.index) -}}
|
2019-08-06 11:41:16 +02:00
|
|
|
|
2022-02-07 21:59:21 +01:00
|
|
|
{%- if result.data_src -%}
|
2020-06-28 20:40:48 +02:00
|
|
|
<small> • <a class="text-info btn-collapse collapsed cursor-pointer media-loader disabled_if_nojs" data-toggle="collapse" data-target="#result-media-{{ index }}" data-btn-text-collapsed="{{ _('show media') }}" data-btn-text-not-collapsed="{{ _('hide media') }}" aria-labelledby="result-{{loop.index}}">{{ icon('music') }} {{ _('show media') }}</a></small>
|
2019-08-06 11:41:16 +02:00
|
|
|
{%- endif -%}
|
|
|
|
|
2022-02-07 21:59:21 +01:00
|
|
|
{% if result.data_src -%}
|
|
|
|
<div id="result-media-{{ index }}" class="embedded-content invisible">
|
2022-02-13 12:55:54 +01:00
|
|
|
<iframe data-src="{{result.data_src}}" frameborder="0" scrolling="no" allowfullscreen></iframe>
|
2019-08-06 11:41:16 +02:00
|
|
|
</div>
|
|
|
|
{%- endif -%}
|
|
|
|
|
2020-12-29 15:58:18 +01:00
|
|
|
{%- if result.img_src or result.thumbnail -%}
|
2021-03-17 09:22:05 +01:00
|
|
|
<div class="container-fluid">{{- "" -}}
|
|
|
|
<div class="row">{{- "" -}}
|
2021-09-07 12:38:21 +02:00
|
|
|
<img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" class="default-image-style col-xs-2 col-sm-4 col-md-4 result-content">
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- if result.content %}<p class="result-content col-xs-8 col-sm-8 col-md-8">{{ result.content|safe }}</p>{% endif -%}
|
|
|
|
</div>{{- "" -}}
|
2019-08-06 11:41:16 +02:00
|
|
|
</div>
|
|
|
|
{%- else -%}
|
|
|
|
{%- if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
|
2022-02-07 21:59:21 +01:00
|
|
|
{% if result.audio_src -%}
|
|
|
|
<div id="result-media-{{ index }}" class="audio-control">
|
|
|
|
<audio controls><source src="{{result.audio_src}}"></audio>
|
|
|
|
</div>
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
|
2019-08-06 11:41:16 +02:00
|
|
|
{%- if rtl -%}
|
2020-06-28 20:40:48 +02:00
|
|
|
{{ result_footer_rtl(result, loop.index) }}
|
2019-08-06 11:41:16 +02:00
|
|
|
{%- else -%}
|
2020-06-28 20:40:48 +02:00
|
|
|
{{ result_footer(result, loop.index) }}
|
2019-08-06 11:41:16 +02:00
|
|
|
{%- endif -%}
|