aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author3D-I <eataly3d@gmail.com>2019-08-11 05:21:36 +0200
committer3D-I <eataly3d@gmail.com>2019-08-11 05:22:48 +0200
commita84dfe716ba6130f3dc0f9ecc6fec80b7fdacb38 (patch)
treecd0eede94c2f5684dd3e476b0c12b66fa7736c59
parentc86e771dfe98632e7a9505625117d05836a8d615 (diff)
downloadforums-a84dfe716ba6130f3dc0f9ecc6fec80b7fdacb38.tar
forums-a84dfe716ba6130f3dc0f9ecc6fec80b7fdacb38.tar.gz
forums-a84dfe716ba6130f3dc0f9ecc6fec80b7fdacb38.tar.bz2
forums-a84dfe716ba6130f3dc0f9ecc6fec80b7fdacb38.tar.xz
forums-a84dfe716ba6130f3dc0f9ecc6fec80b7fdacb38.zip
[ticket/16129] Enhance attachment's ALT tag
PHPBB3-16129
-rw-r--r--phpBB/styles/prosilver/template/attachment.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/attachment.html b/phpBB/styles/prosilver/template/attachment.html
index 0978d9189e..143afdba6b 100644
--- a/phpBB/styles/prosilver/template/attachment.html
+++ b/phpBB/styles/prosilver/template/attachment.html
@@ -8,14 +8,14 @@
<!-- IF _file.S_THUMBNAIL -->
<dl class="thumbnail">
- <dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" class="postimage" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
+ <dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" class="postimage" alt="{% if _file.COMMENT %}{{ _file.COMMENT }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
<!-- IF _file.COMMENT --><dd> {_file.COMMENT}</dd><!-- ENDIF -->
</dl>
<!-- ENDIF -->
<!-- IF _file.S_IMAGE -->
<dl class="file">
- <dt class="attach-image"><img src="{_file.U_INLINE_LINK}" class="postimage" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>
+ <dt class="attach-image"><img src="{_file.U_INLINE_LINK}" class="postimage" alt="{% if _file.COMMENT %}{{ _file.COMMENT }}{% else %}{{ _file.DOWNLOAD_NAME }}{% endif %}" onclick="viewableArea(this);" /></dt>
<!-- IF _file.COMMENT --><dd><em>{_file.COMMENT}</em></dd><!-- ENDIF -->
<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
</dl>