diff options
Diffstat (limited to 'templates/post')
| -rw-r--r-- | templates/post/flag.html | 18 | ||||
| -rw-r--r-- | templates/post/image.html | 45 | ||||
| -rw-r--r-- | templates/post/image_identification.html | 10 | ||||
| -rw-r--r-- | templates/post/ip.html | 3 | ||||
| -rw-r--r-- | templates/post/name.html | 16 | ||||
| -rw-r--r-- | templates/post/poster_id.html | 3 | ||||
| -rw-r--r-- | templates/post/subject.html | 5 | ||||
| -rw-r--r-- | templates/post/time.html | 1 |
8 files changed, 101 insertions, 0 deletions
diff --git a/templates/post/flag.html b/templates/post/flag.html new file mode 100644 index 00000000..61622368 --- /dev/null +++ b/templates/post/flag.html @@ -0,0 +1,18 @@ +{% if config.display_flags and post.modifiers.flag %} + <img + {% if config.country_flags_condensed %} + class="flag flag-{{ post.modifiers.flag }}" src="{{ config.image_blank }}" + {% else %} + class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}" + {% endif %} + style="{% if post.modifiers['flag style'] %} + {{ post.modifiers['flag style'] }} + {% else %} + {{ config.flag_style }} + {% endif %}" + + {% if post.modifiers['flag alt'] %} alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" + title="{{ post.modifiers['flag alt'] | e('html_attr') }}" + {% endif %} + > +{% endif %} 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 }}&t={{ post.filename|e('url') }}&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> diff --git a/templates/post/image_identification.html b/templates/post/image_identification.html new file mode 100644 index 00000000..3d3bd655 --- /dev/null +++ b/templates/post/image_identification.html @@ -0,0 +1,10 @@ +{% if post.thumb != 'file' and config.image_identification %} + , + <span class='image_id'> + <a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ post.file }}">io</a> + {% if post.file|extension == 'jpg' %} + <a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">e</a> + {% endif %} + <a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a> + </span> +{% endif %} diff --git a/templates/post/ip.html b/templates/post/ip.html new file mode 100644 index 00000000..11581ff9 --- /dev/null +++ b/templates/post/ip.html @@ -0,0 +1,3 @@ +{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %} + [<a class="ip-link" style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>] +{% endif %} diff --git a/templates/post/name.html b/templates/post/name.html new file mode 100644 index 00000000..009b234d --- /dev/null +++ b/templates/post/name.html @@ -0,0 +1,16 @@ +{% set capcode = post.capcode|capcode %} +{% if post.email|length > 0 %} + {# start email #} + <a class="email" href="mailto:{{ post.email }}"> +{% endif %} + <span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name|bidi_cleanup }}</span> + {% if post.trip|length > 0 %} + <span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span> + {% endif %} +{% if post.email|length > 0 %} + {# end email #} + </a> +{% endif %} +{% if capcode %} + {{ capcode.cap }} +{% endif %} diff --git a/templates/post/poster_id.html b/templates/post/poster_id.html new file mode 100644 index 00000000..3f168003 --- /dev/null +++ b/templates/post/poster_id.html @@ -0,0 +1,3 @@ +{% if config.poster_ids %} + ID: {{ post.ip|poster_id(post.id) }} +{% endif %} diff --git a/templates/post/subject.html b/templates/post/subject.html new file mode 100644 index 00000000..0d80d95e --- /dev/null +++ b/templates/post/subject.html @@ -0,0 +1,5 @@ +{% if post.subject|length > 0 %} + {# show subject #} + <span class="subject">{{ post.subject|bidi_cleanup }}</span> +{% endif %} + diff --git a/templates/post/time.html b/templates/post/time.html new file mode 100644 index 00000000..e6273f94 --- /dev/null +++ b/templates/post/time.html @@ -0,0 +1 @@ + <time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time> |
