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 %}
|
{% if post.youtube %}
|
||||||
<img src="https://img.youtube.com/vi/{{ post.youtube }}/0.jpg"
|
<img src="https://img.youtube.com/vi/{{ post.youtube }}/0.jpg"
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{post.file}}"
|
<img src="{{post.file}}" data-fullimage="{{post.fullimage}}"
|
||||||
{% endif %}
|
{% 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')}}">
|
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>
|
</a>
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
||||||
|
$post['fullimage'] = $config['uri_img'] . $files[0]->file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user