function getFormHTML() { global $wgTitle; $categoryExhibitionSection = new CategoryExhibitionSection($wgTitle); $categoryExhibitionSection->setSortTypeFromParam(); $categoryExhibitionSection->setDisplayTypeFromParam(); $oTmpl = new EasyTemplate(dirname(__FILE__) . "/templates/"); $oTmpl->set_vars(array('path' => $wgTitle->getFullURL(), 'current' => $categoryExhibitionSection->getSortType(), 'sortTypes' => $categoryExhibitionSection->getSortTypes(), 'displayType' => $categoryExhibitionSection->getDisplayType())); return $oTmpl->render("form"); }