$content->parse("BLOCK_PARTICIPANTS"); $content->setCurrentBlock("BLOCK_BONUS"); if (!empty($values["bonus_1"])) { $content->setVariable("BONUS_VALUE", h($values["bonus_1"])); } $content->setVariable("BONUS_LABEL", gettext("First Bonus") . ":"); $content->setVariable("BONUS_NAME", "values[bonus_1]"); $content->parse("BLOCK_BONUS"); $content->setCurrentBlock("BLOCK_BONUS"); if (!empty($values["bonus_2"])) { $content->setVariable("BONUS_VALUE", h($values["bonus_2"])); } $content->setVariable("BONUS_LABEL", gettext("Second Bonus") . ":"); $content->setVariable("BONUS_NAME", "values[bonus_2]"); $content->parse("BLOCK_BONUS"); $content->setVariable("UNIT_ICON", units_pointlist::get_big_icon()); $content->setVariable("CONFIRMATION_TEXT", gettext("You are going to add a new unit for this course.")); $content->setVariable("CONFIRMATION_TEXT_LONG", gettext("You are going to add a new pointlist unit.")); $content->setVariable("LABEL_NAME", gettext("Name")); $content->setVariable("LABEL_DSC", gettext("Description of the unit")); $content->setVariable("LABEL_SHORT_DSC", gettext("Description")); $content->setVariable("LABEL_DSC", gettext("Long description")); $content->setVariable("LABEL_LONG_DSC", gettext("Long description") . ":"); $content->setVariable("UNIT", "units_pointlist"); if (!is_object($unit)) { $backlink = $course->get_url() . "units/"; } else { $backlink = $unit->get_url(); } $content->setVariable("BACKLINK", " <a class=\"button\" href=\"{$backlink}\">" . gettext("back") . "</a>"); $content->setVariable("LABEL_BB_BOLD", gettext("B"));