diff --git a/mod/hotpot/template/v6.php b/mod/hotpot/template/v6.php index e11231c230a..69be57029e3 100644 --- a/mod/hotpot/template/v6.php +++ b/mod/hotpot/template/v6.php @@ -70,6 +70,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { function v6_expand_ClickToAdd() { return $this->parent->xml_value('hotpot-config-file,'.$this->parent->quiztype.',click-to-add'); } + function v6_expand_ClueCaption() { + return $this->parent->xml_value('hotpot-config-file,global,clue-caption'); + } function v6_expand_Clues() { return $this->int_value('hotpot-config-file,'.$this->parent->quiztype.',include-clues'); } @@ -809,7 +812,8 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { $str .= ''; } if ($this->v6_expand_Clues()) { - $str .= ''; + $caption = $this->v6_expand_ClueCaption(); + $str .= ''; } $str .= ''; } @@ -1131,17 +1135,17 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { $str .= '
'; $str .= '

'; - $text = $this->v6_expand_CheckCaption(); - $str .= $this->v6_expand_jquiz_button($text, "CheckShortAnswer($q)"); + $caption = $this->v6_expand_CheckCaption(); + $str .= $this->v6_expand_jquiz_button($caption, "CheckShortAnswer($q)"); if ($this->v6_expand_Hint()) { - $text = $this->v6_expand_HintCaption(); - $str .= $this->v6_expand_jquiz_button($text, "ShowHint($q)"); + $caption = $this->v6_expand_HintCaption(); + $str .= $this->v6_expand_jquiz_button($caption, "ShowHint($q)"); } if ($this->v6_expand_ShowAnswer()) { - $text = $this->v6_expand_ShowAnswerCaption(); - $str .= $this->v6_expand_jquiz_button($text, "ShowAnswers($q)"); + $caption = $this->v6_expand_ShowAnswerCaption(); + $str .= $this->v6_expand_jquiz_button($caption, "ShowAnswers($q)"); } $str .= '
'; @@ -1191,8 +1195,8 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { $str .= ''; if ($question_type==HOTPOT_JQUIZ_MULTISELECT) { - $text = $this->v6_expand_CheckCaption(); - $str .= $this->v6_expand_jquiz_button($text, "CheckMultiSelAnswer($q)"); + $caption = $this->v6_expand_CheckCaption(); + $str .= $this->v6_expand_jquiz_button($caption, "CheckMultiSelAnswer($q)"); } } @@ -1206,8 +1210,8 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { return $str; } - function v6_expand_jquiz_button($text, $onclick) { - return ''; + function v6_expand_jquiz_button($caption, $onclick) { + return ''; } // jquiz.js_