Browse Source

fix paths in templates

pull/40/head
czaks 10 years ago
parent
commit
e034b9179d
  1. 33
      templates/post_reply.html
  2. 42
      templates/post_thread.html

33
templates/post_reply.html

@ -93,20 +93,35 @@
) )
</span> </span>
</p> </p>
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' %} class="file"{% endif %}> <a href="
<img class="post-image" src=" {% if post.file|extension == 'webm' %}
{% if post.thumb == 'file' %} {{ 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 }} {{ config.root }}
{% if config.file_icons[post.filename|extension] %} {% if config.file_icons[post.filename|extension] %}
{{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }} {{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }}
{% else %} {% else %}
{{ config.file_thumb|sprintf(config.file_icons.default) }} {{ config.file_thumb|sprintf(config.file_icons.default) }}
{% endif %} {% endif %}" style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px"></video>
{% elseif post.thumb == 'spoiler' %} {% else %}
{{ config.root }}{{ config.spoiler_image }} <img class="post-image" src="
{% else %} {% if post.thumb == 'file' %}
{{ config.uri_thumb }}{{ post.thumb }} {{ config.root }}
{% endif %}" style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px" alt="" /> {% 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> </a>
{% endif %} {% endif %}
{{ post.postControls }} {{ post.postControls }}

42
templates/post_thread.html

@ -41,20 +41,36 @@
{% endif %} {% endif %}
) )
</span></p> </span></p>
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' %} class="file"{% endif %}> <a href="
<img class="post-image" src=" {% if post.file|extension == 'webm' %}
{% if post.thumb == 'file' %} {{ config.root }}player.php?v={{ config.uri_img }}{{ post.file }}&amp;t={{ post.filename|e('url') }}&amp;loop=1
{{ config.root }} {% else %}
{% if config.file_icons[post.filename|extension] %} {{ config.uri_img }}{{ post.file }}
{{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }} {% endif %}" target="_blank"{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' %} class="file"{% endif %}>
{% else %} {% if post.thumb|extension == 'webm' %}
{{ config.file_thumb|sprintf(config.file_icons.default) }} <video autoplay class="post-image" src="{{ config.uri_thumb }}{{ post.thumb }}" poster="
{% endif %} {{ config.root }}
{% elseif post.thumb == 'spoiler' %} {% if config.file_icons[post.filename|extension] %}
{{ config.root }}{{ config.spoiler_image }} {{ 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 %} {% else %}
{{ config.uri_thumb }}{{ post.thumb }} <img class="post-image" src="
{% endif %}" style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px" alt="" /></a> {% 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>
{% endif %} {% endif %}
<div class="post op"><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}> <div class="post op"><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}>
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" /> <input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />

Loading…
Cancel
Save