public function getCorrectHtml() { $tpl = new \Worksheet\Template(); $content = $this->getContent(); $type = $this->getType(); $solution = $this->getSolution(); $correction = $this->getCorrection(); if (file_exists(dirname(__FILE__) . "/../blocks/" . $type . "/correct.php")) { include dirname(__FILE__) . "/../blocks/" . $type . "/correct.php"; } //temp: //$content['text'] = preg_replace('@\<\!\-\-\ Worksheet\_\[(.*)\]\[(.*)\]\[(.*)\]\ \-\-\>@isU', '<img src="http://192.168.124.134/bidowl-3_0/worksheet/asset/js/tinymce/plugins/WorksheetVideo/img/test.png" alt="" />', $content['text']); $tpl->assign("data", $content); $tpl->assign("correction", $correction); $tpl->assign("solution", $solution); $tpl->assign("old_solutions", $this->getOld_solutions()); $tpl->assign("BLOCK_ID", $this->id); $tpl->display("../../blocks/" . $type . "/correct.html"); return $tpl->getHtml(); }