mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
REPOSITORY YOUTUBE PLUGIN/MDL-16911
Make change thumbnail height possible
This commit is contained in:
parent
1327f08eed
commit
1c4a15521d
@ -528,6 +528,9 @@ _client.viewthumb = function(ds) {
|
|||||||
}
|
}
|
||||||
var frame = document.createElement('DIV');
|
var frame = document.createElement('DIV');
|
||||||
frame.style.textAlign='center';
|
frame.style.textAlign='center';
|
||||||
|
if(list[k].thumbnail_height){
|
||||||
|
frame.style.height = list[k].thumbnail_height+'px';
|
||||||
|
}
|
||||||
var img = document.createElement('img');
|
var img = document.createElement('img');
|
||||||
img.src = list[k].thumbnail;
|
img.src = list[k].thumbnail;
|
||||||
var link = document.createElement('A');
|
var link = document.createElement('A');
|
||||||
|
@ -45,7 +45,8 @@ class repository_youtube extends repository {
|
|||||||
$list[] = array(
|
$list[] = array(
|
||||||
'title'=>(string)$title,
|
'title'=>(string)$title,
|
||||||
'thumbnail'=>(string)$attrs['url'],
|
'thumbnail'=>(string)$attrs['url'],
|
||||||
'thumbnail_width'=>145,
|
'thumbnail_width'=>150,
|
||||||
|
'thumbnail_height'=>120,
|
||||||
'size'=>'',
|
'size'=>'',
|
||||||
'date'=>'',
|
'date'=>'',
|
||||||
'source'=>$source
|
'source'=>$source
|
||||||
|
Loading…
x
Reference in New Issue
Block a user