mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-26 15:01:37 +01:00
Better YouTube thumbnails for mobile, differentiate them from images
This commit is contained in:
parent
83cbe5977b
commit
d7ade38cf0
@ -1049,8 +1049,9 @@
|
|||||||
|
|
||||||
// Youtube.js embed HTML code
|
// Youtube.js embed HTML code
|
||||||
$config['youtube_js_html'] = '<div class="video-container" data-video="$1" data-params="&$2&$3">'.
|
$config['youtube_js_html'] = '<div class="video-container" data-video="$1" data-params="&$2&$3">'.
|
||||||
|
'<span class="unimportant yt-help">YouTube embed. Click thumbnail to play.</span><br>'.
|
||||||
'<a href="$0" target="_blank" class="file">'.
|
'<a href="$0" target="_blank" class="file">'.
|
||||||
'<img style="width:360px;height:270px;" src="//img.youtube.com/vi/$1/0.jpg" class="post-image"/>'.
|
'<img style="width:255px" src="//img.youtube.com/vi/$1/0.jpg" class="post-image"/>'.
|
||||||
'</a></div>';
|
'</a></div>';
|
||||||
|
|
||||||
// Custom embedding (YouTube, vimeo, etc.)
|
// Custom embedding (YouTube, vimeo, etc.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user