/** * fix_headcontent */ function fix_headcontent() { // switch off auto complete on answer text boxes $search = '/(?<=<form method="post" action="" onsubmit="return false;")(?=>)/'; $replace = ' autocomplete="off"'; $this->headcontent = preg_replace($search, $replace, $this->headcontent, 1); parent::fix_headcontent(); }
/** * fix_headcontent */ function fix_headcontent() { if ($pos = strrpos($this->headcontent, '</style>')) { $insert = '' . '#' . $this->themecontainer . ' ol.QuizQuestions{' . "\n" . ' margin-bottom: 0px;' . "\n" . '}' . "\n" . '#' . $this->themecontainer . ' li.QuizQuestion{' . "\n" . ' overflow: auto;' . "\n" . '}' . "\n"; $this->headcontent = substr_replace($this->headcontent, $insert, $pos, 0); } parent::fix_headcontent(); }