1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 09:20:58 +01:00

Merge pull request #158 from 27chan/patch-4

Add extension mp4
This commit is contained in:
Marcin Łabanowski 2015-08-11 03:34:00 +02:00
commit 1b099ce072

View File

@ -1,16 +1,16 @@
<a href=" <a href="
{% if post.file|extension == 'webm' %} {% if post.file|extension == 'webm' or post.file|extension == 'mp4' %}
{{ config.root }}player.php?v={{ config.uri_img }}{{ post.file }}&amp;t={{ post.filename|e('url') }}&amp;loop=1 {{ config.root }}player.php?v={{ config.uri_img }}{{ post.file }}&amp;t={{ post.filename|e('url') }}&amp;loop=1
{% else %} {% else %}
{{ config.uri_img }}{{ post.file }} {{ config.uri_img }}{{ post.file }}
{% endif %} {% endif %}
" "
target="_blank" target="_blank"
{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' %} {% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' or post.file|extension == 'mp4' %}
class="file" class="file"
{% endif %} {% endif %}
> >
{% if post.thumb|extension == 'webm' %} {% if post.thumb|extension == 'webm' or post.thumb|extension == 'mp4' %}
<video autoplay class="post-image" src="{{ config.uri_thumb }}{{ post.thumb }}" <video autoplay class="post-image" src="{{ config.uri_thumb }}{{ post.thumb }}"
poster=" poster="
{{ config.root }} {{ config.root }}