forked from Cavemanon/cavepaintings
support for a documentation tag
This commit is contained in:
@@ -43,5 +43,13 @@ class ExtManagerTheme extends Themelet {
|
||||
$page->add_block(new NavBlock());
|
||||
$page->add_block(new Block("Extension Manager", $html));
|
||||
}
|
||||
|
||||
public function display_doc(Page $page, ExtensionInfo $info) {
|
||||
$html = "<div style='align: left'>".$info->documentation."</div>";
|
||||
$page->set_title("Documentation for ".html_escape($info->name));
|
||||
$page->set_heading(html_escape($info->name));
|
||||
$page->add_block(new NavBlock());
|
||||
$page->add_block(new Block("Documentation", $html));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user