MDL-55594 mod_forum: Convert 'big' search form to templates

Part of MDL-55071
This commit is contained in:
Frederic Massart
2016-09-23 10:53:56 +01:00
committed by Dan Poltawski
parent 14395f9789
commit 10deddd34e
8 changed files with 473 additions and 123 deletions
+10
View File
@@ -236,4 +236,14 @@ class mod_forum_renderer extends plugin_renderer_base {
public function render_quick_search_form(\mod_forum\output\quick_search_form $form) {
return $this->render_from_template('mod_forum/quick_search_form', $form->export_for_template($this));
}
/**
* Render big search form.
*
* @param \mod_forum\output\big_search_form $form The renderable.
* @return string
*/
public function render_big_search_form(\mod_forum\output\big_search_form $form) {
return $this->render_from_template('mod_forum/big_search_form', $form->export_for_template($this));
}
}