forked from GithubBackups/vichan
Add data-fullimage attribute to catalog images
This commit is contained in:
parent
1258d793c0
commit
74c61fe31a
@ -47,7 +47,7 @@
|
||||
{% if post.youtube %}
|
||||
<img src="https://img.youtube.com/vi/{{ post.youtube }}/0.jpg"
|
||||
{% else %}
|
||||
<img src="{{post.file}}"
|
||||
<img src="{{post.file}}" data-fullimage="{{post.fullimage}}"
|
||||
{% endif %}
|
||||
id="img-{{ post.id }}" data-subject="{% if post.subject %}{{ post.subject|e }}{% endif %}" data-name="{{ post.name|e }}" data-muhdifference="{{ post.muhdifference }}" class="{{post.board}} thread-image" title="{{post.bump|date('%b %d %H:%M')}}">
|
||||
</a>
|
||||
|
@ -66,6 +66,7 @@
|
||||
}
|
||||
else {
|
||||
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
||||
$post['fullimage'] = $config['uri_img'] . $files[0]->file;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user