summaryrefslogtreecommitdiff
path: root/templates/post/image.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-16 11:58:41 +0200
committerczaks <marcin@6irc.net>2014-04-16 11:58:41 +0200
commit48bc9d9e297d14bd549bd10513537052d7ce221c (patch)
treed17f05458434072a1b62fb5e756f07ca4527d660 /templates/post/image.html
parente81ce17fb4fdb6215d942005c10db32f4bafa6d5 (diff)
add some files missing from the previous commit
Diffstat (limited to 'templates/post/image.html')
-rw-r--r--templates/post/image.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/post/image.html b/templates/post/image.html
new file mode 100644
index 00000000..5020f782
--- /dev/null
+++ b/templates/post/image.html
@@ -0,0 +1,45 @@
+<a href="
+ {% if post.file|extension == 'webm' %}
+ {{ config.root }}player.php?v={{ config.uri_img }}{{ post.file }}&amp;t={{ post.filename|e('url') }}&amp;loop=1
+ {% else %}
+ {{ config.uri_img }}{{ post.file }}
+ {% endif %}
+ "
+ target="_blank"
+ {% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' %}
+ class="file"
+ {% endif %}
+>
+ {% if post.thumb|extension == 'webm' %}
+ <video autoplay class="post-image" src="{{ config.uri_thumb }}{{ post.thumb }}"
+ 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 %}
+ <img class="post-image"
+ 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 %}
+ {{ config.uri_thumb }}{{ post.thumb }}
+ {% endif %}
+ "
+ style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px" alt=""
+ />
+ {% endif %}
+</a>