Fixed image anchor on expended image.
Append `$direct_link` on image res anchor as thumbnail do. Yes, we should have done this a year ago.
This commit is contained in:
parent
49c0945be2
commit
15dc06f3ba
|
@ -110,7 +110,7 @@ function buildPost($post, $res) {
|
||||||
</video>
|
</video>
|
||||||
EOF;
|
EOF;
|
||||||
} else if (in_array(substr($post['file'], -4), array('.jpg', '.png', '.gif'))) {
|
} else if (in_array(substr($post['file'], -4), array('.jpg', '.png', '.gif'))) {
|
||||||
$expandhtml = "<a href=\"src/${post["file"]}\" onclick=\"return expandFile(event, '${post['id']}');\"><img src=\"" . ($res == TINYIB_RESPAGE ? "../" : "") . "src/${post["file"]}\" width=\"${post["image_width"]}\" style=\"max-width: 100%;height: auto;\"></a>";
|
$expandhtml = "<a href=\"$direct_link\" onclick=\"return expandFile(event, '${post['id']}');\"><img src=\"" . ($res == TINYIB_RESPAGE ? "../" : "") . "src/${post["file"]}\" width=\"${post["image_width"]}\" style=\"max-width: 100%;height: auto;\"></a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$thumblink = "<a href=\"$direct_link\" target=\"_blank\"" . ((isEmbed($post["file_hex"]) || in_array(substr($post['file'], -4), array('.jpg', '.png', '.gif', 'webm'))) ? " onclick=\"return expandFile(event, '${post['id']}');\"" : "") . ">";
|
$thumblink = "<a href=\"$direct_link\" target=\"_blank\"" . ((isEmbed($post["file_hex"]) || in_array(substr($post['file'], -4), array('.jpg', '.png', '.gif', 'webm'))) ? " onclick=\"return expandFile(event, '${post['id']}');\"" : "") . ">";
|
||||||
|
|
Loading…
Reference in New Issue