2014-04-16 09:58:41 +00:00
|
|
|
<a href="
|
2015-08-11 01:09:26 +00:00
|
|
|
{% if post.file|extension == 'webm' or post.file|extension == 'mp4' %}
|
2023-07-14 05:11:59 +00:00
|
|
|
{{ config.root }}player.php?v={% if shadow %}{{ config.uri_shadow_img }}{% else %}{{ config.uri_img }}{% endif %}{{ post.file }}&t={% if config.show_filename %}{{ post.filename|e('url') }}{% else %}{{ post.file }}{% endif %}&loop=1
|
2014-04-16 09:58:41 +00:00
|
|
|
{% else %}
|
2017-06-09 01:59:18 +00:00
|
|
|
{% if shadow %}{{ config.uri_shadow_img }}{% else %}{{ config.uri_img }}{% endif %}{{ post.file }}
|
2014-04-16 09:58:41 +00:00
|
|
|
{% endif %}
|
|
|
|
"
|
|
|
|
target="_blank"
|
2015-08-11 01:09:26 +00:00
|
|
|
{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' or post.file|extension == 'mp4' %}
|
2014-04-16 09:58:41 +00:00
|
|
|
class="file"
|
|
|
|
{% endif %}
|
|
|
|
>
|
2015-08-11 01:09:26 +00:00
|
|
|
{% if post.thumb|extension == 'webm' or post.thumb|extension == 'mp4' %}
|
2017-06-13 23:25:14 +00:00
|
|
|
<video autoplay class="post-image" src="{% if shadow %}{{ config.uri_shadow_img }}{% else %}{{ config.uri_thumb }}{% endif %}{{ post.thumb }}"
|
2014-04-16 09:58:41 +00:00
|
|
|
poster="
|
|
|
|
{{ config.root }}
|
|
|
|
{% if config.file_icons[post.filename|extension] %}
|
|
|
|
{{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }}
|
|
|
|
{% else %}
|
|
|
|
{{ config.file_thumb|sprintf(config.file_icons.default) }}
|
|
|
|
{% endif %}
|
|
|
|
"
|
|
|
|
style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px"
|
|
|
|
>
|
|
|
|
</video>
|
|
|
|
{% else %}
|
2014-07-09 17:45:17 +00:00
|
|
|
<img class="post-image"
|
2014-04-16 09:58:41 +00:00
|
|
|
src="
|
|
|
|
{% if post.thumb == 'file' %}
|
|
|
|
{{ config.root }}
|
|
|
|
{% if config.file_icons[post.filename|extension] %}
|
|
|
|
{{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }}
|
|
|
|
{% else %}
|
|
|
|
{{ config.file_thumb|sprintf(config.file_icons.default) }}
|
|
|
|
{% endif %}
|
|
|
|
{% elseif post.thumb == 'spoiler' %}
|
|
|
|
{{ config.root }}{{ config.spoiler_image }}
|
|
|
|
{% else %}
|
2017-06-09 01:59:18 +00:00
|
|
|
{% if shadow %}{{ config.uri_shadow_thumb }}{% else %}{{ config.uri_thumb }}{% endif %}{{ post.thumb }}
|
2014-04-16 09:58:41 +00:00
|
|
|
{% endif %}
|
|
|
|
"
|
2022-02-25 13:23:54 +00:00
|
|
|
style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px" alt="{{ post.filename|e|bidi_cleanup }}"
|
2014-04-16 09:58:41 +00:00
|
|
|
/>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|