From: nfreear Date: Mon, 15 Oct 2007 12:31:39 +0000 (+0000) Subject: Fixes MDL-11430, Flickr & Youtube tag blocks should use list markup. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4213137651d63b28128dd3eb7824fa3dfca5c270;p=moodle.git Fixes MDL-11430, Flickr & Youtube tag blocks should use list markup. --- diff --git a/blocks/tag_flickr/block_tag_flickr.php b/blocks/tag_flickr/block_tag_flickr.php index a035a16322..23a9eea810 100644 --- a/blocks/tag_flickr/block_tag_flickr.php +++ b/blocks/tag_flickr/block_tag_flickr.php @@ -94,13 +94,13 @@ class block_tag_flickr extends block_base { if(strcmp($search['stat'], 'ok') != 0) return; //if no results were returned, exit... - //render the list of photos - $text = ''; - foreach ($photos as $photo) { - $text .= ''; - $text .= ''.s($photo['title']).'' ; - } - + //Accessibility: render the list of photos + $text = '\n"; $this->content = new stdClass; $this->content->text = $text; diff --git a/blocks/tag_youtube/block_tag_youtube.php b/blocks/tag_youtube/block_tag_youtube.php index 856f5d532a..91ae2bdc93 100644 --- a/blocks/tag_youtube/block_tag_youtube.php +++ b/blocks/tag_youtube/block_tag_youtube.php @@ -150,24 +150,19 @@ class block_tag_youtube extends block_base { function render_video_list($xmlobj){ $text = ''; - $text .= ''; + $text .= ''; - $text .= '"; - $text .= ''; - $text .= ''; + $text .= "\n"; } - $text .= '
'; + $text .= '
  • '; $text .= ''; - $text .= ''.s($video['title']).'' ; - $text .= ""; - $text .= "
  • '; - $text .= ''.s($video['title']). ''; + $text .= ' '; + $text .= s($video['title']). ''; $text .= '
    '; $text .= format_time($video['length_seconds']); - $text .= '
    '; + $text .= "\n"; return $text; }