MDL-12560 - layout fixes for tag blocks

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2008-01-13 16:30:09 +00:00
parent b826f37fb2
commit 331362c8eb
2 changed files with 11 additions and 2 deletions

View File

@ -27,6 +27,10 @@ class block_tag_flickr extends block_base {
return true;
}
function preferred_width() {
return 140;
}
function get_content() {
global $CFG, $USER, $PAGE;

View File

@ -28,6 +28,10 @@ class block_tag_youtube extends block_base {
return true;
}
function preferred_width() {
return 140;
}
function get_content() {
if ($this->content !== NULL) {
@ -156,9 +160,10 @@ class block_tag_youtube extends block_base {
foreach($videos as $video){
$text .= '<li>';
$text .= '<div class="clearfix">';
$text .= '<a href="'. s($video['url']) . '">';
$text .= '<img alt="" class="youtube-thumb" src="'. $video['thumbnail_url'] .'" /> <span>';
$text .= s($video['title']). '</span></a>';
$text .= '<img alt="" class="youtube-thumb" src="'. $video['thumbnail_url'] .'" /></a>';
$text .= '</div><span><a href="'. s($video['url']) . '">'.s($video['title']).'</a></span>';
$text .= '<div>';
$text .= format_time($video['length_seconds']);
$text .= "</div></li>\n";