Follow up for MDL-11430, Flickr & Youtube tag blocks should use list markup - Fix styles.

This commit is contained in:
nfreear 2007-10-15 16:59:17 +00:00
parent 292ad3bfc9
commit 17a6161d20
2 changed files with 10 additions and 9 deletions

View File

@ -156,13 +156,13 @@ class block_tag_youtube extends block_base {
foreach($videos as $video){
$text .= '<li>';
$text .= '<a href="'. s($video['url']) . '">';
$text .= '<img alt="" class="youtube-thumb" style="padding:3px;" src="'. $video['thumbnail_url'] .'" /> <span>';
$text .= '<img alt="" class="youtube-thumb" src="'. $video['thumbnail_url'] .'" /> <span>';
$text .= s($video['title']). '</span></a>';
$text .= '<br/>';
$text .= '<div>';
$text .= format_time($video['length_seconds']);
$text .= "</li>\n";
$text .= "</div></li>\n";
}
$text .= "</ul>\n";
$text .= "</ul><div class=\"clearer\"></div>\n";
return $text;
}

View File

@ -1398,12 +1398,13 @@ a.skip-block:focus, a.skip-block:active {
}
.block_tag_youtube .youtube-thumb {
width:75px;
height:50px;
padding: 3px;
padding-bottom: 0.5em;
display: block;
float: left;
}
.block_tag_youtube .yt-video-entry{
font-size:10px;
line-height:11px;
.block_tag_youtube .yt-video-entry li {
clear: left;
}
.block_tag_flickr .flickr-photos {