protected function buildAccordionTitle(ilCourseObjective $a_objective, array $a_lo_result = null) { $tpl = new ilTemplate("tpl.objective_accordion_title.html", true, true, "Services/Container"); if ($a_lo_result) { $tpl->setVariable("PROGRESS_BAR", self::buildObjectiveProgressBar((bool) $this->loc_settings->getInitialTest(), $a_objective->getObjectiveId(), $a_lo_result)); } // $tpl->setVariable("ICON_SRC", ilObject::_getIcon($a_objective->getObjectiveId(), "small", "lobj")); // $tpl->setVariable("ICON_TXT", $this->lng->txt("icon")." ".$this->lng->txt("crs_objectives")); $tpl->setVariable("TITLE", $this->lng->txt("crs_loc_learning_objective") . ": " . trim($a_objective->getTitle())); $tpl->setVariable("DESCRIPTION", nl2br(trim($a_objective->getDescription()))); // #15510 $tpl->setVariable("ANCHOR_ID", "objtv_acc_" . $a_objective->getObjectiveId()); return $tpl->get(); }