MDL-47494 ddimageortext: Merge remote-tracking branch 'jp/MOODLE_21_STABLE' into MOODLE_21_STABLE

This commit is contained in:
Tim Hunt
2012-02-10 15:45:07 +00:00
2 changed files with 6 additions and 1 deletions
@@ -36,6 +36,7 @@ $string['draggableitem'] = 'Draggable item';
$string['draggableitemheader'] = 'Draggable item {$a}';
$string['draggableitemtype'] = 'Type';
$string['draggableword'] = 'Draggable text';
$string['dropbackground'] = 'Background image for dragging markers onto';
$string['dropzone'] = 'Drop zone {$a}';
$string['dropzoneheader'] = 'Drop zones';
$string['editingddimageortext'] = 'Editing drag and drop onto image';
+5 -1
View File
@@ -64,7 +64,11 @@ class qtype_ddtoimage_renderer_base extends qtype_with_combined_feedback_rendere
$bgimage = self::get_url_for_image($qa, 'bgimage');
$img = html_writer::empty_tag('img', array('src'=>$bgimage, 'class'=>'dropbackground'));
$img = html_writer::empty_tag('img',
array('src'=>$bgimage,
'class'=>'dropbackground',
'alt' => get_string('dropbackground', 'qtype_ddimageortext')));
$droparea = html_writer::tag('div', $img, array('class'=>'droparea'));
$dragimagehomes = '';