REPOSITORY YOUTUBE PLUGIN/MDL-16911

Make change thumbnail height possible
This commit is contained in:
dongsheng 2008-11-27 03:32:48 +00:00
parent 1327f08eed
commit 1c4a15521d
2 changed files with 5 additions and 1 deletions

View File

@ -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');

View File

@ -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